lxc broken by cgroup-bin
Bug #784093 reported by
Tom Moyer
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Debian) |
Fix Released
|
Unknown
|
|||
lxc (Ubuntu) |
Fix Released
|
High
|
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/
Related branches
Changed in lxc (Ubuntu): | |
status: | New → Confirmed |
Changed in lxc (Ubuntu): | |
status: | Confirmed → In Progress |
assignee: | nobody → Serge Hallyn (serge-hallyn) |
Changed in lxc (Debian): | |
status: | Unknown → New |
Changed in lxc (Debian): | |
status: | New → Fix Released |
To post a comment you must log in.
Just hit this as well in Natty.
$ sudo lxc-start -n lucid-test2 cgroup/ cpu/lucid- test2/devices. deny : No such file or directory
lxc-start: open /sys/fs/
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 { /cgroup/ cpu;
cpu = /sys/fs/
cpuacct = /sys/fs/cgroup/cpu;
devices = /sys/fs/cgroup/cpu;
memory = /sys/fs/cgroup/cpu;
}
And all works as expected now.