Ivan Kovmir

M$ Windows QEMU VM - Ivan Kovmir

M$ Windows QEMU VM

Last edit: 2024-10-28

Performant M$ Windows virtual machine in QEMU.

Introduction

It is possible to have M$ Windows with native-like snappiness/responsiveness in a QEMU/KVM virtual machine. Controlling QEMU directly is an option, but I use Libvirt to simplify virtual machine management.

Installation & Setup

Give M$ Windows VM a physical drive rather than a virtual one, then install the operating system as usual:

901
Fig. 1: Libvirt Virt-Manager Storage Selector

After that install VirtIO drivers inside the VM, then add QEMU guest agent, see figure 2:

903
Fig. 2: Libvirt Add Channel

To enable 3D acceleraion, first configure “Display Spice” i.e. set “Listen type” to “None” and enable OpenGL, see figure 3:

905
Fig. 3: Libvirt Display Spice

And then set “Virtio” video model and enable 3D acceleration, see figure 4:

907
Fig. 4: Libvirt 3D Acceleration

To ensure passthrough of each CPU core, set CPU topology manually to a single socket and however many cores you wish to allocate. See figure 5:

909
Fig. 5: Libvirt CPU Topology

Usage

Avoid using the graphical console. Instead, use RDP client to connect to your virtual M$ Windows; I recommend Reminna.

Conclusion

To summarize:

frogbar

© 2024 Ivan Kovmir — CC BY-NC-SA 4.0 License

Created with swege Best viewed with a computer Indexed by Wiby