Windows 11 hardware requirements include “Trusted Platform Module (TPM) version 2.0". For more information, see Windows 11 requirements. Windows 11 installer has a restriction to only install on the systems that include a TPM or vTPM device.
For Windows 11 deployment, it is not best practice to install Windows 11 in the virtual machine with a vTPM device and later remove the vTPM device to create a VM template, because the secrets stored in the vTPM will be deleted and this can result in data loss. If using this method ensure that neither Windows nor any third party applications are using the TPM.
The best practice for creating a template without a vTPM is to install Windows 11 from the start in the virtual machine without a vTPM device to eliminate the risk of data loss.
This article describes how to deploy Windows 11 in virtual machine without a vTPM device using a bootable WinPE image, which is valuable for creating a Golden Image Template or an OVA Template. Users can deploy Windows 11 at scale from the template, then add a new unique virtual TPM device into each deployed VM instance. Using a bootable WinPE image provides a simple process to deploy Windows 11 into a VM without a vTPM from the start that is fully supported by Microsoft and VMware.
Note: All resulting deployed VMs for end users with Windows 11 should include a vTPM to comply with Microsoft's minimum hardware requirements and to ensure a higher level security.
C:\test\winpe\ - used as working directory of WinPE.
C:\test\mount\ - used as the mount directory of WinPE image.
C:\test\drivers\ - (optional) contains the drivers files.
C:\test\scripts\ - contains the scripts.
copype amd64 C:\test\winpe
dism /Mount-Image /ImageFile:C:\test\winpe\media\sources\boot.wim /index:1 /MountDir:C:\test\mount\
copy startnet.cmd C:\test\mount\Windows\System32\
copy deploy.cmd C:\test\mount\
copy CreatePartitions-UEFI.txt C:\test\mount\
copy Unattend.xml C:\test\mount\
startnet.cmd
”: (Sample file attached to this KB article.)deploy.cmd
”. (Sample file attached to this KB article.)C:\test\drivers\
to C:\test\mount\drivers\
.E:
”, then copy PVSCSI driver files from this path E:\Program Files\VMware\VMware Tools\Drivers\pvscsi\Win10\amd64\
to C:\test\drivers\
.expand C:\xxxx.cab -F:* C:\test\drivers\
dism /image:C:\test\mount\ /add-driver /driver:C:\test\drivers\ /Recurse
dism /Unmount-Image /MountDir:C:\test\mount /Commit
MakeWinPEMedia /ISO C:\test\winpe C:\test\WinPE_amd64.iso
deploy.cmd
”, it will prompt to select the index of OS Edition in Windows installation ISO image, input the OS Edition index and press Enter. OS image will be applied to Windows partition.