Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
unprivlieged lxc_container: command get_cgroup failed to receive response, kernel 3.14.1 #206
Comments
vrodic
commented
Apr 23, 2014
|
3.13.11 from http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.13.11-trusty/ also works fine. Something in 3.14.1 or Ubuntu 3.14.1 specific configuration breaks it. |
|
Don't pass -d so you get the full error message. |
vrodic
commented
Apr 23, 2014
|
Hi, here's the full error message lxc-start -P /media/vedran/stor1s/vedran/lxc-debian7/ -n p1 |
justinHume
commented
May 14, 2014
|
Hi, I'm using LXC 1.0.3 with Ubuntu 14.04. I have encountered the same issue (command get_cgroup failed to receive response) when starting a container with -d, although with a different error message when starting the container without daemonizing: lxc_container: invalid sequence number 1. expected 4 This occurs when I add the 'start' hook in a specific container's config: lxc.hook.start = /some/path.sh If I remove this line from the config, I can start the container without problems. I've tried different hooks (lxc.hook.pre-start && lxc.hook.mount) and they also do not cause problems; it seems limited to lxc.hook.start. Thanks, Justin |
|
@vrodic your problem is because net_cls wasn't configured in systemd-logind in 14.04 as that cgroup controller wasn't enabled in the distro kernel. I have since pushed an update to trusty-updates which enables those controllers, so rebooting your machine should now make lxc+cgmanager work fine as logind will setup all the controllers for you. @justinHume Your bug is entirely unrelated, can you please file a separate report? |
stgraber
closed this
May 20, 2014
vrodic
commented
May 20, 2014
|
Hmm, I retested again with ubuntu current trusty kernel and latest systemd bits and it still works, lxc_container: call to cgmanager_create_sync failed: invalid request |
|
Hmm, can you paste the content of /proc/self/cgroup ? |
vrodic
commented
May 20, 2014
|
From my current 3.14.4 boot: 13:hugetlb:/user/1000.user/c2.session |
|
Hmm, that looks like the old systemd... What version of systemd-services do you have installed? |
vrodic
commented
May 20, 2014
|
ii systemd-services 204-5ubuntu20 |
|
Right, so you are two versions behind, trusty currently has 204-5ubuntu20.2 which includes the fix you need. Make sure you're using an up to date mirror and that trusty-updates is enabled in your sources.list, then upgrade and you should get the fixed version. |
vrodic
commented
May 20, 2014
|
Thanks, sorry for wasting your time with my error prone upgrade workflow (I didn't replace raring with trusty for updates sources.list). |
|
Good to hear it was just that and that I didn't mess up the systemd fix :) |
vrodic
commented
May 20, 2014
|
Actually, I need to reboot to find out :) |
vrodic
commented
May 20, 2014
|
Yeah, confirmed fixed. |
justinHume
referenced this issue
May 22, 2014
Closed
command get_cgroup failed to receive response error when setting lxc.hook.start #225
SandipSingh14
commented
Jun 10, 2014
|
Hey stgraber, lxc-start: failed to attach 'vethMN1D30' to the bridge 'br0' : No such device |
|
That's a different problem, the error you pasted can be one of two things:
|
PeterNguyen0210
referenced this issue
Jul 2, 2014
Closed
manually mount net_cls, lxc_container: call to cgmanager_create_sync failed: invalid request #252
madsurgeon
commented
Feb 8, 2015
|
Hi Stéphane, The error message is: My /proc/self/cgroup: |
madsurgeon
commented
Feb 8, 2015
|
I have to add that the above error occurs when running starting an unpriviledged container from a user without sudo rights and without X11 rights. A pristine adduser user. From the default Ubuntu user starting unpriviledged containers works. I just had to chmod +x ~/.config, ~/.local, and ~/.local/share. |
vrodic commentedApr 23, 2014
Hello,
I get the lxc_container: command get_cgroup failed to receive response when trying to start the lxc container with 3.14.1 Linux from here: http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.14.1-trusty/
The 3.13.8, Ubuntu 14.04 current stock kernel (linux-image-extra-3.13.0-22-generic) also works.