Virtio in KVM-QEMU IO

A note to myself,

always use virtio drivers for Windows guests in KVM-QEMU, it will improve disk IO greatly.
Here is a quick summary:

– Download ISO from here
– For new Windows quest installation prepare the normal qcow2 image
– Boot the installation CD iso alongside the virtio CD iso like so:

kvm -vga vmware -m 1024 -drive file=windows7.qcow,cache=none,index=1,if=virtio -drive file=/PATH/TO/ISO/Win7.64.sp1.iso,index=2,media=cdrom -boot d -drive file=/PATH/TO/ISO/virtio-win-0.1-74.iso,index=3,media=cdrom

– In Windows setup choose to load custom disk drivers from the virtio cdrom
– Install / Reboot
– Boot Windows with following parameter :

 kvm -vga vmware -m 1024 -drive file=windows7.qcow,cache=none,index=1,if=virtio

For Existing qcow images with installed Windows system with IDE emulation:
– Boot normally + add virtio iso
– Install legacy hardware (Win7)
– Install driver from virtio cdrom
– Shutdown Windows
– Boot Windows with following parameter:

 kvm -vga vmware -m 1024 -drive file=windows7.qcow,cache=none,index=1,if=virtio

The IO performance is much better with the virtio drivers then the default IDE emulation.

Oh and also good luck and all the best in 0x7DE, we will all need it.




About astr0baby

Please run Adblock or similar... we have been told to do so since Carl Sagan wrote the Contact .
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.