[lxc-users] Failing to create unprivileged container due to wrong /run/user/XXX/lock directory
Serge Hallyn
serge.hallyn at ubuntu.com
Mon Jan 5 20:11:14 UTC 2015
Quoting Ranjib Dey (dey.ranjib at gmail.com):
> following is the debug log:
>
> MovePid: Client fd is: 6 (pid=10783, uid=111, gid=117)
> cgmanager: Invalid path
> /run/cgmanager/fs/hugetlb/user/1001.user/83.session/go
> cgmanager:do_move_pid_main: Invalid path
> /run/cgmanager/fs/hugetlb/user/1001.user/83.session/go
> Disconnected from private client
>
> 1001 is wrong user (my login user), not `go` user's UID, which is 100.
I assume you're running this using sudo from uid 1001. Since that is
also how you did the create and chown, that should be ok. I'm not
understanding why the cg does not exist.
The least confusing thing to do might be to have root do
something like
cgm movepidabs all / $$
cgm create all go
cgm chown all go $(id -u go) $(id -g go)
cgh movepid all go $(pid)
> /run/cgmanager/fs/hugetlb/ directory is empty,
It's in a private namespace. You'd have to mount it yourself to
see.
More information about the lxc-users
mailing list