[Lxc-users] Can't start container with cgroup limits
Robin Monjo (appldiget)
robin.monjo at applidget.com
Thu Apr 25 10:47:32 UTC 2013
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
results in:
lxc-start: write /sys/fs/cgroup/memory//lxc/cn0/memory.memsw.limit_in_bytes : Invalid argument
lxc-start: failed to setup the cgroups for 'simple'
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'simple'
The problem is probably the "//" in the path /sys/fs/cgroup/memory//.
Anyway to fix this ?
Kind Regards
Robin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130425/2b9d7424/attachment.html>
More information about the lxc-users
mailing list