My host machine (Ubuntu Bionic) is connected to a LAN and receives its IPv4 configuration via DHCP. I want my LXD containers to be part of that same LAN using my companies DHCP server for configuration of the containers while keeping my host connected to the same network, too.
So far, I have failed to configure this not very uncommon scenario.
If I disable the IP configuration on the hosts interface (eno1), an create bridge using
lxc network create I cannot tell it to issue a DHCP request to properly configure the bridge (and thus the host).
If I create a manual bridge in the OS (br0) and configure that using DHCP and then try to add a second bridge to eno1 via
lxc network create, the OS bridge br0 immediately goes to a DOWN state, again kicking the host from the network.
The only thing I have managed so far is to use an external bridge and not configure a network in lxd.