[Bug 618916] [NEW] attach-interface only works every other time

Jamie Strandboge jamie at ubuntu.com
Mon Aug 16 22:37:36 BST 2010


Public bug reported:

After starting a VM, attach-interface does not work the first time, but
does the second. Notice the following set of commands:

$ virsh -c qemu:///system attach-interface "qatest-i386" network default --mac "52:00:00:00:00:00"
error: Failed to attach interface
error: operation failed: adding rtl8139,vlan=1,id=net1,mac=52:00:00:00:00:00,bus=pci.0,addr=0x5 device failed: pci_add_option_rom: failed to find romfile "pxe-rtl8139.bin"
$ virsh dumpxml qatest-i386 | grep 52:00
$ virsh -c qemu:///system attach-interface "qatest-i386" network default --mac "52:00:00:00:00:00"
Interface attached successfully
$ virsh dumpxml qatest-i386 |grep 52:00
      <mac address='52:00:00:00:00:00'/>
$ virsh -c qemu:///system attach-interface "qatest-i386" network default --mac "52:00:00:00:00:00"
error: Failed to attach interface
error: operation failed: adding rtl8139,vlan=2,id=net2,mac=52:00:00:00:00:00,bus=pci.0,addr=0x7 device failed: pci_add_option_rom: failed to find romfile "pxe-rtl8139.bin"
$ virsh dumpxml qatest-i386 |grep 52:00
      <mac address='52:00:00:00:00:00'/>
$ virsh -c qemu:///system attach-interface "qatest-i386" network default --mac "52:00:00:00:00:00"
Interface attached successfully
$ virsh dumpxml qatest-i386 |grep 52:00
      <mac address='52:00:00:00:00:00'/>
      <mac address='52:00:00:00:00:00'/>

I have the kvm-pxe package installed and "pxe-rtl8139.bin" is available,
so I don't know why qemu is complaining. This is not an AppArmor problem
(it would block every time). This was found by using the test-libvirt.py
script in lp:qa-regression-testing.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: libvirt-bin 0.8.3-1ubuntu3
ProcVersionSignature: Ubuntu 2.6.35-15.21-generic 2.6.35.1
Uname: Linux 2.6.35-15-generic x86_64
Architecture: amd64
Date: Mon Aug 16 16:18:46 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100427.1)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: libvirt

** Affects: libvirt (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug maverick

-- 
attach-interface only works every other time
https://bugs.launchpad.net/bugs/618916
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to libvirt in ubuntu.



More information about the Ubuntu-server-bugs mailing list