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(a)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(a)redhat.com
https://www.redhat.com/mailman/listinfo/libvirt-users