Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Unprivileged LXC

Have anyone succeed in running unprivileged LXC on Fedora? Privileged (normal) containers are working fine, but I would like to run unprivileged containers. It seems that prerequisites [1] are satisfied (except maybe "Per-user cgroups on all controllers"), but still I cannot start newly created container (Fedora 24 Beta):

$ lxc-start -n centos6 -F
lxc-start: cgfsng.c: all_controllers_found: 431 no systemd controller mountpoint found
lxc-start: start.c: lxc_spawn: 1079 failed initializing cgroup support
lxc-start: start.c: __lxc_start: 1329 failed to spawn 'centos6'
lxc-start: lxc_start.c: main: 344 The container failed to start

Maybe I'm missing something, like lxcfs or cgmanager which are present in Ubuntu where unprivileged LXC is possible. Is there any other approach to achieve the same in Fedora?

[1] https://wiki.gentoo.org/wiki/LXC#Prerequisites

Unprivileged LXC

Have Has anyone succeed succeeded in running unprivileged LXC on Fedora? Privileged (normal) containers are working fine, but I would like to run unprivileged containers. It seems that prerequisites [1] are satisfied (except maybe "Per-user cgroups on all controllers"), but still I cannot start a newly created container (Fedora 24 Beta):

$ lxc-start -n centos6 -F
lxc-start: cgfsng.c: all_controllers_found: 431 no systemd controller mountpoint found
lxc-start: start.c: lxc_spawn: 1079 failed initializing cgroup support
lxc-start: start.c: __lxc_start: 1329 failed to spawn 'centos6'
lxc-start: lxc_start.c: main: 344 The container failed to start

Maybe I'm missing something, like lxcfs or cgmanager which are present in Ubuntu where unprivileged LXC is possible. Is there any other approach to achieve the same in Fedora?

[1] https://wiki.gentoo.org/wiki/LXC#Prerequisites