Can't set IPv4 address with Ubuntu 24.04 image on LXC

Hi all!

I’m trying to upgrade my Ubuntu 20.04 container to 24.04 by installing a new container. This new container uses a similar profile except for different IPs. I tried Ubuntu 22.04 and that works.

When I boot up the Ubuntu 24.04 container, I get no IP-address. Even more, when I try to apply the netplan, I get an error that systemd-networkd.service is in a failed state:
systemd-networkd.service: Failed to set up mount namespacing: Permission denied

I googled some and found some seemingly related issues like issues with apparmor, Apache, … But that doesn’t seem to fix my issues… Currently apparmor is stopped and disabled

So now I’ve found this which seemed to have solved my problem

lxc config set <containername> security.nesting true

I don’t need any help but I wanted to share this because I searched many hours on this. Maybe someone knows why Ubuntu 24.04 needs nesting for basic network configuration?

Thanks and have a lovely day!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.