[fedora-virt] How to use virtio-scsi on F17 host and F17 guest

Gianluca Cecchi gianluca.cecchi at gmail.com
Wed Jun 6 16:30:42 UTC 2012


Hello,
reading here:
https://fedoraproject.org/wiki/Features/virtio-scsi

it should be possible to use virtio-scsi, even if not completely
integrated in libvirt.
And installation would require this part for the hard disk:

-drive if=none,id=hd,file=/path/to/test.img -device
virtio-scsi-pci,id=scsi -device scsi-hd,drive=hd

I have now an F17 host (kernel 3.3.7) and F17 guest (3.4.0) configured
with a virtio_blk disk
guest definition for the disk is this:
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source file='/var/lib/libvirt/images/f17.img'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06'
function='0x0'/>
    </disk>

Can I change it with "virsh edit" so that I can use virtio-scsi inside
guest and test?
What would be the xml snippet for it? Or do I have to use also a
wrapper to start qemu-kvm with particular options as during install?

Thanks in advance,
Gianluca


More information about the virt mailing list