Bug 798603

Summary: virt-manager does not remove the hot-plugged PCI device when shutdown
Product: Red Hat Enterprise Linux 6 Reporter: yuping zhang <yupzhang>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 6.3CC: ajia, dyuan, mzhan, rwu, yupzhang
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-02 16:15:44 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:

Description yuping zhang 2012-02-29 11:20:45 UTC
Description of problem:
Use virt-manager hotplug PCI device,then shutdown the guest,the PCI can not be removed.

Version-Release number of selected component (if applicable):
libvirt-0.9.10-3.el6.x86_64
virt-manager-0.9.0-10.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1.Launch virt-manager,start a VM.

2.Add a PCI device:"Add Hardware"->select PCI Host Device -> select "00:19:0 Interface eth0 (82567LM-3 Gigabit Network Connection)" -> click Finish

3. Shutdown the guest


Actual results:
Step 3: the PCI device still exist in virt-manager after shutdown

Expected results:
    Step 3: PCI device is removed.

Additional info:
Use virsh attach-device command to hotplug the PCI device,the device can be removed after shutdown the guest.

Comment 2 Cole Robinson 2012-03-02 16:15:44 UTC
Thanks for the report, but this is intentional. Any hotplugged changes a persistently added to guests in virt-manager, which I think is much more intuitive. It's like if you attached a PCI device to a physical machine, when you shutdown the machine it doesn't automatically eject! Libvirt supports this for good reason but it shouldn't be default virt-manager behavior.

Closing as NOTABUG.