host Linux server 4.15.0-22-generic #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 x86_64 GNU/Linux
downloaded container image Archlinux Current amd64
amongst various failed messages in the log 3.0 - unprivileged containers failed message (un)explained are
[FAILED] Failed to start Network Service.
[FAILED] Failed to start Network Name Resolution.
output from systemctl status -l systemd-networkd.service
● systemd-networkd.service - Network Service
Loaded: loaded (/usr/lib/systemd/system/systemd-networkd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2018-05-26 09:45:00 UTC; 15min ago
Docs: man:systemd-networkd.service(8)
Process: 52 ExecStart=/usr/lib/systemd/systemd-networkd (code=exited, status=237/KEYRING)
Main PID: 52 (code=exited, status=237/KEYRING)May 26 09:45:00 dns systemd[1]: systemd-networkd.service: Service has no hold-off time, scheduling restart.
May 26 09:45:00 dns systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 5.
May 26 09:45:00 dns systemd[1]: Stopped Network Service.
May 26 09:45:00 dns systemd[1]: systemd-networkd.service: Start request repeated too quickly.
May 26 09:45:00 dns systemd[1]: systemd-networkd.service: Failed with result ‘exit-code’.
May 26 09:45:00 dns systemd[1]: Failed to start Network Service.
the ran systemctl stop systemd-networkd.service
and after 30 s waiting systemctl start systemd-networkd.service
, however resulting with the same error.
output from journalctl -xe
the configured Restart= setting for the unit.
May 26 10:13:24 dns systemd[1]: Stopped Getty on lxc/tty6.
Subject: Unit getty@lxc-tty6.service has finished shutting down
Defined-By: systemd
Support: systemd-devel Info PageUnit getty@lxc-tty6.service has finished shutting down.
May 26 10:13:24 dns systemd[1]: Started Getty on lxc/tty6.
Subject: Unit getty@lxc-tty6.service has finished start-up
Defined-By: systemd
Support: systemd-devel Info PageUnit getty@lxc-tty6.service has finished starting up.
The start-up result is RESULT.
May 26 10:13:24 dns agetty[1143]: /dev/lxc/tty6: cannot open as standard input: No such file or directo>
May 26 10:13:24 dns systemd[1]: getty@lxc-tty3.service: Service has no hold-off time, scheduling restar>
May 26 10:13:24 dns systemd[1]: getty@lxc-tty3.service: Scheduled restart job, restart counter is at 17>
Subject: Automatic restarting of a unit has been scheduled
Defined-By: systemd
Support: systemd-devel Info PageAutomatic restarting of the unit getty@lxc-tty3.service has been scheduled, as the result for
the configured Restart= setting for the unit.
May 26 10:13:24 dns systemd[1]: Stopped Getty on lxc/tty3.
Subject: Unit getty@lxc-tty3.service has finished shutting down
Defined-By: systemd
Support: systemd-devel Info PageUnit getty@lxc-tty3.service has finished shutting down.
May 26 10:13:24 dns systemd[1]: Started Getty on lxc/tty3.
Subject: Unit getty@lxc-tty3.service has finished start-up
Defined-By: systemd
Support: systemd-devel Info PageUnit getty@lxc-tty3.service has finished starting up.
The start-up result is RESULT.
May 26 10:13:24 dns agetty[1144]: /dev/lxc/tty3: cannot open as standard input: No such file or directo>
there is a reported bug since Oct’17 but appears to be closed and referring to upstream instead
And it is also mentioned on the LXD github, however running lxc profile set default security.syscalls.blacklist "keyctl errno 38"
prompts
Command ‘lxc’ not found, but can be installed with:
apt install lxd-client
Why it requires to install an LXD component to run a LXC command?
So basically, Archlinux is not working with LXC until wanting to install LXD. Or follow the suggestion stipulated here Failed to change ownership of session keyring: Permission denied (systemd 237) · Issue #2226 · lxc/lxc · GitHub
Append
keyctl_chown errno 38
keyctl errno 38to
/usr/share/lxc/config/common.seccomp
. This will cause ENOSYS to be returned for those syscalls and thus systemd will skip over them.