[fedora-virt] Testcase Virtualization Attach/Detach a SCSI device to guest

Gianluca Cecchi gianluca.cecchi at gmail.com
Thu Apr 14 23:35:22 UTC 2011


Hello,
with my F14+virt-preview repo and a CentOS 5.5 vm currently using
virtio devices, I'm not able to attach a scsi disk with virsh:

[root ~]# virsh attach-device c55ms /tmp/disk.xml
error: Failed to attach device from /tmp/disk.xml
error: internal error unable to execute QEMU command 'drive_add': The
command drive_add has not been found

Is this expected because the features between my system and current
rawhide are different?
I have qemu-kvm-0.14.0-7.fc14.x86_64

Or do I have to open a bug for this if not already open?

The same error trying to add from virt-manager:
Are you sure you want to add this device?
This device could not be attached to the running machine. Would you
like to make the device available after the next VM shutdown?

internal error unable to execute QEMU command 'drive_add': The command
drive_add has not been found

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/addhardware.py", line 927,
in add_device
    self.vm.attach_device(self._dev)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1240, in
attach_device
    self._backend.attachDevice(devxml)
  File "/usr/lib64/python2.7/site-packages/libvirt.py", line 263, in
attachDevice
    if ret == -1: raise libvirtError ('virDomainAttachDevice()
failed', dom=self)
libvirtError: internal error unable to execute QEMU command
'drive_add': The command drive_add has not been found

BTW:
I know that in RH EL 6 it's not possible to define and use scsi disks
for Qemu/KVM guests (because related source parts not kept much in
sync with upstream patches and poor performance generally, if I
understood correctly)
I see now that between testcases for Fedora Virt test day there is
this one for scsi disks.

The question is: what is the expected situation in F15 for scsi disks
for guests in terms of performance and reliability? Does it matter the
format to be used with them?

Thanks,
Gianluca


More information about the virt mailing list