Public bug reported:

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/test/config 
lxc.utsname = test
lxc.rootfs = /home/rrs/Debian-Wheezy-AMD64-root_fs
lxc.rootfs.mount = /tmp/foo


lxc.cgroup.cpuset.cpus = 0,1
lxc.cgroup.cpu.shares = 1234
lxc.cgroup.devices.deny = a
lxc.cgroup.devices.allow = c 1:3 rw
lxc.cgroup.devices.allow = b 8:0 rw
#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=remount-ro,commit=600)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
/dev/sda2 on /boot type ext4 (rw,commit=600)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc 
(rw,noexec,nosuid,nodev)
cgroups on /sys/fs/cgroup type tmpfs (rw,uid=0,gid=0,mode=0755)
gvfs-fuse-daemon on /home/rrs/.cache/gvfs type fuse.gvfs-fuse-daemon 
(rw,nosuid,nodev,user=rrs)

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: lxc 0.7.5-3ubuntu28
ProcVersionSignature: Ubuntu 3.2.0-17.26-generic 3.2.6
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..etc.default.lxc: 2012-01-25T01:58:25.599609

** Affects: lxc (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug precise

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/936756

Title:
  lxc complains about cgroup not available

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/936756/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to