[lxc-users] Fwd: Error creating cgroups

Shibashish shib4u at gmail.com
Tue Jan 28 16:04:04 UTC 2014


I had 3 VMs running on my host, the second vm crashed. I rebooted the host
after which I am not able start any lxc container. When I start the lxc
virtual host, it says...

*lxc-start: Error creating cgroups*
*lxc-start: failed to spawn 'myhostvm1'*

[root@ myhost ~]# uname -a
Linux myhost 2.6.32-431.3.1.el6.x86_64 #1 SMP Fri Jan 3 21:39:27 UTC 2014
x86_64 x86_64 x86_64 GNU/Linux

[root@ myhost ~]# cat /etc/redhat-release
CentOS release 6.5 (Final)

[root at myhost ~]# cat /proc/mounts | grep cgroup
none /cgroup cgroup
rw,relatime,net_prio,perf_event,blkio,net_cls,freezer,devices,memory,cpuacct,cpu,ns,cpuset
0 0

[root@ myhost ~]# mount | grep cgroup
none on /cgroup type cgroup (rw)

Strace output...
munmap(0x7f6910596000, 4096)            = 0
access("/cgroup/lxc/myhostvm1", F_OK)    = -1 ENOENT (No such file or
directory)
mkdir("/cgroup/lxc/myhost vm1", 0755)     = -1 EINVAL (Invalid argument)
write(3, "      lxc-start 1390924308.607 E"..., 76) = 76

[root@ myhost ~]# cd /cgroup/lxc/
[root@ myhost lxc]# pwd
/cgroup/lxc
[root@ myhost lxc]# mkdir myvm1
mkdir: cannot create directory `myvm1': Invalid argument

[root@ myhost lxc]# lxc-start -n myhost vm1 -f /var/lib/lxc/myhostvm1/config
lxc-start: Error creating cgroups
lxc-start: failed to spawn 'myhost vm1'

Thanks.

ShiB.
while ( ! ( succeed = try() ) );
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140128/f67ff368/attachment.html>


More information about the lxc-users mailing list