[Lxc-users] Can't start container with cgroup limits
Serge Hallyn
serge.hallyn at ubuntu.com
Thu Apr 25 13:33:54 UTC 2013
Quoting Robin Monjo (appldiget) (robin.monjo at applidget.com):
> Hello again,
>
> I'm facing a strange issue (a bug maybe ?) on ubuntu 12.04. Creating a simple container (lxc-create -t ubuntu -c cn0) and adding these lines in the config file:
>
> lxc.cgroup.memory.memsw.limit_in_bytes = 1G
> lxc.cgroup.memory.limit_in_bytes = 512M
> lxc.cgroup.cpu.shares = 512
Switch the first two lines.
You need to set the memory limit before the memory+swap limit.
More information about the lxc-users
mailing list