[lxc-users] How to setup unprivileged LXC container without reboot?

Serge Hallyn serge.hallyn at ubuntu.com
Fri Dec 12 03:20:14 UTC 2014


IIUC the problem is just that your session is not in a cgroup which
you control.  You could probably do

/etc/init.d/systemd-logind restart
ssh localhost

or you can manually create a cgroup for yourself and move yourself
into it, i.e.

sudo cgm create all xxx
sudo cgm chown all xxx $(id -u) $(id -g)
cgm movepid all xxx $$

After this you should be able to start containers.


More information about the lxc-users mailing list