Bug 711362 - RFE: virt-manager should support PCI hotplug in enforcing mode
Summary: RFE: virt-manager should support PCI hotplug in enforcing mode
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: virt-manager
Version: 5.7
Hardware: x86_64
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Cole Robinson
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-07 10:00 UTC by Min Zhan
Modified: 2011-06-08 02:10 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-08 02:10:55 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Min Zhan 2011-06-07 10:00:11 UTC
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

Comment 2 Min Zhan 2011-06-08 02:10:55 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.