[Pkg-libvirt-maintainers] Bug#619929: Bug#619929: libvirt-bin: Error while attaching tap interface to bridge

Guido Günther agx at sigxcpu.org
Mon Mar 28 17:18:32 UTC 2011


Hi,
On Mon, Mar 28, 2011 at 03:21:01PM +0200, Loïc REVEST wrote:
> Package: libvirt-bin
> Version: 0.8.3-5+squeeze1
> Severity: normal
> 
> 
> I set up once a VM with Squeeze (using kvm) and a bridge (br0) with a "persistent" (added in /etc/network/interfaces) tap0 interface.
> 
> This VM worked perfectly with a command like "kvm -hda test.qcow2 [...] -net nic -net tap,ifname=tap0,script=no", guest was reachable through tap0
> 
> While I defined this VM through virsh (see dumpxml below), virsh get the VM started but couldn't ping it from host. VNC access worked, though (showing that VM was running indeed).
> 
> I got a "warning" in /var/log/messages :
> 
> libvirtd: 14:41:53.994: warning : qemudParsePCIDeviceStrs:1422 : Unexpected exit status '1', qemu probably failed
> kernel: [136819.333361] device vnet0 entered promiscuous mode
> kernel: [136819.333924] br0: topology change detected, propagating
> kernel: [136819.333927] br0: port 2(vnet0) entering forwarding state
> 
> But nothing "suspect" in /var/log/libvirt/qemu/SqueezeVM.log :
> 
> LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin HOME=/root USER=root LOGNAME=root QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 1024 -smp 1,sockets=1,cores=1,threads=1 -name SqueezeVM -uuid a4c657ef-171b-7924-1f2b-629c4c0beda1 -nodefaults -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/SqueezeVM.monitor,server,nowait -mon chardev=monitor,mode=readline -rtc base=utc -boot c -drive file=/home/loic/test.qcow2,if=none,id=drive-ide0-0-0,boot=on,format=raw -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -device rtl8139,vlan=0,id=net0,mac=52:54:00:19:d9:2e,bus=pci.0,addr=0x3 -net tap,fd=42,vlan=0,name=hostnet0 -usb -vnc 127.0.0.1:0 -vga std -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4 -k fr
> 
> Running an "ifconfig" in VM shell, all I got was the "lo" interface.

Please check

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=593229

You might need to set clear_emulator_capabilities=0.
Cheers,
 -- Guido

> 
> virsh dumpxml from-my-VM :
> 
> <domain type='kvm' id='2' xmlns:qemu='http://libvirt.org/schemas/domain/qemu/1.0'>
>   <name>SqueezeVM</name>
>   <uuid>a4c657ef-171b-7924-1f2b-629c4c0beda1</uuid>
>   <memory>1048576</memory>
>   <currentMemory>1048576</currentMemory>
>   <vcpu>1</vcpu>
>   <os>
>     <type arch='x86_64' machine='pc-0.12'>hvm</type>
>     <boot dev='hd'/>
>   </os>
>   <features>
>     <acpi/>
>     <pae/>
>   </features>
>   <clock offset='utc'/>
>   <on_poweroff>destroy</on_poweroff>
>   <on_reboot>restart</on_reboot>
>   <on_crash>destroy</on_crash>
>   <devices>
>     <emulator>/usr/bin/kvm</emulator>
>     <disk type='file' device='disk'>
>       <driver name='qemu' type='raw'/>
>       <source file='/home/loic/test.qcow2'/>
>       <target dev='hda' bus='ide'/>
>       <alias name='ide0-0-0'/>
>       <address type='drive' controller='0' bus='0' unit='0'/>
>     </disk>
>     <controller type='ide' index='0'>
>       <alias name='ide0'/>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
>     </controller>
>     <interface type='bridge'>
>       <mac address='52:54:00:19:d9:2e'/>
>       <source bridge='br0'/>
>       <target dev='vnet0'/>
>       <alias name='net0'/>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
>     </interface>
>     <input type='mouse' bus='ps2'/>
>     <graphics type='vnc' port='5900' autoport='no'/>
>     <video>
>       <model type='vga' vram='9216' heads='1'/>
>       <alias name='video0'/>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
>     </video>
>     <memballoon model='virtio'>
>       <alias name='balloon0'/>
>       <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
>     </memballoon>
>   </devices>
>   <qemu:commandline>
>     <qemu:arg value='-k'/>
>     <qemu:arg value='fr'/>
>   </qemu:commandline>
> </domain>
> 
> -- System Information:
> Debian Release: 6.0.1
>   APT prefers stable
>   APT policy: (500, 'stable')
> Architecture: amd64 (x86_64)
> 
> Kernel: Linux 2.6.32-5-amd64 (SMP w/3 CPU cores)
> Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> 
> Versions of packages libvirt-bin depends on:
> ii  adduser                3.112+nmu2        add and remove users and groups
> ii  libavahi-client3       0.6.27-2+squeeze1 Avahi client library
> ii  libavahi-common3       0.6.27-2+squeeze1 Avahi common library
> ii  libblkid1              2.17.2-9          block device id library
> ii  libc6                  2.11.2-10         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-5       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-6             library for dealing with netlink s
> ii  libparted0debian1      2.3-5             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-7    Cyrus SASL - authentication abstra
> ii  libudev0               164-3             libudev shared library
> ii  libuuid1               2.17.2-9          Universally Unique ID library
> ii  libvirt0               0.8.3-5+squeeze1  library for interfacing with diffe
> ii  libxenstore3.0         4.0.1-2           Xenstore communications library fo
> ii  libxml2                2.7.8.dfsg-2      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
> ii  ebtables                  2.0.9.2-2      Ethernet bridge frame table admini
> ii  gawk                      1:3.1.7.dfsg-5 GNU awk, a pattern scanning and pr
> ii  iptables                  1.4.8-3        administration tools for packet fi
> ii  libxml2-utils             2.7.8.dfsg-2   XML utilities
> ii  netcat-openbsd            1.89-4         TCP/IP swiss army knife
> ii  qemu-kvm                  0.12.5+dfsg-5  Full virtualization on x86 hardwar
> 
> Versions of packages libvirt-bin suggests:
> pn  policykit-1                   <none>     (no description available)
> 
> -- Configuration Files:
> /etc/libvirt/qemu.conf changed:
> user = "loic"
> group = "kvm"
> dynamic_ownership = 1
> 
> 
> -- no debconf information
> 
> 
> 
> 
> _______________________________________________
> Pkg-libvirt-maintainers mailing list
> Pkg-libvirt-maintainers at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-libvirt-maintainers
> 





More information about the Pkg-libvirt-maintainers mailing list