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 <[email protected]> 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
> [email protected]
> http://lists.linuxcontainers.org/listinfo/lxc-users
>
_______________________________________________
lxc-users mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to