Red Hat Bugzilla – Bug 798603
virt-manager does not remove the hot-plugged PCI device when shutdown
Last modified: 2012-03-02 11:15:44 EST
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):
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
Step 3: the PCI device still exist in virt-manager after shutdown
Step 3: PCI device is removed.
Use virsh attach-device command to hotplug the PCI device,the device can be removed after shutdown the guest.
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.