LXC Container Ubuntu 22.04 -> 24.04 only with nesting=1?

tony blue

Well-Known Member
Dec 26, 2017
85
2
48
53
Hello,

I'm in the process of upgrading my CTs from Ubuntu 22.04 LTS to 24.04 LTS. For all privileged containers, I get the following error after the do-release-upgrade:

Failed to set wall message, ignoring: Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms)
Call to PowerOff failed: Failed to activate service 'org.freedesktop.login1': timed out (service_start_timeout=25000ms)

Only if I turn on nesting does it work. Is there a solution to operate pviviligated containers without nesting 1 on Ubuntu 24.04 LTS?

The soulution described here: https://forum.proxmox.com/threads/debian-lxc-template-and-slow-logins.139134/

`systemctl mask systemd-logind`

doesnt work for me.

Is here any sloution?

Thank you


Tony
 
"nesting" is fine. That's a useful feature anyway.

The more confusing part is that apparmor seems to be acting up for a couple of apps (Chrome, Firefox, Flatpak). I think they're supposed to be unconfined anyway. But the "unconfined" profile isn't being applied properly. I had to explicitly disable apparmor for these apps, and then they started working again. I wonder if there is a better solution