C. L. Martinez
2012-Mar-09 15:57 UTC
[CentOS] Errors trying to install centos 6.2 as an lxc guest under centos 6.2 host
Hi all, I am trying to install a centos 6.2 container under centos 6.2 host using libvirt and virt.-manager. I have selected "OS Container" option, but when I try to launch this guest virt-manager returns me this error: PATH=/sbin:/usr/sbin:/bin:/usr/bin LIBVIRT_DEBUG=3 LIBVIRT_LOG_OUTPUTS=3:stderr /usr/libexec/libvirt_lxc --name mysqlsrv --console 20 --handshake 23 --background --veth veth1 PATH=/bin:/sbin TERM=linux LIBVIRT_LXC_UUID=41bfb51b-294e-1ba9-16c9-fc2e3a345ff6 LIBVIRT_LXC_NAME=mysqlsrv /sbin/init 16:39:23.115: 1: info : libvirt version: 0.9.4, package: 23.el6_2.6 16:39:23.115: 1: error : lxcContainerChild:896 : cannot find init path '/sbin/init' relative to container root: No such file or directory I have followed these instructions: http://libvirt.org/drvlxc.html and http://berrange.com/posts/2011/09/27/getting-started-with-lxc-using-libvirt/ I have tried to do the same using rhel6.2 instead of centos 6.2 and results are the same ... What am I doing wrong?? Do I need to copy all host files to this guest?? I f yes, then, how can I apply security updates to these guests?? Thanks.
Apparently Analagous Threads
- Cannot recv data: Connection reset by peer
- libvirt-1.2.2-r1 (Gentoo) fails to start LXC containers
- Unable to start LXC on Gentoo w/ libvirt 1.0.4 or 1.0.5. 1.0.3 works
- read-only rootfs for lxc containers
- Re: libvirt-1.2.2-r1 (Gentoo) fails to start LXC containers