I have multiple archlinux LXC containers and I updated one of them and I no longer had networking after a reboot of that container.
I fired up a new container for debugging and updated the Archlinux packages and systemd was upgraded to 247. During investigation, I found that a bunch of systemd services were failing.
No amount of prodding would bring up the interfaces. Eventually I found that every systemd service that fails needs to be overridden to allow mounting /proc along with /sys
OR
Add the following into the override.conf
Save and then restart the service and it should start up. Trouble is that there a bunch of services which fail and you might have to override each one of them depending on your usage.
I think this issue is because of the difference between the host(proxmox) and the guest(archlinux). I have other Archlinux desktop/laptop which have not had any problems during the upgrades.
So it would be best to avoid upgrading systemd on your containers-- especially if the container distro is rolling release/bleeding edge.
Hope that helps !
I fired up a new container for debugging and updated the Archlinux packages and systemd was upgraded to 247. During investigation, I found that a bunch of systemd services were failing.
Code:
[checkarch: ~]── - systemctl --version
systemd 247 (247.2-1-arch)
+PAM +AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid
Code:
[checkarch: ~]── - status systemd-networkd
* systemd-networkd.service - Network Service
Loaded: loaded (/usr/lib/systemd/system/systemd-networkd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2020-12-18 16:02:11 UTC; 3h 39min ago
TriggeredBy: * systemd-networkd.socket
Docs: man:systemd-networkd.service(8)
Process: 347 ExecStart=/usr/lib/systemd/systemd-networkd (code=exited, status=226/NAMESPACE)
Main PID: 347 (code=exited, status=226/NAMESPACE)
Dec 18 16:02:11 checkarch systemd[1]: systemd-networkd.service: Main process exited, code=exited, status=226/NAMESPACE
Dec 18 16:02:11 checkarch systemd[1]: systemd-networkd.service: Failed with result 'exit-code'.
Dec 18 16:02:11 checkarch systemd[1]: Failed to start Network Service.
Dec 18 16:02:11 checkarch systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 5.
Dec 18 16:02:11 checkarch systemd[1]: Stopped Network Service.
Dec 18 16:02:11 checkarch systemd[1]: systemd-networkd.service: Start request repeated too quickly.
Dec 18 16:02:11 checkarch systemd[1]: systemd-networkd.service: Failed with result 'exit-code'.
Dec 18 16:02:11 checkarch systemd[1]: Failed to start Network Service.
No amount of prodding would bring up the interfaces. Eventually I found that every systemd service that fails needs to be overridden to allow mounting /proc along with /sys
Code:
sudo systemctl edit systemd-networkd
Code:
sudo vim /etc/systemd/system/systemd-networkd.service.d/override.conf
Add the following into the override.conf
Code:
[Service]
BindReadOnlyPaths= /sys /proc
I think this issue is because of the difference between the host(proxmox) and the guest(archlinux). I have other Archlinux desktop/laptop which have not had any problems during the upgrades.
So it would be best to avoid upgrading systemd on your containers-- especially if the container distro is rolling release/bleeding edge.
Hope that helps !
Last edited: