[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] Unable to start container on Fedora 17 with kernel 3.8.0



> -----Original Message-----
> From: Gao feng [mailto:gaofeng cn fujitsu com]
> Sent: Wednesday, March 27, 2013 5:10 AM
> To: Purcareata Bogdan-B43198
> Cc: libvir-list redhat com
> Subject: Re: [libvirt] Unable to start container on Fedora 17 with kernel 3.8.0
> 
> On 2013/03/27 01:12, Purcareata Bogdan-B43198 wrote:
> > Hello,
> >
> > I've had some trouble starting a Linux Container with libvirt. Here's my setup:
> >
> > 1. I've downloaded libvirt-1.0.3.tar.gz from [1] and issued:
> > - ./configure --prefix=/usr
> > - make
> > - make install
> > - ldconfig
> >
> > 2. I've started the libvirtd service:
> > - sudo service libvirtd start
> > Starting libvirtd (via systemctl):  Warning: Unit file of created job changed on disk, 'systemctl --
> system daemon-reload' recommended.
> >                                                            [  OK  ]
> >
> > 3. I've defined the lxc domain:
> > <domain type='lxc'>
> >   <name>foo</name>
> >   <uuid>2d1fa65a-0dbf-46e3-3a5c-ebc53e3d0c25</uuid>
> >   <memory unit='KiB'>500000</memory>
> >   <currentMemory unit='KiB'>500000</currentMemory>
> >   <vcpu placement='static'>1</vcpu>
> >   <os>
> >     <type arch='x86_64'>exe</type>
> >     <init>/bin/init</init>
> >   </os>
> >   <clock offset='utc'/>
> >   <on_poweroff>destroy</on_poweroff>
> >   <on_reboot>restart</on_reboot>
> >   <on_crash>destroy</on_crash>
> >   <devices>
> >     <emulator>/usr/libexec/libvirt_lxc</emulator>
> >     <filesystem type='mount' accessmode='passthrough'>
> >       <source dir='/usr/var/lib/lxc/foo/rootfs'/>
> >       <target dir='/'/>
> >     </filesystem>
> >     <console type='pty'>
> >       <target type='serial' port='0'/>
> >     </console>
> >     <console type='pty'>
> >       <target type='serial' port='1'/>
> >     </console>
> >     <console type='pty'>
> >       <target type='serial' port='2'/>
> >     </console>
> >     <console type='pty'>
> >       <target type='serial' port='3'/>
> >     </console>
> >   </devices>
> > </domain>
> >
> > When issuing virsh -c lxc:/// start foo I get the following error:
> > error: Failed to start domain foo
> > error: internal error guest failed to start: PATH=/bin:/sbin TERM=linux container=lxc-libvirt
> container_uuid=2d1fa65a-0dbf-46e3-3a5c-ebc53e3d0c25 LIBVIRT_LXC_UUID=2d1fa65a-0dbf-46e3-3a5c-
> ebc53e3d0c25 LIBVIRT_LXC_NAME=foo /bin/init
> > 2013-03-26 17:09:34.186+0000: 1: info : libvirt version: 1.0.3
> > 2013-03-26 17:09:34.186+0000: 1: error : lxcContainerMountBasicFS:563 : Failed to mount /selinux on
> /selinux type selinuxfs flags=e opts=(null): No such device
> 
> 
> Try to rm directory /selinux of host.
> I guess your selinux is disabled.

Yes, it is true - selinux was disabled on my machine.
I've set "permissive" in /etc/selinux/config and rebooted. Now it works.

Thank you for your help!

> 
> Maybe We need a patch to detect if selinux is enabled by getmntent_r.
> 
> > 2013-03-26 17:09:34.186+0000: 8087: info : libvirt version: 1.0.3
> > 2013-03-26 17:09:34.186+0000: 8087: error : virLXCControllerRun:1468 : error receiving signal from
> container: Input/output error
> >
> > Same message is present in /var/log/libvirt/lxc/foo.log. No errors shown in /var/log/messages.
> >
> > Machine: Linux everest 3.8.0 #1 SMP Mon Mar 25 19:29:56 EET 2013 x86_64 x86_64 x86_64 GNU/Linux
> >
> > Can you please provide me some more info on the issue?
> >
> > Thank you very much,
> > Bogdan P.
> >
> > [1] http://libvirt.org/sources/libvirt-1.0.3.tar.gz
> >
> >
> >
> >
> > --
> > libvir-list mailing list
> > libvir-list redhat com
> > https://www.redhat.com/mailman/listinfo/libvir-list
> >
> 




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]