Comment 0 for bug 480739

Revision history for this message
Stéphane Graber (stgraber) wrote : LXC isn't working by default in Karmic (and possibly Lucid) because of missing kernel options

In order to use LXC (Linux Containers), the cgroup must be enable in the kernel.
As of Karmic, only part of what's needed for LXC is enabled, basically we can manually create a context but can't set the list of allowed devices inside it or restrict swap memory.

Here's the cgroup parameters as of current Karmic kernel:
CONFIG_CGROUP_SCHED=y
CONFIG_CGROUPS=y
# CONFIG_CGROUP_DEBUG is not set
CONFIG_CGROUP_NS=y
CONFIG_CGROUP_FREEZER=y
# CONFIG_CGROUP_DEVICE is not set
CONFIG_CGROUP_CPUACCT=y
CONFIG_CGROUP_MEM_RES_CTLR=y
# CONFIG_CGROUP_MEM_RES_CTLR_SWAP is not set
CONFIG_NET_CLS_CGROUP=y

In order to have LXC working correctly including its integration with libvirt, we'd need:
CONFIG_CGROUP_DEVICE=y
CONFIG_CGROUP_MEM_RES_CTLR_SWAP=y

Was there any reason not to have these two set to yes ?