[lxc-users] Unprivileged containers and reboot of base

Medhamsh V medhamsh at gmail.com
Fri Sep 5 12:30:26 UTC 2014


Though this was discussed several times I could not get through this. I use
chef to provision base nodes on which I run unprivileged containers. So
everything is programmatic and I leave a script which creates and starts
containers in the base node. I use ubuntu-14.04 ami in Amazon.

Right after provisioning I cant start the containers unless I reboot the
machine. The work around for this is to do the following in the sequence
and after which I can start the containers.

"sudo cgm create all goatos && sudo cgm chown all user $(id -u user) $(id
-g user)"

and then as the unprivileged user,

cgm movepid all user $$ > /dev/null 2>&1

Though this solves the problem, upon starting every container I get the
following messages.

lxc_container: call to cgmanager_move_pid_abs_sync failed: invalid request
lxc_container: Failed to enter group /goatos/test
lxc_container: error communicating with child process

and everything else is fine. Container starts fine, gets an ip and
communicates etc.

What is the significance of those messages and how to get rid of them?


GPG Finger Print: BD16 E32E CA4D 83A3 1270  725D D766 7997 0ABC 20E9
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140905/785b6d18/attachment.html>

More information about the lxc-users mailing list