Table of Contents

Install qemu with virt-manager

sudo pacman -S qemu virt-manager virt-viewer dnsmasq vde2 bridge-utils openbsd-netcat libguestfs
sudo systemctl start libvirtd
sudo systemctl enable libvirtd # if you want to start the service at startup

In /etc/libvirt/libvirtd.conf uncomment those lines :

# /etc/libvirt/libvirtd.conf
...
unix_sock_group = "libvirt"
unix_sock_ro_perms = "0777"
unix_sock_rw_perms = "0770"
...

Add your user to the libvirt group :

sudo usermod -aG libvirt <username>

You might need to restart the service :

sudo systemctl restart libvirtd

Create an ISO

There is no need to go to Microsoft website, we can use uupdump to generate an ISO. To do so, select “Windows 11” below the search bar. As of today, I selected “23H2”, then clicked on the last build on top of the list, and clicked “Next” until I could click on “Create download package”.

This downloads a zip file. Unzip it and :

sh ./uup_download_linux.sh

Wait for completion, and at the end you'll have an ISO in the folder (e.g. 22621.1_MULTI_X64_EN-US.ISO).

Virtualize

Lauch virt-manager.

My qemu configuration :

When adding the new virtual machine, before clicking on “Finish”, select “Customize configuration before install”, then “Finish”. It will prompt with Virtual Machines details. Select “Overview”, “XML”. Remove those two lines :

<timer name="rtc" tickpolicy="catchup"/>
<timer name="pit" tickpolicy="delay"/>

And be sure that this line is set to “yes” :

<timer name="hpet" present="yes"/>

Install Windows 11

Lauch the virtual machine and start installing. After entering your key, this message could appear :

This PC doesn't meet the minimum system requirements to install this version of Windows. For more information, visit...

It is due to the need of TPM and secure boot. We can bypass it.

Stay in the VM, in front of the error message (or wherever) press “Shift + F10” (I add to use 2 keyboards to make this work, good luck). In the console appearing, type :

REG ADD HKLM\SYSTEM\Setup\VMConfig /v BypassTPMCheck /t REG_DWORD /d 1
REG ADD HKLM\SYSTEM\Setup\VMConfig /v BypassSecureBootCheck /t REG_DWORD /d 1

If you get “The operation completed successfully.” for both commands, everything went fine. Close the console, and keep on installing.