Bug 525626 - libvirtd can not attach interface after detach NIC hot-plug device
libvirtd can not attach interface after detach NIC hot-plug device
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: libvirt (Show other bugs)
rawhide
All Linux
low Severity medium
: ---
: ---
Assigned To: Daniel Veillard
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-09-25 02:36 EDT by jbao
Modified: 2009-09-25 03:50 EDT (History)
12 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-09-25 03:50:18 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description jbao 2009-09-25 02:36:24 EDT
Description of problem:
attach-interface rawhide network default fails.
Error:operation failed: failed to add NIC with 'pci_add pci_addr=auto nic macaddr=52:54:00:2a:bc:f4,vlan=0,name=nic.0'
The guest machine shutdown immediately.


Version-Release number of selected component (if applicable):
qemu-kvm-0.10.92-4.fc12.x86_64
libvirt-0.7.1-4.fc12.x86_64
virt-viewer-0.2.0-1.fc12.x86_64

kernel:2.6.31-33.fc12.x86_64


How reproducible:
always

Steps to Reproduce:
1.install Fedora 12 kvm guest
2.execute virsh edit <your_guest_name> , remove every <interface> blocks in
the file, save the file
3. create new xml file:
<interface type='network'>
     <mac address='52:54:00:40:45:83'/>
     <source network='default'/>
     <model type='virtio'/>
</interface>
4. start the guest and make sure that there is no interface in ifconfig than lo.
5.virsh attach-device <your_guest_name> <name_of_xml_file>
6.virsh detach-device <your_guest_name> <name_of_xml_file>
7.virsh attach-interface <your_guest_name> network default

Actual results:
Error:operation failed: failed to add NIC with 'pci_add pci_addr=auto nic macaddr=52:54:00:2a:bc:f4,vlan=0,name=nic.0'
The guest machine shutdown immediately.


Expected results:
The network works.

Additional info:
Comment 1 jbao 2009-09-25 03:46:47 EDT
It works now at the new version:

qemu-kvm-0.10.92-5.fc12.x86_64
libvirt-0.7.1-6.fc12.x86_64
virt-viewer-0.2.0-1.fc12.x86_64
Comment 2 jbao 2009-09-25 03:50:18 EDT
It works now at the new version:

qemu-kvm-0.10.92-5.fc12.x86_64
libvirt-0.7.1-6.fc12.x86_64
virt-viewer-0.2.0-1.fc12.x86_64

Note You need to log in before you can comment on or make changes to this bug.