Hide Forgot
Description of problem: Enforcing mode using virt-manager, select a running guest, click "Add Hardware" button, choose "Physical Host Device" and choose one pci vtd device(nic), then forward and finish. An window pop up: Are you sure you want to add this device? This device can not be attached to running guest. Would you like to make this device available after the next vm shutdown? Also libvirt bug 644276 is fixed in RHEL5.6. Pls also support pci hotplug in virt-manager. Version-Release number of selected component (if applicable): libvirt-0.8.2-20.el5 virt-manager-0.6.1-14.el5 How reproducible: Always Steps to Reproduce: 1. 2. 3. Actual results: As above Expected results: virt-manager support PCI hotplug in enforcing mode. Additional info: # tail -f /root/.virt-manager/virt-manager.log ... [Tue, 07 Jun 2011 05:40:48 virt-manager 6799] DEBUG (addhardware:632) Adding device: <hostdev mode='subsystem' type='pci' managed='yes'> <source> <address domain='0' bus='3' slot='0' function='1'/> </source> </hostdev> [Tue, 07 Jun 2011 05:40:49 virt-manager 6799] DEBUG (addhardware:639) Device could not be hotplugged: operation failed: parsing pci_add reply failed: Failed to assign device failed to add host=03:00.1 [Tue, 07 Jun 2011 05:40:52 virt-manager 4757] DEBUG (connection:152) Got physical device /org/freedesktop/Hal/devices/net_00_1b_21_39_8b_19 [Tue, 07 Jun 2011 05:40:52 virt-manager 6799] DEBUG (connection:152) Got physical device /org/freedesktop/Hal/devices/net_00_1b_21_39_8b_19 [Tue, 07 Jun 2011 05:40:52 virt-manager 4757] DEBUG (connection:186) Checking for VLANs on /sys/class/net/eth2 [Tue, 07 Jun 2011 05:40:52 virt-manager 6799] DEBUG (connection:186) Checking for VLANs on /sys/class/net/eth2
I have researched on libvirt bug 700320, found in RHEL5 we should set The "virt_use_sysfs" boolean manually. Such as # setsebool virt_use_sysfs=on to make the pci hotplug succeed. So I close this bug.