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

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


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'>
  <memory unit='KiB'>500000</memory>
  <currentMemory unit='KiB'>500000</currentMemory>
  <vcpu placement='static'>1</vcpu>
    <type arch='x86_64'>exe</type>
  <clock offset='utc'/>
    <filesystem type='mount' accessmode='passthrough'>
      <source dir='/usr/var/lib/lxc/foo/rootfs'/>
      <target dir='/'/>
    <console type='pty'>
      <target type='serial' port='0'/>
    <console type='pty'>
      <target type='serial' port='1'/>
    <console type='pty'>
      <target type='serial' port='2'/>
    <console type='pty'>
      <target type='serial' port='3'/>

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
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

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