Lots of services of systemd 256 fail to start in nested LXD containers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Hi,
since 256 packages entered oracular-proposed I noticed they don't work in nested containers.
This is for me very easy to reproduce:
1. As LXD server I'm jammy and using the LXD 5.0 version from the snap.
2. I create a vm or a container
3. if it's a container set the security.nesting option as true
4. inside the container or vm created in 2. create another container (with "lxc launch ubuntu-
5. I get into the container and 'apt dist-upgrade'
6. the system is broken, please see below how
The first noticeable thing is that right in the package configuration, we can see how the network and journal services failed:
Setting up systemd (256-1ubuntu1) ...
Installing new version of config file /etc/systemd/
Installing new version of config file /etc/systemd/
Installing new version of config file /etc/systemd/
Installing new version of config file /etc/systemd/
Installing new version of config file /etc/systemd/
/usr/lib/
Created symlink '/run/systemd/
/usr/lib/
Job for systemd-
See "systemctl status systemd-
Job for systemd-
See "systemctl status systemd-
Then we can see the network service exited with 243/CREDENTIALS code:
root@test:~# systemctl status systemd-networkd
× systemd-
Loaded: loaded (/usr/lib/
Active: failed (Result: exit-code) since Fri 2024-07-12 05:40:04 UTC; 5min ago
Invocation: 00540f4884c44ec
TriggeredBy: × systemd-
Docs: man:systemd-
Process: 455 ExecStart=
Main PID: 455 (code=exited, status=
FD Store: 0 (limit: 512)
Same for the journal service:
root@test:~# systemctl status systemd-
× systemd-
Loaded: loaded (/usr/lib/
Drop-In: /usr/lib/
Active: failed (Result: exit-code) since Fri 2024-07-12 05:31:39 UTC; 16min ago
Invocation: 13bc72060e6c4d5
TriggeredBy: × systemd-
× systemd-
○ systemd-
Docs: man:systemd-
Process: 181 ExecStart=
Main PID: 181 (code=exited, status=
FD Store: 0 (limit: 4224)
And, well, obviously the network doesn't work, neither the journal.
Another few things:
I tested the system package from here https:/ /launchpad. net/~enr0n/ +archive/ ubuntu/ systemd and it still has the same problem.
Executing /usr/lib/ systemd/ systemd- networkd just like that resurrects the network.
Commenting out certain things in /usr/lib/ systemd/ system/ systemd- networkd. service make the network service work again - this is obviously not a solution, but I'm mentioning it in case it helps to debug the problem. The things you have to do with that file to "fix" the problem with -networkd are: al=network. wireguard. *" line networkd- persistent- storage. service" from "Wants="
1. comment out the "ImportCredenti
2. comment out all the "Protect" lines
3. remove "systemd-
4. systemctl daemon-reload
5. systemctl restart systemd-networkd
Also please note there's also many other services broken, network and journal are just the most 2 noticeable examples.