Snap LXD containers lost internet access

I can no longer access the Internet from within my containers. I could workaround the issue by first starting the container and rebooting the host but this is no longer works. This is the output of lxc config show chain-d10 --expanded:

architecture: x86_64
  image.architecture: amd64
  image.description: Debian buster amd64 (20200324_18:14)
  image.os: Debian
  image.release: buster
  image.serial: "20200324_18:14"
  image.type: squashfs
  linux.kernel_modules: overlay
  raw.lxc: "lxc.apparmor.profile=unconfined\nlxc.cgroup.devices.allow=a\ sys:rw\nlxc.cap.drop= \n"
  security.nesting: "true"
  security.privileged: "true"
  volatile.base_image: f20f0ca46a5e6138aaa66170a8f90c1d33c4be679f9d8dae99994fd6e81d1c69
  volatile.eth0.host_name: veth05a9f6d1
  volatile.eth0.hwaddr: 00:16:3e:2f:ae:de
  volatile.idmap.base: "0"
  volatile.idmap.current: '[]' '[]'
  volatile.last_state.idmap: '[]'
  volatile.last_state.power: RUNNING
  volatile.lxdbr0.host_name: vethab3add26
  volatile.lxdbr0.hwaddr: 00:16:3e:3a:2a:2e eth1
    name: eth0
    network: lxdbr0
    type: nic
    nictype: bridged
    parent: lxdbr0
    type: nic
    path: /
    pool: default
    type: disk
ephemeral: false
- default
stateful: false
description: ""

I would appreciate any help.

We’ve mostly seen this issue if:

  • You have Docker running on the host alongside LXD
  • You’re running one of the few distros using firewalld by default (recent Fedora at least)
1 Like

Removing Docker on the host resolved the issue. Thank you!