Subject: libvirt-bin: autostart fails on reboot
Package: libvirt-bin
Version: 0.8.3-1
Severity: normal

*** Please type your report below this line ***
I have a routed setup of kvm (with libvirt).

My tun devices are created in /etc/network/interfaces.

auto tap0
iface tap0 inet static
  address xxx.xxx.xxx.xxx
  netmask 255.255.255.255
  tunctl_user libvirt-qemu
  up route add xxx.xxx.xxx.xxx/32 dev tap0

But when I reboot my host server, and libvirt starts, it can't start the guests.
I get the following error:
Sep 21 21:28:51 cloud libvirtd: 21:28:51.046: error : qemudReadLogOutput:2118 : internal error Process exited while reading console log output: char device redirected to /dev/pts/1#012could not open /dev/net/tun: Permission denied#012 Sep 21 21:28:51 cloud libvirtd: 21:28:51.047: error : qemuAutostartDomain:827 : Failed to autostart VM 'dupondje': internal error Process exited while reading console log output: char device redirected to /dev/pts/1#012could not open /dev/net/tun: Permission denied#012


It seems to fail because the tap0 doesn't exist yet, and libvirt tries to make it.

If I restart libvirt-bin after like 30 seconds, the devices get started without any issue. So it seems like there is some race condition, that makes libvirt-bin start before the network is initialized.


-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libvirt-bin depends on:
ii  adduser                   3.112          add and remove users and groups
ii  libavahi-client3          0.6.27-2       Avahi client library
ii  libavahi-common3          0.6.27-2       Avahi common library
ii  libblkid1                 2.17.2-3.1     block device id library
ii libc6 2.11.2-6 Embedded GNU C Library: Shared lib ii libcap-ng0 0.6.4-1 An alternate posix capabilities li ii libdevmapper1.02.1 2:1.02.48-3 The Linux Kernel Device Mapper use ii libgcrypt11 1.4.5-2 LGPL Crypto library - runtime libr ii libgnutls26 2.8.6-1 the GNU TLS library - runtime libr ii libnl1 1.1-5 library for dealing with netlink s ii libparted0debian1 2.3-2 The GNU Parted disk partitioning s ii libpciaccess0 0.12.0-1 Generic PCI access library for X ii libreadline6 6.1-3 GNU readline and history libraries ii libsasl2-2 2.1.23.dfsg1-6 Cyrus SASL - authentication abstra
ii  libudev0                  160-1          libudev shared library
ii  libuuid1                  2.17.2-3.1     Universally Unique ID library
ii libvirt0 0.8.3-1 library for interfacing with diffe ii libxenstore3.0 4.0.1-1 Xenstore communications library fo
ii  libxml2                   2.7.7.dfsg-4   GNOME XML library
ii  logrotate                 3.7.8-6        Log rotation utility

Versions of packages libvirt-bin recommends:
ii bridge-utils 1.4-5 Utilities for configuring the Linu ii dnsmasq-base 2.55-2 A small caching DNS proxy and DHCP
pn  gawk                       <none>        (no description available)
ii iptables 1.4.8-3 administration tools for packet fi
pn  libxml2-utils              <none>        (no description available)
ii  netcat-openbsd             1.89-4        TCP/IP swiss army knife
ii  qemu                       0.12.5+dfsg-2 fast processor emulator
ii qemu-kvm 0.12.5+dfsg-3 Full virtualization on x86 hardwar

Versions of packages libvirt-bin suggests:
ii policykit-1 0.96-3 framework for managing administrat



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to