lxc broken by cgroup-bin

Bug #784093 reported by Tom on 2011-05-17
This bug affects 4 people
Affects Status Importance Assigned to Milestone
lxc (Debian)
Fix Released
lxc (Ubuntu)
Serge Hallyn

Bug Description

Binary package hint: lxc

After installing cgroup-bin, the cgroups filesystem is mounted, by default, under /sys/fs/cgroups, but individual subsystems, such as devices are placed in subdirectories. The lxc-start command looks for the file devices.deny in the root (/sys/fs/cgroups), but fails to find it with the default configuration of cgroups-bin, which places the file devices.deny in /sys/fs/cgroups/devices/devices.deny.

Related branches

Changed in lxc (Ubuntu):
status: New → Confirmed
Clint Byrum (clint-fewbar) wrote :

Just hit this as well in Natty.

$ sudo lxc-start -n lucid-test2
lxc-start: open /sys/fs/cgroup/cpu/lucid-test2/devices.deny : No such file or directory
lxc-start: failed to setup the cgroups for 'lucid-test2'
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'lucid-test2'

I changed /etc/cgconfig.conf to

mount {
 cpu = /sys/fs//cgroup/cpu;
 cpuacct = /sys/fs/cgroup/cpu;
 devices = /sys/fs/cgroup/cpu;
 memory = /sys/fs/cgroup/cpu;

And all works as expected now.

Changed in lxc (Ubuntu):
importance: Undecided → High
Robert Collins (lifeless) wrote :

With spamaps config I can start containers but not stop them using lxc-stop. poweroff in the container works.

Changed in lxc (Ubuntu):
status: Confirmed → In Progress
assignee: nobody → Serge Hallyn (serge-hallyn)
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lxc -

lxc ( oneiric; urgency=low

  * Sync upstream
  * Add diff up to git head.
    - Fix interaction with cgroups-bin (LP: #784093)
    - Fix arch support to create i386 containers on amd64 (LP: #798476)
    - Support a bind-mounted $HOME with template (LP: #800482)
  * add debootstrap to Recommends (LP: #803745)
  * debian/patchs updates:
    - refresh 0002-disable-debian-checkroot-script.patch
    - drop:
      * 0004-add-ubuntu-mirrors.patch
      * 0005-add-netbase-to-templates.patch
      * 0006-fix-template-syntax-error.patch
      * 0007-natty-template-install-lxcguest.patch
      * 0010-templates-use-dpkg.patch
    - renamed and updated:
      * 0008-add-arm-to-supported-archs.patch to
      * 0009-templates-dont-use-devpts-in-fstab to
      * 0011-templates-allow-fuse.patch to
  * remove unused debian/lxc-start.sh
  * include autoreconf.mk to force Makefile.in to be rebuilt
  * Remaining changes over debian:
    - add lxcguest package
    - debian/control
      * keep docbook-utils in Build-Depends
    - lxc.default: add commented example MIRROR
 -- Serge Hallyn <email address hidden> Thu, 07 Jul 2011 13:53:52 -0500

Changed in lxc (Ubuntu):
status: In Progress → Fix Released
Changed in lxc (Debian):
status: Unknown → New
Changed in lxc (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.