Install MS Windows 11 in a KVM Linux virtual machine

⠀⠀⠀⣤⣴⣾⣿⣿⣿⣿⣿⣶⡄⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⡄ ⠀⠀⢀⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠀⢰⣦⣄⣀⣀⣠⣴⣾⣿⠃ ⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⡏⠀⠀⣼⣿⣿⣿⣿⣿⣿⣿⣿⠀ ⠀⠀⣼⣿⡿⠿⠛⠻⠿⣿⣿⡇⠀⠀⣿⣿⣿⣿⣿⣿⣿⣿⡿⠀ ⠀⠀⠉⠀⠀⠀⢀⠀⠀⠀⠈⠁⠀⢰⣿⣿⣿⣿⣿⣿⣿⣿⠇⠀ ⠀⠀⣠⣴⣶⣿⣿⣿⣷⣶⣤⠀⠀⠀⠈⠉⠛⠛⠛⠉⠉⠀⠀⠀ ⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀⣶⣦⣄⣀⣀⣀⣤⣤⣶⠀⠀ ⠀⣾⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⢀⣿⣿⣿⣿⣿⣿⣿⣿⡟⠀⠀ ⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⠁⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⡇⠀⠀ ⢠⣿⡿⠿⠛⠉⠉⠉⠛⠿⠀⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⠁⠀⠀ ⠘⠉⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠻⢿⣿⣿⣿⣿⣿⠿⠛⠀⠀⠀

I regularly provide technical support to Human Rights Defenders and journalists. Thanks to this, I have extensive experience working with various operating systems, beyond my primary system, which is Debian.

To provide efficient support, I manage several virtual machines on my main computer using KVM (https://wiki.debian.org/KVM) to replicate the environments of the people I support. These include virtual machines running Windows, as well as other operating systems.

With the recent forced switch to Windows 11, documented by Microsoft here: https://support.microsoft.com/es-es/windows/-puedo-actualizar-a-windows-11-14c25efc-ecb7-4ce6-a3dd-7e2e24476997

I found myself needing to install a virtual machine running Windows 11. To do this, I upgraded an existing Windows 10 virtual machine. However, in order to properly validate the upgrade, the following steps must be completed:

Run regedit from the “run” window, which will open the Windows Registry.

## Locate the following in the record:

HKEY_LOCAL_MACHINE\SYSTEM\Setup\MoSetup

create a "DWORD (32 bits)"

"AllowUpgradesWithUnsupportedTPMOrCPU" con valor =  1.

in the next part of the record:https://en.wikipedia.org/wiki/Windows_Registry

HKEY_LOCAL_MACHINE\SYSTEM\Setup\

create a new key named "LabConfig"

inside LabConfig, create a DWORD (32-bit) with the next values:

"BypassTPMCheck" con valor = 1.
"BypassSecureBootCheck" con valor = 1.
"BypassRAMCheck" con valor = 1.

Shut down all running virtual machines and stop the kvm_probe module using the following command:

$ sudo modprobe -r kvm_intel

Activate the nested feature:

KVM Nested Guest: https://www.linux-kvm.org/page/Nested_Guests

$ sudo modprobe kvm_intel nested=1

Now proceed with the upgrade to Windows 11 through Windows Update (“Check for updates”).

The system should bypass the usual restrictions and begin the upgrade to Windows 11.