Windows 11

How to run Windows 11 in a KVM virtual machine

Submitted by Scott Dowdle on Fri, 11/12/2021 - 19:27

First of all... "What!?!  An article about Microsoft Windows on this Linux oriented website?!?!"  Yes.  Hey, I'm running Windows 11 as a KVM virtual machine on my Dell Latitude E6440 laptop that is 6+ years old... using Fedora 35 as my VM Host.  I don't think Windows 11 would want to run on the physical hardware either... but the method I mention should make it work in many places that it would refuse to because of hardware requirements enforced by the installer.

Make sure when creating the VM (I did so using virt-manager), to make it a UEFI-based VM and not Legacy BIOS and giving it at least 4GB of RAM.  When the installer gets to the point where it tells you that your PC does not meet the hardware configuration requirements, do the following:

1) Hit shift-F10 on the keyboard which will bring up a command prompt
2) From the command line, run "regedit"
3) Under HKEY_LOCAL_MACHINE\SYSTEM\Setup add a new item named "LabConfig"
4) Within the newly created LabConfig item, make two DWORD entries setting their values both to hex 1
     BypassTPMCheck and BypassSecureBootCheck
5) Exit regedit, close the command window and back in the installer, hit the left arrow in the top left of the window (do not click on the X at the top right).  That will back up a step in the installer, and you can go Next again, and it will no longer complain about your hardware.

Once the install is done make sure to install the Windows guest tools from spice-space.org... and then you'll get higher resolutions and improved performance.

Will this problem ever crop up again?  I'm not sure but I can tell you it still worked after applying all of the available updates including a cumulative update.  Good luck.