TL;DR: You can’t upgrade. Do a clean install with EFI ( it will do bios by default) and enable secure boot for efi. Boot from the Windows 11 ISO and use the BypassSecureBootCheck and BypassTPMCheck registry settings. Then install as normal.
I have a Windows 10 VM on my Xserve 3,1 running ESXi 6.5 that I wanted to upgrade to Windows 11. There are 2 big issues to point out here though. The first is that the Nehalem CPU family, mine being a W5590, were dropped from the Win 11 support list. The second being that the Xserve lacks TPM 2.0 and ESXi didn’t start support for vTPM till ESXi 6.7.
I spent longer than I would like to admit trying to get Windows 10 to upgrade to Windows 11. I tried everything from modifying the registry and using the installer to getting an ISO and modding it. Try as a might I was unable to get it to update. I also tried doing it on VM Fusion, but I keep getting crazy errors. The closest I came to success was getting the install to pass pre-checks using the Windows11Upgrade project on GitHub. In the end though that resulted in a, “Windows Server Setup: there was a problem running preinstall.cmd scripts” error though.
As a last ditch effort I decided to do a clean install and finally found success. Below are the steps I followed:
- Go the Microsoft site and download the Windows 11 ISO. You don’t want the installer or the media creation tool, just download the ISO itself.
- Setup your virtual machine. Windows 11 requires a minimum of 2 virtual cores and at least 8GB of ram. With my install I used 2 vCores and 16GB for good measure.
- Set your machine to use EFI and “secure boot” in the “VM Options” tab. It will be set to Bios by default so don’t skip this step.
- Mount your ISO and boot it up.
- At boot like always hit any key to boot to the Windows installer.
- As soon as the installer environment boots press Shift + F10 to get the command prompt and type “regedit” followed by the return key.
- Once the Registry editor comes up navigate or jump to
HKEY_LOCAL_MACHINE\SYSTEM\Setup
- Create a new folder here called “LabConfig”
- You will need to add a DWORD (32-bit) entry
BypassTPMCheck
- Once you add these entries set them to
1
- Close both regedit and the command prompt
- You should now be able to install the VM.
When I did my install I used Win 11 Pro so depending on what you are installing your mileage may vary, however this should get any Win 11 VM installed. Like with any Win VM once you have it up and running Install VMware Tools and run windows update. Even though I downloaded the ISO today it still had a small stack of updates it downloaded and updated.
Major Version Upgrades (updated Jul 19th 2024)
With my windows 11 install, I found that the automatic major version upgrades such as going from 21H2 to 22H2 don’t seem to show up in the windows system update panel. So I have created this new post, Upgrading Windows 11 on ESXi 6.5: A Step-by-Step Guide that walk you through doing an upgrade in place install of windows to get to the latest major versions.
Thank you so much!!
Thank you so much
I cant get the command prompt to display. tried all types of ways of entering shift + f10
Are you able to provide some more detail on what you are seeing and what your setup is?
Just let the installer boot up, then use the “repair computer” option, launch command prompt from the tools, type regedit… do the steps above, close regedit, type d: to change to the “dvd” (use diskpart list volumes if not d:) then just type setup.exe to launch the setup.
Works perfectly.
Thank you so much!
Thank you very much for putting this together. It saved me a lot of time!
Hello!
Unfortunately since WU 22H2 (10/2022) the TPM-hack isn’t working anymore, although the hacks for diskspace, CPU,… are working fine. During windows-update on my VM (21H2) a pop-up “Windows 11 Update” will apear and notes “Thsi PC doesn’t currently meet Windows 11 system requirements” and rolls back the update-process ans quits with error 0x8024000b
Does anybody have a new hack for the TPM issue im combination with vSphere6.5 ?
Every hint is very appreciated!
Michael
It sounds like you are trying to do an upgrade and not a clean install. Everything I have experienced, read, seen and heard indicates you MUST do a clean install of Win 11 NOT an upgrade from Win 10. What you will instead have to do is a fresh install of Win 11 on ESXi 6.5 using this process and then transfer all the data from the old Win 10 VM to the new Win 11 VM.
I can also confirm that as of today my Win 11 VM is running the latest version of Win 11 without any issues on ESXi 6.5. If you experience issues with your clean install of Win 11 along these lines I would try to get an older ISO and then use windows update to upgrade it once you have windows installed.
Hello James, thanks for your quick response!!
In my case, I did an unsual windows-update, the installation succeeded months ago. Updating from Windows 11 – 21H1 to 22H2 has caused those symptoms, I’ve reported yesterday.
But nevertheless I’ll go your way in installing a new VM but already version 22H2, maybe this will succeed.
It should work fine with a fresh installation and then doing a migration over of the information from one VM to the other. If you run into issues just use an older ISO of Win 11 and later update it with Windows Update. I can confirm that is working as I fired up my Win 11 VM on my ESXi host yesterday and all current updates install just fine.
I did the installation with an older ISO and ran windows-update yesterday, finally quiting with a.m. issues. But I hope, that a new installation with its build from 22H2 will skip the issues. I’ll let you know!
Worked great! Thank you!
This worked for me. Thanks.
Thanks. It worked as described.
Thank you, works perfectly!
Thank you, still works on ESXi 6.5u3
Worked for me, thanks!
THANK YOU!!! 🙂
I can confirm this works with the official 23H2 ISO from MS.
Excelelnt work and thank you for providing such good instructions!