Install Win11 on VM - Registry hack no longer works


martyfelker

Member
VIP
Local time
2:39 AM
Posts
109
OS
Windows 11
Trying to install Windows 11 on a VM the registry hack using regedit (Shift+F10) no longer works (I am using QEMU/KVM on Ubuntu 22.04). Can anybody help or should I just give up - in which case FU Microsoft?
 

My Computer

System One

  • OS
    Windows 11
    Computer type
    Laptop
    Manufacturer/Model
    Eluktronics Max 17
    CPU
    Intel Core i7 @ 2300MHz
    Motherboard
    AMI

NavyLCDR

Well-known member
Power User
VIP
Local time
11:39 PM
Posts
951
OS
Windows 11
Which version of Windows 11 are you trying to install?
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Homebuilt
    CPU
    AMD Ryzen 7 3800XT
    Motherboard
    ASUS ROG Crosshair VII Hero (WiFi)
    Memory
    32GB
    Graphics Card(s)
    EVGA GeForce GTX 1080 Ti
  • Operating System
    Windows 11 Education
    Computer type
    Laptop
    Manufacturer/Model
    Dell Inspiron 7773
    CPU
    Intel i7-8550U
    Memory
    32GB
    Graphics card(s)
    Nvidia Geforce MX150
    Sound Card
    Realtek
    Monitor(s) Displays
    17"
    Screen Resolution
    1920 x 1080
    Hard Drives
    Toshiba 512GB NVMe SSD
    SK Hynix 512GB SATA SSD
    Internet Speed
    Fast!

cereberus

Well-known member
Pro User
VIP
Local time
7:39 AM
Posts
2,246
OS
Windows 10 Pro + others in VHDs
Trying to install Windows 11 on a VM the registry hack using regedit (Shift+F10) no longer works (I am using QEMU/KVM on Ubuntu 22.04). Can anybody help or should I just give up - in which case FU Microsoft?
You need to set up ubuntu with the tpm emulation modules.
I did it once but cannot remember how. It was not easy.

I had to install swtpm.

@Jimbo may be able to help.


https://www.reddit.com/r/VFIO/comments/q49xb4
 

My Computer

System One

  • OS
    Windows 10 Pro + others in VHDs
    Computer type
    Laptop
    Manufacturer/Model
    ASUS Vivobook 14
    CPU
    I7
    Motherboard
    Yep, Laptop has one.
    Memory
    16 GB
    Graphics Card(s)
    Integrated Intel Iris XE
    Sound Card
    Realtek built in
    Monitor(s) Displays
    N/A
    Screen Resolution
    1920x1080
    Hard Drives
    1 TB Optane NVME SSD, 1 TB NVME SSD
    PSU
    Yep, got one
    Case
    Yep, got one
    Cooling
    Stella Artois
    Keyboard
    Built in
    Mouse
    Bluetooth , wired
    Internet Speed
    72 Mb/s :-(
    Browser
    Edge mostly
    Antivirus
    Defender
    Other Info
    TPM 2.0

NavyLCDR

Well-known member
Power User
VIP
Local time
11:39 PM
Posts
951
OS
Windows 11
I tried installing the latest Windows 11 created with MCT to an unsupported VM configuration using registry hacks and could not get any of them to work. Had to use the manual dism /apply-image method,
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Homebuilt
    CPU
    AMD Ryzen 7 3800XT
    Motherboard
    ASUS ROG Crosshair VII Hero (WiFi)
    Memory
    32GB
    Graphics Card(s)
    EVGA GeForce GTX 1080 Ti
  • Operating System
    Windows 11 Education
    Computer type
    Laptop
    Manufacturer/Model
    Dell Inspiron 7773
    CPU
    Intel i7-8550U
    Memory
    32GB
    Graphics card(s)
    Nvidia Geforce MX150
    Sound Card
    Realtek
    Monitor(s) Displays
    17"
    Screen Resolution
    1920 x 1080
    Hard Drives
    Toshiba 512GB NVMe SSD
    SK Hynix 512GB SATA SSD
    Internet Speed
    Fast!

hsehestedt

Well-known member
Power User
VIP
Local time
1:39 AM
Posts
811
Location
Texas, USA
OS
Windows 11 21H2
EDIT

As cereberus noted, the best way would be to set your hyperviser so that it can install Win 11 in a supported configarion, if you hardware allows for this. Since you mentioned a registry hack, I was assuming that you do not meet requirements, but if you do, then cereberus suggestion would be better to follow than my hack below.

END EDIT

The following assumes a clean install of Windows (booting from the ISO image for installation in a VM).

Modify your Windows ISO image that you are using to install Windows by adding a single file (details below) to it. As an alternative, create a brand new ISO image with only that one file in the root of the ISO image.

If you modify your Windows ISO that is all that is necessary, no other action is required. If you create a separate ISO image, make sure to attach it as a second ISO image to your VM before you start installation.

How this works:

The file is named "autounattend.xml". Windows setup looks for a file by this name when it starts and would normally use this file to automate the installation of Windows. The file that I provide below does NOT automate the installation of Windows. The only thing that it does is set registry entries in WinPE (used by setup) to bypass the check for TPM, Secure Boot, supported CPU, memory and storage requirements. Note that this only effects the WinPE registry loaded in RAM and will not affect the Win 11 registry at all. Other than that change, you would still install Windows exactly the same as always.

Save the data below to a file named "autounattend.xml" and use it as was described above:

Code:
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
    <settings pass="windowsPE">
        <component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
            <RunSynchronous>
                <RunSynchronousCommand wcm:action="add">
                    <Order>1</Order>
                    <Path>reg add HKLM\System\Setup\LabConfig /v BypassTPMCheck /t reg_dword /d 0x00000001 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>2</Order>
                    <Path>reg add HKLM\System\Setup\LabConfig /v BypassSecureBootCheck /t reg_dword /d 0x00000001 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>3</Order>
                    <Path>reg add HKLM\System\Setup\LabConfig /v BypassRAMCheck /t reg_dword /d 0x00000001 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>5</Order>
                    <Path>reg add HKLM\System\Setup\LabConfig /v BypassCPUCheck /t reg_dword /d 0x00000001 /f</Path>
                </RunSynchronousCommand>
                <RunSynchronousCommand wcm:action="add">
                    <Order>4</Order>
                    <Path>reg add HKLM\System\Setup\LabConfig /v BypassStorageCheck /t reg_dword /d 0x00000001 /f</Path>
                </RunSynchronousCommand>
            </RunSynchronous>
        </component>
    </settings>
</unattend>
 

My Computers

System One System Two

  • OS
    Windows 11 21H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    300Mb down / 20Mb up
    Browser
    Chromium Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Windows 11 21H2
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 15-BL012DX
    CPU
    Intel i7-7500U
    Memory
    32GB
    Graphics card(s)
    Dual Intel HD 620 and Nvidia GeForce 940MX
    Sound Card
    Built-in Realtek HD Audio
    Monitor(s) Displays
    4k 15-inch
    Screen Resolution
    4k (3840 x 2160)
    Hard Drives
    1TB Seagate FireCuda 510 NVMe SSD
    Internet Speed
    300Mb down / 20Mb up
    Browser
    Chromium Edge
    Antivirus
    Windows Defender
    Other Info
    RAM Upgraded from 16GB to 32GB WiFi Upgraded from WiFi 5 to WiFi 6 SSD upgraded from 512GB NVMe SSD to 1TB Seagate FireCuda 510 NVMe SSD

hsehestedt

Well-known member
Power User
VIP
Local time
1:39 AM
Posts
811
Location
Texas, USA
OS
Windows 11 21H2
One follow-up to my post...

If you prefer not to use an autounattend.xml file, there are other ways to accomplish the same thing:

1) You could manually run the regedit commands to add those entries from a command prompt that you can run at the first static screen during Windows setup

2) You could run a .reg file that applies those settings.

3) You could create a batch file and run it to apply those settings.

My personal preference is the autounattend.xml answer file because it is fully automatic without the user needing to do a thing.
 

My Computers

System One System Two

  • OS
    Windows 11 21H2
    Computer type
    PC/Desktop
    Manufacturer/Model
    Home Built
    CPU
    Intel i7-11700K
    Motherboard
    ASUS Prime Z590-A
    Memory
    128GB Crucial Ballistix 3200MHz DRAM
    Graphics Card(s)
    No GPU - CPU graphics only (for now)
    Sound Card
    Realtek (on motherboard)
    Monitor(s) Displays
    HP Envy 32
    Screen Resolution
    2560 x 1440
    Hard Drives
    1 x 1TB NVMe Gen 4 x 4 SSD
    1 x 2TB NVMe Gen 3 x 4 SSD
    2 x 512GB 2.5" SSDs
    2 x 8TB HD
    PSU
    Corsair HX850i
    Case
    Corsair iCue 5000X RGB
    Cooling
    Noctua NH-D15 chromax.black cooler + 10 case fans
    Keyboard
    CODE backlit mechanical keyboard
    Mouse
    Logitech MX Master 3
    Internet Speed
    300Mb down / 20Mb up
    Browser
    Chromium Edge
    Antivirus
    Windows Defender
    Other Info
    Additional options installed:
    WiFi 6E PCIe adapter
    ASUS ThunderboltEX 4 PCIe adapter
  • Operating System
    Windows 11 21H2
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 15-BL012DX
    CPU
    Intel i7-7500U
    Memory
    32GB
    Graphics card(s)
    Dual Intel HD 620 and Nvidia GeForce 940MX
    Sound Card
    Built-in Realtek HD Audio
    Monitor(s) Displays
    4k 15-inch
    Screen Resolution
    4k (3840 x 2160)
    Hard Drives
    1TB Seagate FireCuda 510 NVMe SSD
    Internet Speed
    300Mb down / 20Mb up
    Browser
    Chromium Edge
    Antivirus
    Windows Defender
    Other Info
    RAM Upgraded from 16GB to 32GB WiFi Upgraded from WiFi 5 to WiFi 6 SSD upgraded from 512GB NVMe SSD to 1TB Seagate FireCuda 510 NVMe SSD

jimbo45

Well-known member
Power User
VIP
Local time
6:39 AM
Posts
1,871
Location
Hafnarfjörður IS
OS
Windows XP,7,10,11 Linux Arch Linux
Trying to install Windows 11 on a VM the registry hack using regedit (Shift+F10) no longer works (I am using QEMU/KVM on Ubuntu 22.04). Can anybody help or should I just give up - in which case FU Microsoft?
Hi there

on QEMU/KVM Windows 11 should easily install - just enable sec boot and uefi for the VM and install the IBM TPM emulator -- then no problem. I've got W11 running on an old BIOS only ProLiant Gen 8 Microserver running Arch Linux (kernel 5.15.7) absolutely no problem.

No registry hacks etc needed. Use ISO from UUPDUMP for the W11 version you want to install

Cheers
jimbo
 

My Computer

System One

  • OS
    Windows XP,7,10,11 Linux Arch Linux
    Computer type
    PC/Desktop
    CPU
    2 X Intel i7

orlbuckeye

Member
Local time
2:39 AM
Posts
17
Location
Orlando Florida
OS
Windows 10
I thought a clean install no hacks are needed. The hacks are needed for the upgrade.
 

My Computer

System One

  • OS
    Windows 10
    Computer type
    Laptop
    Manufacturer/Model
    Microsoft Surface Book 2
    CPU
    Intel Quad-Core i7-8650U, 4.2GHz
    Memory
    16GB
    Graphics Card(s)
    Nvidia GeForce GTX 1060, 6GB
    Sound Card
    Dolby Atmos support for headphones
    Screen Resolution
    15-inch display, 3240 x 2160, 260 PPI.
    Hard Drives
    512GB SSD 512

NavyLCDR

Well-known member
Power User
VIP
Local time
11:39 PM
Posts
951
OS
Windows 11
I thought a clean install no hacks are needed. The hacks are needed for the upgrade.
A workaround is also needed for a clean install (at least on the version I created yesterday with the MCT) on unqualified hardware. And the registry hacks workaround does seem to be disabled in the newest version now. At least I couldn't them to work (and I have in the past). A manual install using dism /apply-image completed just fine, as always, though. I did not test if the registry hacks still work for an upgrade. I may try that later.
 

My Computers

System One System Two

  • OS
    Windows 11
    Computer type
    PC/Desktop
    Manufacturer/Model
    Homebuilt
    CPU
    AMD Ryzen 7 3800XT
    Motherboard
    ASUS ROG Crosshair VII Hero (WiFi)
    Memory
    32GB
    Graphics Card(s)
    EVGA GeForce GTX 1080 Ti
  • Operating System
    Windows 11 Education
    Computer type
    Laptop
    Manufacturer/Model
    Dell Inspiron 7773
    CPU
    Intel i7-8550U
    Memory
    32GB
    Graphics card(s)
    Nvidia Geforce MX150
    Sound Card
    Realtek
    Monitor(s) Displays
    17"
    Screen Resolution
    1920 x 1080
    Hard Drives
    Toshiba 512GB NVMe SSD
    SK Hynix 512GB SATA SSD
    Internet Speed
    Fast!
Top Bottom