[SOLVED] block device/hard disk passthrough, use virtio or scsi?

rampage

Active Member
Oct 17, 2016
22
2
43
41
Hi,

While passthrough the hard drive to the kvm guest, am I supposed to use virtio or scsi mode for best IO performance?
The device is identified as scsi0 and scsi1 , so what I used is

qm set 103 -scsi0 /dev/disk/by-id/ata-ST3000DM001-XXXXXXX
qm set 103 -scsi1 /dev/disk/by-id/ata-ST3000DM001-YYYYYYY

Cheers,
 
SCSI is good, as long as you the 'virtio-scsi-pci' controller. You can enable that with:

# qm set 103 -scsihw virtio-scsi-pci
 
SCSI is good, as long as you the 'virtio-scsi-pci' controller. You can enable that with:

# qm set 103 -scsihw virtio-scsi-pci

thanks for the qucik reply.
I checked the qemu configration file and saw
virtio-scsi-pci is the default implementation of scsihw now.