[Bug 480739] Re: LXC isn't working by default in Lucid because of missing kernel options

Stefan Bader stefan.bader at canonical.com
Wed Mar 17 16:39:40 UTC 2010


** Description changed:

+ SRU Justification:
+ 
+ Impact: LXC (Linux containers) need two other options set to work correctly.
+ The options should only affect the usage of cgroups.
+ 
+ Fix: Enable those options as they have been in Lucid now for a while and
+ also make them consistent over all of ports and main.
+ 
+ ---
+ 
  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 ?

** Changed in: linux (Ubuntu Karmic)
       Status: In Progress => Fix Committed

-- 
LXC isn't working by default in Lucid because of missing kernel options
https://bugs.launchpad.net/bugs/480739
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to linux in ubuntu.




More information about the kernel-bugs mailing list