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