<div dir="ltr">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...<br><div class="gmail_quote"><div dir="ltr">
<div><div><br></div><div>
<div><b>lxc-start: Error creating cgroups</b></div><div><b>lxc-start: failed to spawn 'myhostvm1'</b></div></div><div><br></div><div>[root@ myhost ~]# uname -a</div><div>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</div>
<div><br></div><div>[root@ myhost ~]# cat /etc/redhat-release</div><div>CentOS release 6.5 (Final)</div></div><div><div><br></div><div>[root@myhost ~]# cat /proc/mounts | grep cgroup</div><div>none /cgroup cgroup rw,relatime,net_prio,perf_event,blkio,net_cls,freezer,devices,memory,cpuacct,cpu,ns,cpuset 0 0</div>
</div><div><br></div><div><div>[root@ myhost ~]# mount | grep cgroup</div><div>none on /cgroup type cgroup (rw)</div></div><div><br></div><div>Strace output...</div><div><div>munmap(0x7f6910596000, 4096) = 0</div>
<div>access("/cgroup/lxc/myhostvm1", F_OK) = -1 ENOENT (No such file or directory)</div><div>mkdir("/cgroup/lxc/myhost vm1", 0755) = -1 EINVAL (Invalid argument)</div><div>write(3, " lxc-start 1390924308.607 E"..., 76) = 76</div>
</div><div><br></div><div><div>[root@ myhost ~]# cd /cgroup/lxc/</div><div>[root@ myhost lxc]# pwd</div><div>/cgroup/lxc</div><div>[root@ myhost lxc]# mkdir myvm1</div><div>mkdir: cannot create directory `myvm1': Invalid argument</div>
</div><div><br></div><div><div>[root@ myhost lxc]# lxc-start -n myhost vm1 -f /var/lib/lxc/myhostvm1/config</div><div>lxc-start: Error creating cgroups</div><div>lxc-start: failed to spawn 'myhost vm1'</div></div>
<div><br></div><div>Thanks.</div><br clear="all"><div>ShiB.<br>while ( ! ( succeed = try() ) );</div></div></div></div>