Pt 1, Creating the VM

Prerequisites

None — this is the first step.


Goal

Build a Windows 10 VM under QEMU/KVM (managed with libvirt and Virt Manager) that can later be given the laptop’s dedicated GPU. Reasons for this setup: confirming whether a game issue comes from Proton rather than the game itself, and running untrusted software isolated from the host while still getting full GPU performance.

Type 2 hypervisors (VirtualBox, VMware Workstation) are avoided because they compete with the host OS for hardware access, making full GPU passthrough impractical — see Hypervisor. QEMU with KVM behaves like a Type 1 hypervisor since KVM lets it access hardware directly through the kernel.

Prerequisites for GPU passthrough in general

  • Two GPUs: one dedicated GPU to hand to the VM, and a second (an integrated GPU is fine) so the host OS still has something to render with once the dedicated GPU is detached.
  • A CPU/motherboard with IOMMU support (Intel VT-d/VT-x, or AMD-Vi/AMD chips from the Bulldozer generation, October 2011, onward).
  • A way to see the VM’s video output — either a second monitor (one on each GPU) or a way to swap a single monitor’s cable between them.
  • Any modern Linux distro (the tooling used here doesn’t support Windows or macOS as the host).

This was done on the Gigabyte Gaming A16 Ga6h laptop running CachyOS.

Getting the ISO and picking a Windows version

Windows 10 Home was used over Windows 11: it avoids Windows 11’s stricter install requirements and mandatory Microsoft-account sign-in, and since this VM will almost never touch the network, Windows 10’s eventual end of support isn’t a real concern. Microsoft still hosts the Windows 10 ISO directly.

VM configuration

  • 16 GB RAM, 6 CPU cores, 64 GB disk (Windows 10 plus drivers doesn’t need much more).
  • On the final creation screen, select Customize configuration before install.
  • Fix the CPU topology: by default Virt Manager gives the VM multiple CPU sockets rather than multiple cores on one socket — Windows performs much worse under this default and needs the topology corrected manually before install.
  • Disable the VM’s virtual NIC device in Virt Manager/libvirt (the VM’s hardware definition, not a setting inside Windows itself) during install, so Windows 10 setup can be done fully offline (skip the Microsoft account requirement).

Installing Windows 10

Standard Windows 10 install: no license key, Windows 10 Home edition, use the entire (virtual) drive. During the offline setup screens, choose I don’t have internet to skip network/Microsoft-account setup.

When creating the local account, a deliberate placeholder username/password is used — a weak credential for a VM that stays offline is a different risk profile than the same credential on a networked machine, but it’s still worth choosing consciously rather than by habit. A deliberate placeholder credential is used just to get past the setup screen, and it’s changed immediately afterward.

Drivers and updates

After install, re-enable that virtual NIC device in Virt Manager/libvirt and install the VirtIO drivers and QEMU Guest Agent from the Fedora-maintained VirtIO driver repo — run virtio-win-guest-tools.exe with default options. Remove the ISO from the virtual CD drive afterward.

Let Windows install any pending updates, then take a VM snapshot of this clean, updated state before moving on to GPU passthrough setup.


Next: Pt 2, Enabling IOMMU.