Laptop Acer Aspire A315 with i5 2.4 GHz, 16 Gb RAM and NVMe drive.
I have always seen problems with performance in comparison to bare-metal installations on hosts with exact same hardware: Start Menu “animation” looks in general slightly “lagged”, any program such as file manager, web browser, MS Office take a bit to open, CCleaner takes at least a minute or two to do even a couple of Mb cleaning, and most notably, cumulative updates from Windows update take more than 2 hours from the moment of start downloading to the moment of finishing rebooting. This last thing, on bare metal, takes half an hour.
This is how I run the VM:
qemu-system-x86_64 \
-name "Win11" \
-machine type=pc-q35-7.1,accel=kvm \
-cpu host,hv_relaxed,hv_spinlocks=0x1fff,hv_vapic,hv_time \
-smp 4,sockets=1,cores=2,threads=2 \
-m 8G \
-drive if=pflash,format=raw,readonly=on,file=/usr/share/qemu/ovmf-x86_64-ms-4m-code.bin \
-drive if=pflash,format=raw,file=virtuals/ovmf-x86_64-ms-4m-vars.bin \
-boot menu=on \
-netdev tap,br=br0,helper=/usr/lib/qemu-bridge-helper,vhost=on,id=n1 -device virtio-net-pci,netdev=n1,mac=52:54:00:12:34:56 \
-rtc base=localtime \
-vga qxl -device virtio-serial-pci -spice unix=on,addr=virtuals/vm_spice.socket,disable-ticketing=on -chardev spicevmc,id=spicechannel0,name=vdagent -device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 \
-display spice-app \
-audiodev spice,id=xyz -device ich9-intel-hda -device hda-output,audiodev=xyz \
-device virtio-balloon-pci \
-device qemu-xhci,id=xhci1 -chardev spicevmc,name=usbredir,id=usbredirchardev1 -device usb-redir,chardev=usbredirchardev1,id=usbredirdev1 \
-monitor stdio \
-drive file=virtuals/win11.qcow2,index=0,media=disk,format=qcow2,discard=unmap,id=disk1,if=none -device virtio-blk-pci,drive=disk1,bootindex=1,physical_block_size=4096,logical_block_size=4096 \
-chardev socket,id=chrtpm,path=virtuals/tpm/swtpm-sock -tpmdev emulator,id=tpm0,chardev=chrtpm -device tpm-tis,tpmdev=tpm0
Of course I’m using virtio drivers, and as seen here I try using some optimizations for CPU and disk
Is someone here experiencing similar symptoms like here?
Are these performance problems expected with a Windows VM?
Thanks.