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:
FYI a potential patch is available upstream http://www.redhat.com/archives/libvir-list/2009-July/msg00115.html
*** This bug has been marked as a duplicate of bug 502095 ***