we migrated our lxd from a Ubuntu 18 to 22.04 running lxd 5.11
There is a strange issue with containers connected to a (non managed) bridge on the local network: On very first boot of a container on this host it takes minutes until the container gets an IP via dhcp. Any following dhcp request and also restart of the container is as fast as expected.
in the journal I see:
Mar 02 09:40:23 test systemd[1]: sys-subsystem-net-devices-eth0.device: Job sys-subsystem-net-devices-eth0.device/start timed out.
Mar 02 09:40:23 test systemd[1]: Timed out waiting for device sys-subsystem-net-devices-eth0.device.
Mar 02 09:40:23 test systemd[1]: sys-subsystem-net-devices-eth0.device: Job sys-subsystem-net-devices-eth0.device/start failed with re
Mar 02 09:40:23 test systemd[1]: Startup finished in 1min 30.548s.
the container have attached the following profile to use the bridge:
devices:
eth0:
name: eth0
nictype: bridged
parent: br0
type: nic
name: bridged
and my netplan config looks like:
network:
ethernets:
ens160:
dhcp4: false
dhcp6: false
bridges:
br0:
dhcp4: yes
dhcp-identifier: mac
interfaces:
- ens160
version: 2
As anybody a hint or idea howto analysis / fix this issue?