Record the installation process of the windows11 virtual machine.
The error message shown in the figure below will appear during the normal virtual machine installation process, press and hold “Shift+F10” to bring up the shell window,
And exec below command:
REG ADD HKLM\SYSTEM\Setup\LabConfig /v BypassTPMCheck /t REG_DWORD /d 1
REG ADD HKLM\SYSTEM\Setup\LabConfig /v BypassSecureBootCheck /t REG_DWORD /d 1
REG ADD HKLM\SYSTEM\Setup\LabConfig /v BypassRAMCheck /t REG_DWORD /d 1
Then you can close this shell window, and select the previous install step, Re-install it again.