Hi
I was using LXD for a while and all went fine.
When I installed docker in the lxd container the docker in the host got stopped working. I deleted the /var/run/docker.sock and docker in host and LXD container started working fine.
Now a new problem started, The newly created LXD containers are not communicating with LAN. Below are my configuration. Please help me on fixing this or guide me how to troubleshoot.
root@GL503VM:~# lxc profile list
±--------------±--------+
| NAME | USED BY |
±--------------±--------+
| bridgeprofile | 3 |
±--------------±--------+
| default | 8 |
±--------------±--------+
root@GL503VM:~# lxc profile show bridgeprofile
config: {}
description: Bridged networking LXD profile
devices:
eth0:
name: eth0
nictype: bridged
parent: bridge0
type: nic
name: bridgeprofile
used_by:
- /1.0/containers/node02
- /1.0/containers/ubuntu
- /1.0/containers/ubuntu3
root@GL503VM:~#
root@GL503VM:~#
root@GL503VM:~# lxc profile show deafult
Error: Fetch profile: No such object
root@GL503VM:~# lxc profile show default
config: {}
description: Default LXD profile
devices:
eth0:
name: eth0
nictype: bridged
parent: bridge0
type: nic
root:
path: /
pool: default
type: disk
name: default
used_by: - /1.0/containers/gitlab
- /1.0/containers/devops
- /1.0/containers/mediawiki
- /1.0/containers/node02
- /1.0/containers/ubuntu
- /1.0/containers/ubuntu1
- /1.0/containers/ubuntu2
- /1.0/containers/ubuntu3
root@GL503VM:~#
root@GL503VM:~#
root@GL503VM:~# lxc list
±----------±--------±---------------------±-----±-----------±----------+
| NAME | STATE | IPV4 | IPV6 | TYPE | SNAPSHOTS |
±----------±--------±---------------------±-----±-----------±----------+
| devops | RUNNING | 192.168.2.226 (eth0) | | PERSISTENT | 2 |
| | | 172.17.0.1 (docker0) | | | |
±----------±--------±---------------------±-----±-----------±----------+
| gitlab | RUNNING | 192.168.2.223 (eth0) | | PERSISTENT | 0 |
| | | 172.17.0.1 (docker0) | | | |
±----------±--------±---------------------±-----±-----------±----------+
| mediawiki | STOPPED | | | PERSISTENT | 0 |
±----------±--------±---------------------±-----±-----------±----------+
| ubuntu | STOPPED | | | PERSISTENT | 0 |
±----------±--------±---------------------±-----±-----------±----------+
| ubuntu1 | STOPPED | | | PERSISTENT | 0 |
±----------±--------±---------------------±-----±-----------±----------+
| ubuntu2 | STOPPED | | | PERSISTENT | 0 |
±----------±--------±---------------------±-----±-----------±----------+
| ubuntu3 | RUNNING | | | PERSISTENT | 0 |
±----------±--------±---------------------±-----±-----------±----------+
Network is fine in the below container
root@GL503VM:~# lxc config show devops
architecture: x86_64
config:
image.architecture: amd64
image.description: ubuntu 18.04 LTS amd64 (release) (20190918)
image.label: release
image.os: ubuntu
image.release: bionic
image.serial: “20190918”
image.type: squashfs
image.version: “18.04”
security.nesting: “true”
security.privileged: “true”
volatile.base_image: 9ff5784302bfd6d556ac4c4c1176a37e86d89ac4d1aced14d9388919fa58bee8
volatile.eth0.host_name: vethc32dedcf
volatile.eth0.hwaddr: 00:16:3e:d9:1e:68
volatile.idmap.base: “0”
volatile.idmap.current: ‘[]’
volatile.idmap.next: ‘[]’
volatile.last_state.idmap: ‘[]’
volatile.last_state.power: RUNNING
devices:
mydirectory:
path: /data
source: /data/devops
type: disk
ephemeral: false
profiles:
- default
stateful: false
description: “”
root@GL503VM:~#
root@GL503VM:~#
Network is not working at all in the below container
root@GL503VM:~# lxc config show ubuntu3
architecture: x86_64
config:
image.architecture: amd64
image.description: ubuntu 18.04 LTS amd64 (release) (20191003)
image.label: release
image.os: ubuntu
image.release: bionic
image.serial: “20191003”
image.type: squashfs
image.version: “18.04”
volatile.base_image: 09c21c90f975fec9363d6797dff8481ccbcb794f0c1aedb2edbf804590adb01c
volatile.eth0.host_name: veth2c1197cb
volatile.eth0.hwaddr: 00:16:3e:97:96:93
volatile.idmap.base: “0”
volatile.idmap.current: ‘[{“Isuid”:true,“Isgid”:false,“Hostid”:1000000,“Nsid”:0,“Maprange”:1000000000},{“Isuid”:false,“Isgid”:true,“Hostid”:1000000,“Nsid”:0,“Maprange”:1000000000}]’
volatile.idmap.next: ‘[{“Isuid”:true,“Isgid”:false,“Hostid”:1000000,“Nsid”:0,“Maprange”:1000000000},{“Isuid”:false,“Isgid”:true,“Hostid”:1000000,“Nsid”:0,“Maprange”:1000000000}]’
volatile.last_state.idmap: ‘[{“Isuid”:true,“Isgid”:false,“Hostid”:1000000,“Nsid”:0,“Maprange”:1000000000},{“Isuid”:false,“Isgid”:true,“Hostid”:1000000,“Nsid”:0,“Maprange”:1000000000}]’
volatile.last_state.power: RUNNING
devices: {}
ephemeral: false
profiles:
- bridgeprofile
- default
stateful: false
description: “”