Would you like a YAML “lxd init” preseed to be printed? (yes/no) [default=no]:
Error: Failed to create local member network “lxdbr0” in project “default”: Failed clearing firewall: Failed checking “iptables” chain “lxd_acl_lxdbr0” exists in table “filter”: exec: “iptables”: executable file not found in $PATH
WARNING[2022-07-21T21:11:37+03:00] AppArmor support has been disabled because ‘apparmor_parser’ couldn’t be found
WARNING[2022-07-21T21:11:37+03:00] - AppArmor support has been disabled, Disabled because ‘apparmor_parser’ couldn’t be found
WARNING[2022-07-21T21:11:37+03:00] - Couldn’t find the CGroup blkio, disk I/O limits will be ignored
WARNING[2022-07-21T21:11:37+03:00] - Couldn’t find the CGroup blkio.weight, disk priority will be ignored
WARNING[2022-07-21T21:11:37+03:00] - Couldn’t find the CGroup CPU controller, CPU time limits will be ignored
WARNING[2022-07-21T21:11:37+03:00] - Couldn’t find the CGroup CPUacct controller, CPU accounting will not be available
WARNING[2022-07-21T21:11:37+03:00] - Couldn’t find the CGroup CPU controller, CPU pinning will be ignored
WARNING[2022-07-21T21:11:37+03:00] - Couldn’t find the CGroup hugetlb controller, hugepage limits will be ignored
WARNING[2022-07-21T21:11:37+03:00] - Couldn’t find the CGroup network priority controller, network priority will be ignored
WARNING[2022-07-21T21:11:37+03:00] Instance type not operational driver=qemu err=“KVM support is missing (no /dev/kvm)” type=virtual-machine
WARNING[2022-07-21T22:43:52+03:00] Firewall failed to detect any compatible driver, falling back to “xtables” (but some features may not work as expected due to: Backend command “iptables” missing)
You will notice it has some Warnings that \Backend command “iptables” missing\
then on a different terminal i run lxd init and follow the below steps along with the error in question
Would you like to use LXD clustering? (yes/no) [default=no]:
Do you want to configure a new storage pool? (yes/no) [default=yes]:
Name of the new storage pool [default=default]:
Name of the storage backend to use (dir, btrfs) [default=btrfs]:
Would you like to create a new btrfs subvolume under /var/lib/lxd? (yes/no) [default=yes]:
Would you like to connect to a MAAS server? (yes/no) [default=no]:
Would you like to create a new local network bridge? (yes/no) [default=yes]:
What should the new bridge be called? [default=lxdbr0]:
What IPv4 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]:
What IPv6 address should be used? (CIDR subnet notation, “auto” or “none”) [default=auto]:
Would you like the LXD server to be available over the network? (yes/no) [default=no]:
Would you like stale cached images to be updated automatically? (yes/no) [default=yes]:
Would you like a YAML “lxd init” preseed to be printed? (yes/no) [default=no]:
Error: Failed to create local member network “lxdbr0” in project “default”: Failed clearing firewall: Failed checking “iptables” chain “lxd_acl_lxdbr0” exists in table “filter”: exec: “iptables”: executable file not found in $PATH
There’s a few posts on this forum covering similar issues, usually it boils down to one or more of these issues:
Conflicting application listening on DHCP or DNS ports on your host system that is preventing LXD’s dnsmasq from starting up. Use lxc warning ls to see if there are any dnsmasq issues.
I have no docker installed in the system and no dnsmasq warning too. I happened to disable host firewall and it did solve the issue also nft flush too helped.