张章
2013-Mar-25 06:59 UTC
[libvirt-users] Failed to boot lxc with libvirt 1.0.3:2013-03-25 06:54:17.620+0000: 1: error : lxcContainerMountBasicFS:563 : Failed to mount /selinux on /selinux type selinuxfs flags=e opts=(null): No such device
hi all, I am using lxc with libvirt. But I can't boot lxc container by libvirt 1.0.3(libvirt 0.9.8 works) . Below is my environment. Do I miss something? lxc1.xml:<domain type='lxc'> <name>lxc1</name> <memory>1024000</memory> <cputune> <shares>100</shares> </cputune> <os> <type>exe</type> <init>/bin/sh</init> </os> <devices> <console type = 'pty'/> </devices></domain> I used virsh -c lxc:/// create lxc1.xml and got the following error:2013-03-25 06:54:17.620+0000: 1: info : libvirt version: 1.0.32013-03-25 06:54:17.620+0000: 1: error : lxcContainerMountBasicFS:563 : Failed to mount /selinux on /selinux type selinuxfs flags=e opts=(null): No such device2013-03-25 06:54:17.620+0000: 10668: info : libvirt version: 1.0.32013-03-25 06:54:17.620+0000: 10668: error : virLXCControllerRun:1468 : error receiving signal from container: Input/output error My OS: Ubuntu 11.10 Can anyone help me? Thanks a lot! regardszhangzhang -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130325/f2b14005/attachment.htm>
Saurabh Deochake
2013-Mar-25 07:07 UTC
[libvirt-users] Failed to boot lxc with libvirt 1.0.3:2013-03-25 06:54:17.620+0000: 1: error : lxcContainerMountBasicFS:563 : Failed to mount /selinux on /selinux type selinuxfs flags=e opts=(null): No such device
Hi zhangzhang, Did you check your SELinux settings? Is it set to enforcing? I faced the same error on CentOS 6.3. My SELinux was disabled. I just set it to enforcing and rebooted the system. I could create a container after reboot. Thanks and Regards, Saurabh. On Mon, Mar 25, 2013 at 12:29 PM, ?? <zhang_zhang at live.com> wrote:> hi all, > I am using lxc with libvirt. But I can't boot lxc container by libvirt > 1.0.3(libvirt 0.9.8 works) . Below is my environment. > Do I miss something? > > > lxc1.xml: > <domain type='lxc'> > <name>lxc1</name> > <memory>1024000</memory> > <cputune> > <shares>100</shares> > </cputune> > <os> > <type>exe</type> > <init>/bin/sh</init> > </os> > <devices> > <console type = 'pty'/> > </devices> > </domain> > > > I used virsh -c lxc:/// create lxc1.xml and got the following error: > 2013-03-25 06:54:17.620+0000: 1: info : libvirt version: 1.0.3 > 2013-03-25 06:54:17.620+0000: 1: error : lxcContainerMountBasicFS:563 : > Failed to mount /selinux on /selinux type selinuxfs flags=e opts=(null): No > such device > 2013-03-25 06:54:17.620+0000: 10668: info : libvirt version: 1.0.3 > 2013-03-25 06:54:17.620+0000: 10668: error : virLXCControllerRun:1468 : > error receiving signal from container: Input/output error > > My OS: Ubuntu 11.10 > > Can anyone help me? Thanks a lot! > > regards > zhangzhang > > > > > _______________________________________________ > libvirt-users mailing list > libvirt-users at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20130325/ef7eaa07/attachment.htm>
Possibly Parallel Threads
- Re: If it's possible for a third-party PCIe card to be shared by multiple containers
- Support for Hyper-V
- lxc-enter-namespace error: security model cannot be entered.
- virtual network bug?
- Re: If it's possible for a third-party PCIe card to be shared by multiple containers