Virtualizion

How to install Windows 11 on VirtualBox VM

Here are the steps to install Windows 11 on a VirtualBox virtual machine.

VirtualBox install Windows 11

You can install Windows 11 on a VirtualBox virtual machine, and in this guide, you will learn how. VirtualBox is an open-source virtualization platform from Oracle that makes it easy to create virtual machines to run Windows 11, Windows 10, or another OS alongside the main installation on the same hardware.

VirtualBox still doesn’t include support for TPM 2.0 and Secure Boot, but it’s possible to set up a Windows 11 installation on a virtual machine using the official workaround provided by Microsoft to bypass the hardware requirements and the “This PC can’t run Windows 11” message.

In this guide, you will learn the steps to create a virtual machine and install Windows 11 on VirtualBox.

Install Windows 11 bypassing requirements on VirtualBox

If you plan to set up a Windows 11 virtual machine, you will need to install VirtualBox, download the latest ISO file of Windows 11, and then continue with the instructions below.

To create a virtual machine to host Windows 11 bypassing TPM and Secure Boot, use these steps:

  1. Open VirtualBox.

  2. Click the Machine menu and select the New option.

    VirtualBox create Windows 11 VM

  3. In the Name field option, confirm a descriptive name for the virtual machine. For example, vm-win11-lab.

  4. (Optional) In the Machine Folder option, select the folder location to create the Windows 11 VM.

  5. In the “Type” option, select the Microsoft Windows platform option.

  6. In the Version option, select the Windows 11 (64-bit) option.

    Windows 11 VM settings

  7. Click the Next button.

  8. Select 4GB or more system memory to allocate for the machine.

    VirtualBox select memory

  9. Select the Create a virtual hard disk now option.

    VirtualBox create virtual disk

  10. Click the Create button.

  11. Select the VDI (VirtualBox Disk Image) option.

    Create VirtualBox Disk Image

    Quick note: The application supports multiple hard drive file types, including VDI, VHD (Virtual Hard Disk), and VMDK (Virtual Machine Disk). While every option has its advantages and disadvantages, the VDI option is optimal for most use cases for general purposes.
  12. Click the Next button.

  13. Select the Dynamically allocated option to grow the size of the drive as needed.

    Storage dynamically allocated option

  14. Click the Next button.

  15. Specify the size of the virtual hard drive.

    VirtualBox create virtual drive

    Quick note: The default 80GB is suitable for installation and light applications, but the size will depend on the applications and files you want to store in the drive.
  16. Click the Create button.

  17. Right-click the newly created virtual machine from the left side and select the Settings option.

    Virtual machine settings option

  18. Click on System.

  19. Click the Motherboard tab.

  20. (Optional) In the Boot order option, configure the boot order by selecting the item and using up and down arrows on the left. Or clear the item check box to disconnect peripherals.

    VirtualBox change boot order

  21. Click the Processor tab.

  22. In the Processors option, use the slider to select how many processors to allocate for the Windows 11 virtual machine.

    Virtual machine CPU allocation

    Quick note: The selection will depend on your hardware capability, but usually, you want to give at least two to four cores per Windows 11 machine.
  23. Click on Storage.

  24. Under the “Storage Devices” section, select the Optical Drive (disc icon) option.

  25. Under the “Attributes” section, click the disc icon menu, and select the Choose a disk file option.

    VirtualBox mount Windows 11 ISO

  26. Select the Windows 11 ISO file.

  27. Click the Open button to mount the installation media.

  28. (Optional) Click on Display.

  29. Click the Screen tab.

  30. (Optional) In the Acceleration option, check the Enable 3D Acceleration option to improve video performance.

  31. In the Video Memory option, use the slider and specify the virtual machine’s amount of video memory. (The more, the better.)

    Virtual machine video memory allocation

  32. Click the OK button.

  33. Right-click the virtual machine, select the Start submenu and choose the Normal Start option.

  34. On the “Windows Setup” page, use the Shift + F10 keyboard shortcut to open Command Prompt.

  35. Type the following command and press Enter:

    regedit

    Windows 11 Setup open regedit

  36. Navigate the following path:

    HKEY_LOCAL_MACHINE\SYSTEM\Setup
  37. Right-click the Setup (folder) key, select New, and then Key option.

    Registry LabConfig

  38. Name the key LabConfig and press Enter.

  39. Right-click the LabConfig (folder) key, select New, and then the DWORD (32-bit) Value option.

  40. Name the key BypassTPMCheck and press Enter.

  41. Double-click the newly created key and set its value from 0 to 1.

    BypassTPMCheck regedit

  42. Click the OK button.

  43. Right-click the LabConfig (folder) key, select New, and then the DWORD (32-bit) Value option.

  44. Name the DWORD BypassSecureBootCheck and press Enter.

  45. Double-click the newly created key and set its value from 0 to 1.

    BypassSecureBootCheck regedit

  46. Click the OK button.

  47. Click the Next button.

    Windows 11 Setup

  48. Click the Install now button.

    Windows 11 install option

  49. Click the I don’t have a product key option if you are reinstalling. If Windows 11 has been previously activated after the installation, reactivation will happen automatically.

    Skip license key option

  50. Select the edition of “Windows 11” that your license key activates (if applicable).

  51. Check the I accept the license terms option.

  52. Click the Next button.

  53. Select the Custom: Install Windows only (advanced) option.

    Windows 11 custom install option

  54. Select the hard drive (Drive 0 Unallocated Space) to install Windows 11 on a VirtualBox virtual machine.

    Clean install Windows 11 on unallocated space

  55. Click the Next button.

  56. Select your region setting after installing on the first page of the out-of-the-box experience (OOBE).

    Windows 11 OOBE region

  57. Click the Yes button.

  58. Select your keyboard layout setting.

    Keyboard layout

  59. Click the Yes button.

  60. Click the Skip button if you don’t require configuring a second layout.

  61. If the computer uses an Ethernet connection, it will automatically connect to the network. If you have a wireless connection, you will need to set up the connection manually (a security key may be required).

  62. (Optional) Confirm a name for the computer.

    Windows 11 OOBE name PC

  63. Click the Next button. (The device will restart automatically.)

  64. Select the Set up for personal use option if you are setting up a copy of Windows 11 Pro. The “Home” edition does not have this option.

    Windows 11 setup types

  65. Click the Next button.

  66. Confirm your Microsoft account email, phone number, or Skype identification to create an account.

    Create Windows 11 account

  67. Click the Next button.

  68. Confirm your Microsoft account password.

  69. Click the Next button.

  70. Click the Create PIN button.

    Windows 11 OOBE create PIN

  71. Create a new four-digit PIN.

    Create account PIN

  72. Click the OK button.

  73. Select the Set up as new device option. Or select to restore your settings from a previous installation.

    Windows 11 OOBE restore settings

  74. Click the Next button.

  75. Confirm your privacy settings that best suit your situation by turning on or off the toggle switch for each setting.

    Windows 11 OOBE privacy settings

  76. Click the Next button.

  77. Click the Next button again.

  78. Click the Accept button.

    Privacy settings continued

  79. (Optional) On the “Customize your device” page, select one or more ways you plan to use the device to allow the setup to suggest tools and services customization during this experience.

    Windows 11 OOBE customize experience

  80. Click the Accept button to continue. Or click the Skip button to skip this part of the setup.

  81. Select the Back up my files with OneDrive to automatically upload your Desktop, Pictures, and Documents folders to the cloud. Or Select the Only save file to this PC option.

    Windows 11 OOBE backup files to OneDrive

  82. Click the Next button.

  83. Click the No, thanks button to skip the Microsoft 365 setup.

    Skip Office installation

  84. After the installation, while on the Windows 11 desktop, click the Devices menu and select the Insert Guest Additions CD image option.

    Quick note: The Guest Additions is the package that contains all the VirtualBox drivers to allow the operating system to work correctly in the virtual environment.
  85. Open File Explorer in the virtual machine (Windows key + E keyboard shortcut).

  86. Click on This PC from the left side.

  87. Under the “Devices and drives” section, double-click to open the VirtualBox Guest Additions disc.

  88. Double-click the VBoxWindowsAdditions.exe file to launch the installer.

  89. Click the Next button.

  90. Click the Next button again.

  91. Click the Install button.

  92. Select the Reboot now option.

  93. Click the Finish button.

Once you complete the steps, the virtual machine will restart, and you can start using Windows 11 in a virtual environment.

Alternatively, Oracle is building a new version of VirtualBox that will include seamless support to install Windows 11. Although it’s unclear when the new version will release with Secure Boot and TPM 2.0 support, you can already download a development preview to run Windows 11 without workarounds. However, since this is still a work in process, it may not work as expected.