Hide Forgot
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.
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.