Bug 596473 - failure trying to add PCI device to guest
failure trying to add PCI device to guest
Status: CLOSED DUPLICATE of bug 582752
Product: Fedora
Classification: Fedora
Component: virt-manager (Show other bugs)
13
All Linux
low Severity medium
: ---
: ---
Assigned To: Cole Robinson
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-26 15:34 EDT by Andy Gospodarek
Modified: 2014-06-29 19:02 EDT (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-05-26 15:38:25 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
adding device (1.19 MB, image/png)
2010-05-26 15:34 EDT, Andy Gospodarek
no flags Details
finishing device add (1.18 MB, image/png)
2010-05-26 15:35 EDT, Andy Gospodarek
no flags Details
device incorrect in list (1.68 MB, image/png)
2010-05-26 15:36 EDT, Andy Gospodarek
no flags Details
failure when starting guest (1.54 MB, image/png)
2010-05-26 15:37 EDT, Andy Gospodarek
no flags Details

  None (edit)
Description Andy Gospodarek 2010-05-26 15:34:15 EDT
Created attachment 417002 [details]
adding device

Description of problem:

Invalid device is added to the xml for the guest when using virt-manager to add a PCI device to a guest.

Trying to add 04:10.0 on my system results in 04:16.0, so it seems and an unnecessary dev->hex conversion is done.  The device appears to be added correctly, but when starting the guest, I get the following error:

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/engine.py", line 799, in run_domain
    vm.startup()
  File "/usr/share/virt-manager/virtManager/domain.py", line 1256, in startup
    self._backend.create()
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 317, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: this function is not supported by the hypervisor: Failed to read product/vendor ID for 0000:04:16.0

If I used 'virsh edit rawhide-test' to edit the slot back to 0x10, the guest boots just fine.

Version-Release number of selected component (if applicable):

virt-manager-0.8.3-3.fc13.noarch
libvirt-0.7.7-3.fc13.x86_64

How reproducible:

Every time.

Steps to Reproduce:

See attached screenshots.
Comment 1 Andy Gospodarek 2010-05-26 15:35:15 EDT
Created attachment 417003 [details]
finishing device add
Comment 2 Andy Gospodarek 2010-05-26 15:36:16 EDT
Created attachment 417005 [details]
device incorrect in list
Comment 3 Andy Gospodarek 2010-05-26 15:37:29 EDT
Created attachment 417006 [details]
failure when starting guest
Comment 4 Cole Robinson 2010-05-26 15:38:25 EDT
Should be fixed by the libvirt version in updates-testing.

*** This bug has been marked as a duplicate of bug 582752 ***
Comment 5 Andy Gospodarek 2010-05-26 15:40:59 EDT
Thanks, Cole.  Does this problem exist in RHEL6 too?
Comment 6 Cole Robinson 2010-05-26 15:46:43 EDT
Nope, RHEL6 libvirt is several releases ahead and has this fix already.

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