# Install qemu with virt-manager ```console 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 : ```console # /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 : ```console sudo usermod -aG libvirt ``` You might need to restart the service : ```console sudo systemctl restart libvirtd ``` - https://www.youtube.com/watch?v=wxxP39cNJOs # Create an ISO There is no need to go to Microsoft website, we can use [uupdump](https://uupdump.net/) 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 : ```console 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`). - https://git.uupdump.net/uup-dump/misc/src/branch/master/FAQ.md - https://uupdump.net/ - https://git.uupdump.net/uup-dump # Virtualize Lauch `virt-manager`. My `qemu` configuration : - 4GB RAM - 4 CPU cores - 80GB hard disk 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 : ```console ``` And be sure that this line is set to "yes" : ```console ``` # Install Windows 11 Lauch the virtual machine and start installing. After entering your key, this message could appear : ```console 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 : ```console 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. - https://getlabsdone.com/how-to-bypass-tpm-and-secure-boot-to-install-windows-11/