Trying to start a Linux container, I get the following:

lxc-start: No cgroup mounted on the system

OS is Debian 7.

share|improve this question
up vote 4 down vote accepted

LXC (or other uses of the cgroups facility) requires the cgroups filesystem to be mounted (see §2.1 in the cgroups kernel documentation). It seems that as of Debian wheezy, this doesn't happen automatically.

Add the following line to /etc/fstab:

cgroup /sys/fs/cgroup cgroup defaults

For a one-time thing, mount it manually:

mount -t cgroup cgroup /sys/fs/cgroup
share|improve this answer

For lxc in Debian Wheezy I use in /etc/fstab:

cgroup /sys/fs/cgroup cgroup defaults,blkio,net_cls,freezer,devices,cpuacct,cpu,cpuset,memory,clone_children 0 0

In /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet cgroup_enable=memory,namespace"

(& don't forget to run update-grub)

It is also possible to run LXC 1.0.7 on Debian Wheezy

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.