NyneR n00b
Joined: 19 Dec 2020 Posts: 35
|
Posted: Sat Oct 15, 2022 4:48 pm Post subject: [Solved] start lxc systemd container with unprivileged user |
|
|
Hey guys.
I'm trying to get unprivileged systemd containers to start on an openrc host.
However when trying to start I get this error:
Code: | lxc-start -n test --foreground
systemd 251.5-1-arch running in system mode (+PAM +AUDIT -SELINUX -APPARMOR -IMA +SMACK +SECCOMP +GCRYPT +GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT -QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK +XKBCOMMON +UTMP -SYSVINIT default-hierarchy=unified)
Detected virtualization lxc.
Detected architecture x86-64.
Welcome to Arch Linux!
Failed to create /init.scope control group: Permission denied
Failed to allocate manager object: Permission denied
[!!!!!!] Failed to allocate manager object.
Exiting PID 1... |
I followed the LXC wiki entry and according to this section I should have
within the cgroups.
However I have Code: | cat /proc/self/cgroup
1:name=systemd:/
0::/sshd |
Any suggestions would be appreciated.
EDIT: Works after switching to LXD |
|