Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 643280

Summary: RFE: Support hotplug of network interfaces in KVM guests
Product: Red Hat Enterprise Linux 5 Reporter: Nan Zhang <nzhang>
Component: libvirtAssignee: Daniel Veillard <veillard>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 5.6CC: ajia, dallan, dyuan, eblake, jdenemar, kxiong, llim, mkenneth, mzhan, rwu, virt-maint, xen-maint, yimwang, ykaul, yoyzhang
Target Milestone: rcKeywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 638072
: 699596 (view as bug list) Environment:
Last Closed: 2011-08-15 20:06:50 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 638072    
Bug Blocks: 699596    

Comment 1 Nan Zhang 2010-10-15 07:10:29 UTC
Test with kvm-83-204.el5, libvirt-0.8.2-6.el5.

The network interface can be successfully hotplugged on qemu command.

(qemu) pci_add pci_addr=auto nic vlan=1,macaddr=52:54:00:80:d9:c5,model=virtio host_net_add tap script=/etc/qemu-ifup,vlan=1
OK domain 0, bus 0, slot 7, function 0
(qemu) info pci
...
   Bus  0, device   7, function 0:
      Ethernet controller: PCI device 8086:100e
      IRQ 0.
      BAR0: 32 bit memory at 0x80000000 [0x8001ffff].
      BAR1: I/O at 0x1040 [0x107f].
...

Comment 2 koka xiong 2011-04-08 05:03:07 UTC
test with 
kvm-83-229.el5
libvirt-0.8.2-18.el5
kernel-2.6.18-252.el5

 Hotplug the NIC to guest.
#  virsh attach-device <guest name> <xml file name>

It will display 
error: Failed to attach device from nic.xml
error: this function is not supported by the connection driver: installed qemu version does not support host_net_add

Comment 3 wangyimiao 2011-04-26 10:20:00 UTC
*** Bug 699596 has been marked as a duplicate of this bug. ***

Comment 6 RHEL Program Management 2011-08-15 20:06:50 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.