RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 676548 - Fail to "attach-disk", "attach-interface", "attach-device" for a guest.
Summary: Fail to "attach-disk", "attach-interface", "attach-device" for a guest.
Keywords:
Status: CLOSED DUPLICATE of bug 676686
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libvirt
Version: 6.1
Hardware: Unspecified
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Daniel Veillard
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-10 08:00 UTC by Cui Chun
Modified: 2011-04-14 05:37 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-11 07:56:20 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Cui Chun 2011-02-10 08:00:43 UTC
Description of problem:

When try to attach a disk for a guest on libvirt-0.8.7-5.el6, it is failed. Redo the same steps on libvirt-0.8.7-5.el6, it is successful. 

"attach-interface", "attach-device" are also failed on  libvirt-0.8.7-5.el6.


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

libvirt-0.8.7-5.el6
qemu-kvm-0.12.1.2-2.144.el6
kernel-2.6.32-94.el6

How reproducible:
always.

Steps to Reproduce:

1.Create a disk
# qemu-img create -f raw foo.img 10M

2.Start a guest
#virsh start cc

#virsh dumpxml cc
.......
<disk type='block' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
      <alias name='ide0-1-0'/>
      <address type='drive' controller='0' bus='1' unit='0'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/var/lib/libvirt/images/test.img'/>
      <target dev='hda' bus='ide'/>
      <alias name='ide0-0-0'/>
      <address type='drive' controller='0' bus='0' unit='0'/>
    </disk>

.......


3.Attach the disk
# virsh attach-disk test /var/lib/libvirt/images/foo.img vdb
error: Failed to attach disk
error: internal error unable to execute QEMU command 'device_add': Bus 'pci' not found

4.Check  "attach-interface", "attach-device"

# virsh attach-interface cc network default vnet1
error: Failed to attach interface
error: internal error unable to execute QEMU command 'device_add': Bus 'pci' not found

# cat disk.xml 
<disk type="file" device="disk">
  <source file="/var/lib/libvirt/images/foo.img"/>
  <target dev="vdc" bus="virtio"/>
</disk>

# virsh attach-device cc disk.xml
error: Failed to attach device from disk.xml
error: internal error unable to execute QEMU command 'device_add': Bus 'pci' not found

  
Actual results:

Please refer to step3,steo4

Expected results:

Fix it.

Additional info:

Comment 2 Jiri Denemark 2011-02-10 15:11:35 UTC
Patches addressing this issue were sent upstream:

https://www.redhat.com/archives/libvir-list/2011-February/msg00291.html

Comment 4 Jiri Denemark 2011-02-11 07:56:20 UTC
Bug 676686 was reported later than this one but it is already in POST, I'm closing this as a duplicate...

*** This bug has been marked as a duplicate of bug 676686 ***


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