Bug 511831 - Failed to attach-device (scsi and virtio) on kvm
Summary: Failed to attach-device (scsi and virtio) on kvm
Keywords:
Status: CLOSED DUPLICATE of bug 502095
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: libvirt
Version: 5.4
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Daniel Berrangé
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-15 09:41 UTC by zhanghaiyan
Modified: 2009-12-14 21:17 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-07-20 19:57:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description zhanghaiyan 2009-07-15 09:41:27 UTC
Description of problem:
Attach-device (scsi and virtio) from xml file failed on KVM 

Version-Release number of selected component (if applicable):
- libvirt-0.6.3-14.el5
- kvm-83-84.el5
- RHEL5.4-Server-x86_64 

How reproducible:
100%


Steps to Reproduce:
1. # virsh define rhel5u4.xml
2. # virsh start rhel5u4
3. # cat disk1.xml
          <disk type='file' device='disk'>
             <source file='/mnt/RHEL-Server-5.4-64.raw'/>
             <target dev='sdb' bus='scsi'/>
           </disk>
    # virsh attach-device rhel5u4 disk1.xml
4. # cat disk2.xml
          <disk type='file' device='disk'>
             <source file='/mnt/RHEL-Server-5.4-64-virtio.qcow2'/>
             <target dev='vdc' bus='virtio'/>
           </disk>
   # virsh attach-device rhel5u4 disk2.xml 
  
Actual results:
   3. [root@dhcp-66-70-82 Desktop]# virsh attach-device rhel5u4 disk1.xml
       error: Failed to attach device from disk1.xml
       error: operation failed: adding scsi disk failed
   4. [root@dhcp-66-70-82 Desktop]# virsh attach-device rhel5u4 disk2.xml
       error: Failed to attach device from disk2.xml
       error: operation failed: adding virtio disk failed 

Expected results:
    3. Attached device successfully
    4. Attached device suscessfully 

Additional info:

Comment 1 Daniel Berrangé 2009-07-15 19:51:36 UTC
FYI a potential patch is available upstream

http://www.redhat.com/archives/libvir-list/2009-July/msg00115.html

Comment 3 Daniel Berrangé 2009-07-20 19:57:03 UTC

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


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