From Notes Wiki
CentOS 8.x KVM Creating Windows VMs with fast disk input output (io)
While creating Windows VM use following recommendations along with mentioned references
- Use virtio drivers for Windows KVM VMs
- After creating VM use option to "Customize configuration before install". Add another storage device of type CD/DVD ROM and select above iso. Then using OS installation to detect hard-disk choose "Load driver" and choose appropriate drivers from CD/DVD (Typically amd64/OS") folder.
- Specifically for Windows 10 all of above also leads to marginal performance. Changing disk from qcow2 to raw has dramatic speed improvements (upto 10x). If snapshots are must then use LVM instead of raw format.
- In case you cannot use raw format and use of qcow2 is required, then make sure metadata space is pre-allocated
- Make sure cache is set to none (Preferred). Cache option of write-through has very bad performance. Using write-back gives further 10x improvement over other types of cache but may lead to data loss in case of abrupt shutdown.
- IO Mode to native in case cache is none. If cache is write-back then IO mode should be threads.
- Avoid use of IOthreads as explained at
- This gives error that iothreads are not supported in latest CentOS 7
- Setting CPU model to host-model (host-passthrough) or core2duo might improve things CentOS 7.x Cloudstack 4.11 Guest VM CPU configuration for Windows
- There are some hyper-V related settings suggested at
- They seem to come by default if you select Guest OS as Windows 10 during VM creation
It would also make sense to change NIC from e1000 to virtio and install related network drivers from the virtio iso linked above.