[lxc-users] failed to start container on centos

Alvaro Miranda Aguilera kikitux at gmail.com
Mon Feb 10 23:45:16 UTC 2014


try this:

chkconfig cgconfig on
service cgconfig restart

service libvirtd start

sysctl -w net.ipv4.ip_forward=1

if you want the containers to access the network/internet

add

net.ipv4.ip_forward=1

to /etc/sysctl.conf

Alvaro.




On Tue, Feb 11, 2014 at 4:06 AM, Mingjiang Shi <mrjewes at gmail.com> wrote:

> Hi there,
> I am a newbie to lxc and trying to use lxc on centos.  I downloaded source
> code from github, built it on centos 6, and managed to create my first
> linux container using centos template.  Everything went well so far.
>
> However, I got the following error when trying to start it:
>
> lxc-start: command get_cgroup failed to receive response
>
> My machine has libcgroup installed already:
> # rpm -qa | grep cgroup
> libcgroup-devel-0.40.rc1-5.el6_5.1.x86_64
> libcgroup-0.40.rc1-5.el6_5.1.x86_64
>
> I googled a lot, but didn't find any relevant information for running lxc
> on centos. I appreciate any idea on the possible fix for this issue or
> ideas on how to debug this, like how to enable more logs. Thanks!
>
> --
> Thanks
> -Mingjiang
>
> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140211/67105eac/attachment.html>


More information about the lxc-users mailing list