Rate This Document
Findability
Accuracy
Completeness
Readability

Using virtio-blk for VM Storage

virtio-blk virtual drives provide higher storage performance than virtio-scsi virtual drives. If VM services do not depend on virtio-scsi drives and have high performance requirements, you are advised to use virtio-blk virtual drives.

Add configuration in an XML file to use virtio-blk for the VM. The following is an example:
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<domain type = 'KVM'>
...
    <disk type='file'  device='disk'/>
      <driver name='qemu'  type='qcow2' />
      <source file='home/kvm/images/node1.img'/>
      <target dev='vda' bus='virtio'/>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    </disk>
...
</domain>