[Libguestfs] Changing a given image from virtio-blk to virtio-scsi

Yaniv Kaul ykaul at redhat.com
Thu Jul 14 15:54:20 UTC 2016


Any idea what 'virt-customize' script I should use to convert from
virtio-blk (vda, vdb...) to virtio-scsi (sda, sdb...) ?

I've tried naively to convince libvirt to use virtio-scsi and still present
it to the guest as 'vd*' - that didn't work (


<disk type='file' device='disk'>
      <driver name='qemu' type='qcow2'/>
      <source
file='/dev/shm/run/default/images/lago_basic_suite_master_storage_root.qcow2'/>
      <backingStore type='file' index='1'>
        <format type='raw'/>
        <source file='/home/lagostore/phx_repo:el7-base:latest'/>
        <backingStore/>
      </backingStore>
     * <target dev='vda' bus='scsi'/>*
      <boot order='1'/>
      <alias name='scsi0-0-0'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>


TIA,
Y.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20160714/1eae3ffd/attachment.htm>


More information about the Libguestfs mailing list