Investigating the issue, udev fails to enumerate devices in the lxc environment when udev_enumerate_add_match_is_initialized is called. The same test program works in a focal instance.
Discussing the issue on the LXD channel it was raised that the systemd udev changes in 247 could be creating problems. The network-manager 1.26 version works because the udev support was wrongly disabled, which was fixed in that commit https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/78dc57d8 ** Package changed: network-manager (Ubuntu) => systemd (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1914062 Title: NetworkManager-wait-online.service in 1.28.0-2ubuntu1 fails to start in LXC To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1914062/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs