You are not logged in.

#1 2019-08-08 10:11:28

EdeWolf
Member
Registered: 2016-01-06
Posts: 79

LXC: unpriviledged container issue with resoved and /dev/console

Hi

Trying to run an unpriviledged arch guest on an arch host I am experiencing problems with /dev/console and systemd-resolved/networkd. Both ma ybe related. In short, /dev/console is not accessible and systemd-resolved fails to start.
Using classical /etc/resolv.conf does the job, but I would like to have the guest running in a non hackish way. Especially, since the console thingy seems to be an issue with debian and apline guests as well, so I am likely to have a host side configuration issue here.

For the stdout issue, that seems to be the cause for the resolved failure (see journal later on), I figured, that the stdout link points into the void. Persistently after each start of the container. Config issue? Bug?

Any idea what rights may be missing - and how to assign them?

Thanks

# ls -la /dev/stdout
lrwxrwxrwx 1 root root 15 Aug  8 07:49 /dev/stdout -> /proc/self/fd/1
# ls -la /proc/self/fd/1
lrwx------ 1 root root 64 Aug  8 08:05 /proc/self/fd/1 -> /dev/pts/6
# ls -la /dev/pts/6
ls: cannot access '/dev/pts/6': No such file or directory
# ls -la /dev/pts
total 0
drwxr-xr-x 2 root root      0 Aug  8 07:49 .
drwxr-xr-x 5 root root    500 Aug  8 07:49 ..
crw--w---- 1 root tty  136, 0 Aug  8 07:49 0
crw--w---- 1 root tty  136, 1 Aug  8 07:49 1
crw--w---- 1 root tty  136, 2 Aug  8 07:49 2
crw--w---- 1 root tty  136, 3 Aug  8 07:49 3
crw-rw-rw- 1 root root   5, 2 Aug  8 07:49 ptmx

The journal from the container:

# journalctl -b0 --no-pager
-- Logs begin at Thu 2019-08-08 10:06:54 UTC, end at Thu 2019-08-08 10:07:16 UTC. --
Aug 08 10:06:54 archlxc systemd-journald[22]: Journal started
Aug 08 10:06:54 archlxc systemd-journald[22]: Runtime journal (/run/log/journal/5a00b272930f4f659d2214bc9ca2c2f7) is 8.0M, max 196.3M, 188.3M free.
Aug 08 10:06:54 archlxc systemd-sysctl[18]: Couldn't write '1024' to 'fs/inotify/max_user_instances', ignoring: Permission denied
Aug 08 10:06:54 archlxc mount[15]: mount: /sys/kernel/config: permission denied.
Aug 08 10:06:54 archlxc systemd-sysctl[18]: Couldn't write '524288' to 'fs/inotify/max_user_watches', ignoring: Permission denied
Aug 08 10:06:54 archlxc systemd-sysctl[18]: Couldn't write '|/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h %e' to 'kernel/core_pattern', ignoring: Permission denied
Aug 08 10:06:54 archlxc mount[17]: mount: /sys/kernel/debug: permission denied.
Aug 08 10:06:54 archlxc systemd-sysctl[18]: Couldn't write '16' to 'kernel/sysrq', ignoring: Permission denied
Aug 08 10:06:54 archlxc systemd-sysctl[18]: Couldn't write '1' to 'kernel/core_uses_pid', ignoring: Permission denied
Aug 08 10:06:54 archlxc systemd-sysctl[18]: Couldn't write 'fq_codel' to 'net/core/default_qdisc', ignoring: No such file or directory
Aug 08 10:06:54 archlxc systemd-sysctl[18]: Couldn't write '1' to 'fs/protected_hardlinks', ignoring: Permission denied
Aug 08 10:06:54 archlxc systemd-sysctl[18]: Couldn't write '1' to 'fs/protected_symlinks', ignoring: Permission denied
Aug 08 10:06:54 archlxc systemd-sysctl[18]: Couldn't write '1' to 'fs/protected_regular', ignoring: Permission denied
Aug 08 10:06:54 archlxc systemd-sysctl[18]: Couldn't write '1' to 'fs/protected_fifos', ignoring: Permission denied
Aug 08 10:06:54 archlxc systemd[1]: Starting Flush Journal to Persistent Storage...
Aug 08 10:06:54 archlxc systemd-journald[22]: Runtime journal (/run/log/journal/5a00b272930f4f659d2214bc9ca2c2f7) is 8.0M, max 196.3M, 188.3M free.
Aug 08 10:06:54 archlxc systemd[1]: Started Flush Journal to Persistent Storage.
Aug 08 10:06:54 archlxc systemd[1]: Starting Create Volatile Files and Directories...
Aug 08 10:06:54 archlxc systemd[1]: Started Create Volatile Files and Directories.
Aug 08 10:06:54 archlxc systemd[1]: Starting Update UTMP about System Boot/Shutdown...
Aug 08 10:06:54 archlxc systemd[1]: Condition check resulted in Rebuild Journal Catalog being skipped.
Aug 08 10:06:54 archlxc systemd[1]: Condition check resulted in Update is Completed being skipped.
Aug 08 10:06:54 archlxc systemd-udevd[29]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
Aug 08 10:06:54 archlxc systemd[1]: Started udev Kernel Device Manager.
Aug 08 10:06:54 archlxc systemd[1]: Starting Network Service...
Aug 08 10:06:54 archlxc systemd[30]: systemd-networkd.service: Failed to connect stdout to the journal socket, ignoring: Permission denied
Aug 08 10:06:54 archlxc systemd[1]: Started Update UTMP about System Boot/Shutdown.
Aug 08 10:06:54 archlxc systemd[1]: Reached target System Initialization.
Aug 08 10:06:54 archlxc systemd[1]: Started Daily man-db regeneration.
Aug 08 10:06:54 archlxc systemd[1]: Started Daily Cleanup of Temporary Directories.
Aug 08 10:06:54 archlxc systemd[1]: Started Daily verification of password and group files.
Aug 08 10:06:54 archlxc systemd[1]: Started Daily rotation of log files.
Aug 08 10:06:54 archlxc systemd[1]: Reached target Timers.
Aug 08 10:06:54 archlxc systemd[1]: Listening on D-Bus System Message Bus Socket.
Aug 08 10:06:54 archlxc systemd[1]: Reached target Sockets.
Aug 08 10:06:54 archlxc systemd[1]: Reached target Basic System.
Aug 08 10:06:54 archlxc systemd[1]: Condition check resulted in SSH Key Generation being skipped.
Aug 08 10:06:54 archlxc systemd[1]: Started D-Bus System Message Bus.
Aug 08 10:06:54 archlxc systemd[1]: Starting Login Service...
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Main process exited, code=exited, status=200/CHDIR
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Failed with result 'exit-code'.
Aug 08 10:06:54 archlxc systemd[1]: Failed to start Network Service.
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 1.
Aug 08 10:06:54 archlxc systemd[1]: Stopped Network Service.
Aug 08 10:06:54 archlxc systemd[1]: Starting Network Service...
Aug 08 10:06:54 archlxc systemd[33]: systemd-networkd.service: Failed to connect stdout to the journal socket, ignoring: Permission denied
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Main process exited, code=exited, status=200/CHDIR
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Failed with result 'exit-code'.
Aug 08 10:06:54 archlxc systemd[1]: Failed to start Network Service.
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 2.
Aug 08 10:06:54 archlxc systemd[1]: Stopped Network Service.
Aug 08 10:06:54 archlxc systemd[1]: Starting Network Service...
Aug 08 10:06:54 archlxc systemd[34]: systemd-networkd.service: Failed to connect stdout to the journal socket, ignoring: Permission denied
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Main process exited, code=exited, status=200/CHDIR
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Failed with result 'exit-code'.
Aug 08 10:06:54 archlxc systemd[1]: Failed to start Network Service.
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 3.
Aug 08 10:06:54 archlxc systemd[1]: Stopped Network Service.
Aug 08 10:06:54 archlxc systemd[1]: Starting Network Service...
Aug 08 10:06:54 archlxc systemd[35]: systemd-networkd.service: Failed to connect stdout to the journal socket, ignoring: Permission denied
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Main process exited, code=exited, status=200/CHDIR
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Failed with result 'exit-code'.
Aug 08 10:06:54 archlxc systemd[1]: Failed to start Network Service.
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 4.
Aug 08 10:06:54 archlxc systemd[1]: Stopped Network Service.
Aug 08 10:06:54 archlxc systemd[1]: Starting Network Service...
Aug 08 10:06:54 archlxc systemd[36]: systemd-networkd.service: Failed to connect stdout to the journal socket, ignoring: Permission denied
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Main process exited, code=exited, status=200/CHDIR
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Failed with result 'exit-code'.
Aug 08 10:06:54 archlxc systemd[1]: Failed to start Network Service.
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Scheduled restart job, restart counter is at 5.
Aug 08 10:06:54 archlxc systemd[1]: Stopped Network Service.
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Start request repeated too quickly.
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.service: Failed with result 'exit-code'.
Aug 08 10:06:54 archlxc systemd[1]: Failed to start Network Service.
Aug 08 10:06:54 archlxc systemd[1]: systemd-networkd.socket: Failed with result 'service-start-limit-hit'.
Aug 08 10:06:54 archlxc systemd[1]: Starting Network Name Resolution...
Aug 08 10:06:54 archlxc systemd[37]: systemd-resolved.service: Failed to connect stdout to the journal socket, ignoring: Permission denied
Aug 08 10:06:54 archlxc systemd[1]: systemd-resolved.service: Main process exited, code=exited, status=200/CHDIR
Aug 08 10:06:54 archlxc systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Aug 08 10:06:54 archlxc systemd[1]: Failed to start Network Name Resolution.
Aug 08 10:06:54 archlxc systemd[1]: systemd-resolved.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Aug 08 10:06:54 archlxc systemd[1]: systemd-resolved.service: Scheduled restart job, restart counter is at 1.
Aug 08 10:06:54 archlxc systemd[1]: Stopped Network Name Resolution.
Aug 08 10:06:55 archlxc systemd[1]: Starting Network Name Resolution...
Aug 08 10:06:55 archlxc systemd[40]: systemd-resolved.service: Failed to connect stdout to the journal socket, ignoring: Permission denied
Aug 08 10:06:55 archlxc systemd[1]: systemd-resolved.service: Main process exited, code=exited, status=200/CHDIR
Aug 08 10:06:55 archlxc systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Aug 08 10:06:55 archlxc systemd[1]: Failed to start Network Name Resolution.
Aug 08 10:06:55 archlxc systemd[1]: systemd-resolved.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Aug 08 10:06:55 archlxc systemd[1]: systemd-resolved.service: Scheduled restart job, restart counter is at 2.
Aug 08 10:06:55 archlxc systemd[1]: Stopped Network Name Resolution.
Aug 08 10:06:55 archlxc systemd[1]: Starting Network Name Resolution...
Aug 08 10:06:55 archlxc systemd[43]: systemd-resolved.service: Failed to connect stdout to the journal socket, ignoring: Permission denied
Aug 08 10:06:55 archlxc systemd[1]: systemd-resolved.service: Main process exited, code=exited, status=200/CHDIR
Aug 08 10:06:55 archlxc systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Aug 08 10:06:55 archlxc systemd[1]: Failed to start Network Name Resolution.
Aug 08 10:06:55 archlxc systemd[1]: systemd-resolved.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Aug 08 10:06:55 archlxc systemd[1]: systemd-resolved.service: Scheduled restart job, restart counter is at 3.
Aug 08 10:06:55 archlxc systemd[1]: Stopped Network Name Resolution.
Aug 08 10:06:55 archlxc systemd[1]: Starting Network Name Resolution...
Aug 08 10:06:55 archlxc systemd[46]: systemd-resolved.service: Failed to connect stdout to the journal socket, ignoring: Permission denied
Aug 08 10:06:55 archlxc systemd[1]: systemd-resolved.service: Main process exited, code=exited, status=200/CHDIR
Aug 08 10:06:55 archlxc systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Aug 08 10:06:55 archlxc systemd[1]: Failed to start Network Name Resolution.
Aug 08 10:06:55 archlxc systemd[1]: systemd-resolved.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Aug 08 10:06:55 archlxc systemd[1]: systemd-resolved.service: Scheduled restart job, restart counter is at 4.
Aug 08 10:06:55 archlxc systemd[1]: Stopped Network Name Resolution.
Aug 08 10:06:55 archlxc systemd[1]: Starting Network Name Resolution...
Aug 08 10:06:55 archlxc systemd[49]: systemd-resolved.service: Failed to connect stdout to the journal socket, ignoring: Permission denied
Aug 08 10:06:55 archlxc systemd[1]: systemd-resolved.service: Main process exited, code=exited, status=200/CHDIR
Aug 08 10:06:55 archlxc systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Aug 08 10:06:55 archlxc systemd[1]: Failed to start Network Name Resolution.
Aug 08 10:06:55 archlxc systemd[1]: systemd-resolved.service: Service has no hold-off time (RestartSec=0), scheduling restart.
Aug 08 10:06:55 archlxc systemd[1]: systemd-resolved.service: Scheduled restart job, restart counter is at 5.
Aug 08 10:06:55 archlxc systemd[1]: Stopped Network Name Resolution.
Aug 08 10:06:55 archlxc systemd[1]: systemd-resolved.service: Start request repeated too quickly.
Aug 08 10:06:55 archlxc systemd[1]: systemd-resolved.service: Failed with result 'exit-code'.
Aug 08 10:06:55 archlxc systemd[1]: Failed to start Network Name Resolution.
Aug 08 10:06:55 archlxc systemd[1]: Reached target Host and Network Name Lookups.
Aug 08 10:06:55 archlxc systemd[1]: Reached target Network.
Aug 08 10:06:55 archlxc systemd[1]: Started OpenSSH Daemon.
Aug 08 10:06:55 archlxc systemd[1]: Starting Permit User Sessions...
Aug 08 10:06:55 archlxc systemd[1]: Started Permit User Sessions.
Aug 08 10:06:55 archlxc systemd[1]: Started Console Getty.
Aug 08 10:06:55 archlxc sshd[52]: Server listening on 0.0.0.0 port 22.
Aug 08 10:06:55 archlxc systemd[1]: Started Container Getty on /dev/pts/2.
Aug 08 10:06:55 archlxc systemd[1]: Started Container Getty on /dev/pts/0.
Aug 08 10:06:55 archlxc systemd[1]: Started Container Getty on /dev/pts/3.
Aug 08 10:06:55 archlxc systemd[1]: Started Container Getty on /dev/pts/1.
Aug 08 10:06:55 archlxc systemd[1]: Condition check resulted in Getty on tty1 being skipped.
Aug 08 10:06:55 archlxc systemd[1]: Reached target Login Prompts.
Aug 08 10:06:56 archlxc systemd-logind[32]: New seat seat0.
Aug 08 10:06:56 archlxc systemd[1]: Started Login Service.
Aug 08 10:06:56 archlxc systemd[1]: Reached target Multi-User System.
Aug 08 10:06:56 archlxc systemd[1]: Reached target Graphical Interface.
Aug 08 10:06:56 archlxc systemd[1]: Startup finished in 4.221s.
Aug 08 10:06:56 archlxc agetty[54]: /dev/console: cannot open as standard input: Permission denied
Aug 08 10:06:57 archlxc sshd[59]: Accepted password for root from 172.16.32.1 port 40032 ssh2
Aug 08 10:06:57 archlxc sshd[59]: pam_unix(sshd:session): session opened for user root by (uid=0)
Aug 08 10:06:58 archlxc systemd[1]: Created slice User Slice of UID 0.
Aug 08 10:06:58 archlxc systemd[1]: Starting User Runtime Directory /run/user/0...
Aug 08 10:06:58 archlxc systemd-logind[32]: New session 11 of user root.
Aug 08 10:06:58 archlxc systemd[1]: Started User Runtime Directory /run/user/0.
Aug 08 10:06:58 archlxc systemd[1]: Starting User Manager for UID 0...
Aug 08 10:06:58 archlxc systemd[62]: pam_unix(systemd-user:session): session opened for user root by (uid=0)
Aug 08 10:06:58 archlxc systemd[62]: Listening on GnuPG cryptographic agent and passphrase cache (access for web browsers).
Aug 08 10:06:58 archlxc systemd[62]: Listening on GnuPG cryptographic agent and passphrase cache (restricted).
Aug 08 10:06:58 archlxc systemd[62]: Listening on p11-kit server.
Aug 08 10:06:58 archlxc systemd[62]: Starting D-Bus User Message Bus Socket.
Aug 08 10:06:58 archlxc systemd[62]: Listening on GnuPG cryptographic agent (ssh-agent emulation).
Aug 08 10:06:58 archlxc systemd[62]: Reached target Timers.
Aug 08 10:06:58 archlxc systemd[62]: Listening on GnuPG cryptographic agent and passphrase cache.
Aug 08 10:06:58 archlxc systemd[62]: Reached target Paths.
Aug 08 10:06:58 archlxc systemd[62]: Listening on GnuPG network certificate management daemon.
Aug 08 10:06:58 archlxc systemd[62]: Listening on D-Bus User Message Bus Socket.
Aug 08 10:06:58 archlxc systemd[62]: Reached target Sockets.
Aug 08 10:06:58 archlxc systemd[62]: Reached target Basic System.
Aug 08 10:06:58 archlxc systemd[62]: Reached target Main User Target.
Aug 08 10:06:58 archlxc systemd[62]: Startup finished in 93ms.
Aug 08 10:06:58 archlxc systemd[1]: Started User Manager for UID 0.
Aug 08 10:06:58 archlxc systemd[1]: Started Session 11 of user root.
Aug 08 10:07:06 archlxc systemd[1]: console-getty.service: Succeeded.
Aug 08 10:07:06 archlxc systemd[1]: Failed to reset TTY ownership/access mode of /dev/console, ignoring: Operation not permitted
Aug 08 10:07:06 archlxc systemd[1]: console-getty.service: Service RestartSec=100ms expired, scheduling restart.
Aug 08 10:07:06 archlxc systemd[1]: console-getty.service: Scheduled restart job, restart counter is at 1.
Aug 08 10:07:06 archlxc systemd[1]: Stopped Console Getty.
Aug 08 10:07:06 archlxc systemd[1]: Started Console Getty.
Aug 08 10:07:06 archlxc agetty[71]: /dev/console: Operation not permitted
Aug 08 10:07:16 archlxc systemd[1]: console-getty.service: Succeeded.
Aug 08 10:07:16 archlxc systemd[1]: Failed to reset TTY ownership/access mode of /dev/console, ignoring: Operation not permitted
Aug 08 10:07:16 archlxc systemd[1]: console-getty.service: Service RestartSec=100ms expired, scheduling restart.
Aug 08 10:07:16 archlxc systemd[1]: console-getty.service: Scheduled restart job, restart counter is at 2.
Aug 08 10:07:16 archlxc systemd[1]: Stopped Console Getty.
Aug 08 10:07:16 archlxc systemd[1]: Started Console Getty.
Aug 08 10:07:16 archlxc agetty[76]: /dev/console: Operation not permitted

Console ist root:noboby, on the host it is root:root 600.

# ls -al /dev/console
crw--w---- 1 root nobody 136, 5 Aug  8 07:49 /dev/console

The lxc config:

# cat /data/lxc/archlxc/config

# Template used to create this container: /usr/share/lxc/templates/lxc-download
# Parameters passed to the template: --dist archlinux --release current --arch amd64 --no-validate
# Template script checksum (SHA-1): ae4faf6659f4fd4a358af15361f71604b7ec83c0
# For additional config options, please look at lxc.container.conf(5)

# Uncomment the following line to support nesting containers:
#lxc.include = /usr/share/lxc/config/nesting.conf
# (Be aware this has security implications)


# Distribution configuration
lxc.include = /usr/share/lxc/config/common.conf
lxc.arch = x86_64

# Container specific configuration
lxc.rootfs.path = dir:/data/lxc/archlxc/rootfs
lxc.uts.name = archlxc

# Network configuration
lxc.net.0.type = veth
lxc.net.0.link = br-lan
lxc.net.0.flags = up
lxc.net.0.name = veth5
lxc.net.0.ipv4.address = 172.16.32.105/21
lxc.net.0.ipv4.gateway = 172.16.32.1
lxc.net.0.hwaddr = fe:90:12:33:d1:a5


# Usermappings
lxc.include = /usr/share/lxc/config/userns.conf
lxc.idmap = u 0 5000000 65535
lxc.idmap = g 0 777 65535

Finally, a snipplet of the container log:

lxc-start archlxc 20190808084545.762 INFO     conf - conf.c:chown_mapped_root:3158 - Container root is our uid; no need to chown
lxc-start archlxc 20190808084545.763 INFO     start - start.c:lxc_init:932 - Container "archlxc" is initialized
lxc-start archlxc 20190808084545.763 INFO     cgfsng - cgroups/cgfsng.c:cgfsng_monitor_create:1405 - The monitor process uses "lxc.monitor/archlxc" as cgroup
lxc-start archlxc 20190808084545.764 INFO     cgfsng - cgroups/cgfsng.c:cgfsng_payload_create:1470 - The container process uses "lxc.payload/archlxc" as cgroup
lxc-start archlxc 20190808084545.765 INFO     start - start.c:lxc_spawn:1778 - Cloned CLONE_NEWUSER
lxc-start archlxc 20190808084545.766 INFO     start - start.c:lxc_spawn:1778 - Cloned CLONE_NEWNS
lxc-start archlxc 20190808084545.766 INFO     start - start.c:lxc_spawn:1778 - Cloned CLONE_NEWPID
lxc-start archlxc 20190808084545.766 INFO     start - start.c:lxc_spawn:1778 - Cloned CLONE_NEWUTS
lxc-start archlxc 20190808084545.766 INFO     start - start.c:lxc_spawn:1778 - Cloned CLONE_NEWIPC
lxc-start archlxc 20190808084545.780 INFO     start - start.c:do_start:1186 - Unshared CLONE_NEWNET
lxc-start archlxc 20190808084545.795 WARN     cgfsng - cgroups/cgfsng.c:chowmod:1525 - No such file or directory - Failed to chown(/sys/fs/cgroup/unified/system.slice/lxc-archlxce.service/lxc.payload/archlxc/memory.oom.group, 0, 0)
lxc-start archlxc 20190808084545.796 WARN     start - start.c:lxc_spawn:1838 - Operation not permitted - Failed to allocate new network namespace id
lxc-start archlxc 20190808084545.797 INFO     network - network.c:lxc_create_network_unpriv_exec:2760 - Execing lxc-user-nic create /data/lxc archlxc 8709 veth br-lan veth5
lxc-start archlxc 20190808084545.870 NOTICE   utils - utils.c:lxc_switch_uid_gid:1411 - Switched to gid 0
lxc-start archlxc 20190808084545.870 NOTICE   utils - utils.c:lxc_switch_uid_gid:1420 - Switched to uid 0
lxc-start archlxc 20190808084545.870 NOTICE   utils - utils.c:lxc_setgroups:1433 - Dropped additional groups
lxc-start archlxc 20190808084545.870 INFO     start - start.c:do_start:1301 - Unshared CLONE_NEWCGROUP
lxc-start archlxc 20190808084545.872 INFO     conf - conf.c:setup_utsname:818 - Set hostname to "archlxc"
lxc-start archlxc 20190808084545.876 INFO     network - network.c:lxc_setup_network_in_child_namespaces:3895 - Network has been setup
lxc-start archlxc 20190808084545.876 INFO     conf - conf.c:mount_autodev:1145 - Preparing "/dev"
lxc-start archlxc 20190808084545.877 INFO     conf - conf.c:mount_autodev:1192 - Prepared "/dev"
lxc-start archlxc 20190808084545.878 INFO     conf - conf.c:mount_entry:2013 - No such file or directory - Failed to mount "/sys/fs/fuse/connections" on "/usr/lib/lxc/rootfs/sys/fs/fuse/connections" (optional)
lxc-start archlxc 20190808084545.878 INFO     conf - conf.c:lxc_fill_autodev:1236 - Populating "/dev"
lxc-start archlxc 20190808084545.879 INFO     conf - conf.c:lxc_fill_autodev:1313 - Populated "/dev"
lxc-start archlxc 20190808084545.880 INFO     utils - utils.c:lxc_mount_proc_if_needed:1264 - I am 1, /proc/self points to "1"
lxc-start archlxc 20190808084545.883 INFO     conf - conf.c:lxc_allocate_ttys:1032 - Finished creating 4 tty devices
lxc-start archlxc 20190808084545.884 INFO     conf - conf.c:lxc_setup_ttys:976 - Finished setting up 4 /dev/tty<N> device(s)
lxc-start archlxc 20190808084545.884 INFO     conf - conf.c:setup_personality:1720 - Set personality to "0x0"
lxc-start archlxc 20190808084545.884 NOTICE   conf - conf.c:lxc_setup:3751 - The container "archlxc" is set up
lxc-start archlxc 20190808084545.885 NOTICE   start - start.c:start:2118 - Exec'ing "/sbin/init"
lxc-start archlxc 20190808084545.893 NOTICE   start - start.c:post_start:2129 - Started "/sbin/init" with pid "8709"
# cat /proc/sys/kernel/unprivileged_userns_clone
1
# tail -n3 /etc/pam.d/system-login

session optional pam_cgfs.so -c freezer,memory,name=systemd,unified

Offline

Board footer

Powered by FluxBB