[Pkg-libvirt-maintainers] Bug#514803: libvirt-bin: "virsh net-create /etc/libvirt/qemu/networks/default.xml" allows to start the VM

Laurent Vivier laurent at vivier.eu
Tue Apr 7 20:09:34 UTC 2009


Package: libvirt-bin
Version: 0.4.6-10
Followup-For: Bug #514803


This bug is found using virt-manager.

The VM has been created and run without problem the first time.
After a reboot of the host, when I try to start the VM the problem 
appears.

My VM is defined by:

<domain type='kvm'>
  <name>debian-i386</name>
  <uuid>a8c92ab9-870d-3965-3ab4-5100d43ff5e4</uuid>
  <memory>524288</memory>
  <currentMemory>524288</currentMemory>
  <vcpu>2</vcpu>
  <os>
    <type arch='x86_64' machine='pc'>hvm</type>
    <boot dev='hd'/>
  </os>
  <features>
    <acpi/>
    <apic/>
    <pae/>
  </features>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/bin/kvm</emulator>
    <disk type='file' device='cdrom'>
      <target dev='hdc' bus='ide'/>
      <readonly/>
    </disk>
    <disk type='block' device='disk'>
      <source dev='/dev/mapper/Quad-debian--i386'/>
      <target dev='vda' bus='virtio'/>
    </disk>
    <interface type='network'>
      <mac address='54:52:00:0a:7f:c2'/>
      <source network='default'/>
    </interface>
    <serial type='pty'>
      <source path='/dev/pts/3'/>
      <target port='0'/>
    </serial>
    <console type='pty' tty='/dev/pts/3'>
      <source path='/dev/pts/3'/>
      <target port='0'/>
    </console>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' keymap='fr'/>
    <sound model='es1370'/>
  </devices>
</domain>

virt-manager.log:

[mar, 07 avr 2009 21:51:59 virt-manager 6727] DEBUG (error:67) Uncaught 
Error: Error starting domain: internal error Network 'default' not found 
: Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/engine.py", line 531, in 
run_domain
    vm.startup()
  File "/usr/share/virt-manager/virtManager/domain.py", line 380, in 
startup
    self.vm.create()
  File "/usr/lib/python2.5/site-packages/libvirt.py", line 262, in 
create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', 
dom=self)
libvirtError: internal error Network 'default' not found

If I run:
$ sudo virsh net-create /etc/libvirt/qemu/networks/default.xml
Network default created from /etc/libvirt/qemu/networks/default.xml

The VM can be started without problem.

-- System Information:
Debian Release: 5.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libvirt-bin depends on:
ii  adduser                3.110             add and remove users and groups
ii  libavahi-client3       0.6.23-3lenny1    Avahi client library
ii  libavahi-common3       0.6.23-3lenny1    Avahi common library
ii  libc6                  2.7-18            GNU C Library: Shared libraries
ii  libdbus-1-3            1.2.1-5           simple interprocess messaging syst
ii  libgcrypt11            1.4.1-1           LGPL Crypto library - runtime libr
ii  libgnutls26            2.4.2-6+lenny1    the GNU TLS library - runtime libr
ii  libgpg-error0          1.4-2             library for common error values an
ii  libpolkit-dbus2        0.9-2             library for accessing PolicyKit vi
ii  libpolkit2             0.9-2             library for accessing PolicyKit
ii  libreadline5           5.2-3.1           GNU readline and history libraries
ii  libsasl2-2             2.1.22.dfsg1-23   Cyrus SASL - authentication abstra
ii  libselinux1            2.0.65-5          SELinux shared libraries
ii  libtasn1-3             1.4-1             Manage ASN.1 structures (runtime)
ii  libvirt0               0.4.6-10          library for interfacing with diffe
ii  libxenstore3.0         3.2.1-2           Xenstore communications library fo
ii  libxml2                2.6.32.dfsg-5     GNOME XML library
ii  logrotate              3.7.1-5           Log rotation utility
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

Versions of packages libvirt-bin recommends:
ii  bridge-utils                  1.4-5      Utilities for configuring the Linu
ii  dnsmasq                       2.45-1     A small caching DNS proxy and DHCP
ii  iptables                      1.4.2-6    administration tools for packet fi
ii  netcat-openbsd                1.89-3     TCP/IP swiss army knife
ii  qemu                          0.9.1-10   fast processor emulator

Versions of packages libvirt-bin suggests:
pn  policykit                     <none>     (no description available)

-- no debconf information





More information about the Pkg-libvirt-maintainers mailing list