You are not logged in.

#1 2011-08-13 08:42:00

starfry
Member
From: Surrey, UK
Registered: 2010-08-18
Posts: 238

[SOLVED] Kernel 3.0 update has broken LXC

Hello, I've just updated to the latest config and so now have Kernel 3.0. This appears to have broken LXC.

WHen I try to boot a container I get this:

lxc-start -n mycontainer
lxc-start: No such file or directory - failed to rename cgroup /cgroup/1781->/cgroup/mycontainer
lxc-start: failed to spawn 'mycontainer'
lxc-start: No such file or directory - failed to remove cgroup '/cgroup/mycontainer'
[root@myhost ~]#

Here is my checkconfig and uname:

lxc-checkconfig
--- Namespaces ---
Namespaces: enabled
Utsname namespace: enabled
Ipc namespace: enabled
Pid namespace: enabled
User namespace: enabled
Network namespace: enabled
Multiple /dev/pts instances: enabled

--- Control groups ---
Cgroup: enabled
Cgroup namespace: missing
Cgroup device: enabled
Cgroup sched: enabled
Cgroup cpu account: enabled
Cgroup memory controller: enabled
Cgroup cpuset: enabled

--- Misc ---
Veth pair device: enabled
Macvlan: enabled
Vlan: enabled
File capabilities: missing

Note : Before booting a new kernel, you can check its configuration
usage : CONFIG=/path/to/config /usr/bin/lxc-checkconfig

[root@myhost ~]# uname -a
Linux myhost 3.0-ARCH #1 SMP PREEMPT Sat Aug 6 16:18:35 CEST 2011 x86_64 Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz GenuineIntel GNU/Linux

Please help, I am most desperately stuck as my desktop is in a container!!!

Thanks very much.

Update: Solved with an update to AUR package "lxc-git"

Last edited by starfry (2011-08-13 11:59:39)

Offline

#2 2012-09-05 05:21:59

yakov_cyb
Member
Registered: 2012-09-05
Posts: 1

Re: [SOLVED] Kernel 3.0 update has broken LXC

I also got this message. my system is Centos 5.8 with kernel 3.3.3 (vanil) , into lxc-0.6.5. but I can not update lxc, make lxc with error:
caps.c: In function 'lxc_caps_up':
caps.c:92: error: 'CAP_LAST_CAP' undeclared (first use in this function)
caps.c:92: error: (Each undeclared identifier is reported only once
caps.c:92: error: for each function it appears in.)
make[3]: *** [liblxc_so-caps.o] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/liblxc_so-mainloop.Tpo .deps/liblxc_so-mainloop.Po
make[3]: Leaving directory `/usr/src/redhat/BUILD/lxc-0.7.2/src/lxc'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/redhat/BUILD/lxc-0.7.2/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/lxc-0.7.2/src'
make: *** [all-recursive] Error 1
ошибка: Неверный код возврата из /var/tmp/rpm-tmp.60551 (%build)

Offline

#3 2012-09-06 14:59:53

starfry
Member
From: Surrey, UK
Registered: 2010-08-18
Posts: 238

Re: [SOLVED] Kernel 3.0 update has broken LXC

Hi, I don't know if you noticed but this thread's a year old.

LXC is now in the repos. Version lxc-0.8.0_rc2

Offline

Board footer

Powered by FluxBB