Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] start lxc systemd container with unprivileged user
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
NyneR
n00b
n00b


Joined: 19 Dec 2020
Posts: 35

PostPosted: Sat Oct 15, 2022 4:48 pm    Post subject: [Solved] start lxc systemd container with unprivileged user Reply with quote

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
Code:
0::/lxc
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
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum