If you want to install Windows 11 on a Hyper-V virtual machine, then you will have to use Generation 2 during the initial setup of the machine in order to be able to enable the Trusted Platform Module (TPM) and secure boot. If this is not done, then Windows 11 will not be installed, since these are the minimum requirements for installing the OS.
Enabling TPM and Secure Boot on Hyper-V
If you have already created a Windows 11 virtual machine, then make sure it is Generation 2.
If you have generation 1 shown, then you will have to create the virtual machine again, since there is no way to change this parameter, which is said in the message upon creation.
- When creating a new virtual machine with Windows 11, specify the 2nd generation.
- Also, don’t forget that you need a minimum of 64GB of disk space, 4GB of RAM, and an internet connection.
Now that you have Gen 2, you need to enable TPM and Safe Start in Hyper-V to install Windows 11. To do this:
- Right-click the powered off Windows 11 virtual machine and select Options.
- In the new window go to the ” Security ” tab.
- Check the ” Enable Secure Boot ” and ” Enable TPM ” checkboxes.
- Encrypt migration traffic (optional).