lxc complains about cgroup not available
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
I have been trying to work with lxc to make use of my uml image. My config is as follows:
12:21:05 rrs@champaran:~$ cat /var/lib/
lxc.utsname = test
lxc.rootfs = /home/rrs/
lxc.rootfs.mount = /tmp/foo
lxc.cgroup.
lxc.cgroup.
lxc.cgroup.
lxc.cgroup.
lxc.cgroup.
#lxc.mount = /etc/fstab.complex
lxc.mount.entry = /lib /root/myrootfs/lib none ro,bind 0 0
lxc.cap.drop = sys_module mknod setuid net_raw
lxc.cap.drop = mac_override
When I try to start the instance, I get the following error:
12:16:04 rrs@champaran:~$ sudo lxc-start -n test
lxc-start: cgroup is not mounted
lxc-start: failed to setup the cgroups for 'test'
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'test'
But as you can see below, cgroup is already mounted.
12:16:49 rrs@champaran:~$ mount
/dev/sda6 on / type ext4 (rw,errors=
proc on /proc type proc (rw,noexec,
sysfs on /sys type sysfs (rw,noexec,
none on /sys/fs/
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,
tmpfs on /run type tmpfs (rw,noexec,
none on /run/lock type tmpfs (rw,noexec,
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/sda2 on /boot type ext4 (rw,commit=600)
binfmt_misc on /proc/sys/
cgroups on /sys/fs/cgroup type tmpfs (rw,uid=
gvfs-fuse-daemon on /home/rrs/
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: lxc 0.7.5-3ubuntu28
ProcVersionSign
Uname: Linux 3.2.0-17-generic x86_64
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
Date: Mon Feb 20 12:17:21 2012
SourcePackage: lxc
UpgradeStatus: Upgraded to precise on 2012-01-24 (26 days ago)
mtime.conffile.
actually, this must be a problem at my end. I just tried with lxc-create, and it was able to create a container. Sorry for the noise.