BlogDifficulty level: AdvancedHow-ToVirtualBoxWindows 11Windows Help

How to install Windows 11 on VirtualBox VM

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.

If you want to install Windows 11 22H2 or 21H2 without workarounds, you must install VirtualBox 7 or higher, as starting with the release, the virtualization platform includes support for TPM 1.2 and 2.0 and Secure Boot to meet the hardware requirements. Otherwise, you will receive the “This PC can’t run Windows 11” message during the installation.

This guide will teach you the steps to create a virtual machine and install Windows 11 on VirtualBox.

Install Windows 11 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 install Windows 11 22H2 or 21H2 on a VirtualBox virtual machine, use these steps:

  1. Open VirtualBox.

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

    VirtualBox create vm

  3. In the Name field, confirm a descriptive name for the virtual machine – for example, Windows 11.

  4. (Optional) In the “Folder” setting, specify the location to store the virtual machine.

  5. In the “ISO Image” setting, specify the path and Windows 11 ISO file name.

    VirtualBox basic vm settings

  6. Check the “Skip Unattended Installation” option.

  7. Click the Next button.

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

  9. Select two or more processors, depending on your hardware configuration.

  10. Check the Enable EFI option.

    VirtualBox enable TPM and Secure Boot

  11. Check the “Create a Virtual Hard Disk Now” option.

  12. Select 64GB or more to install Windows 11 on the virtual machine.

    VirtualBox create virtual HDD

  13. Click the Next button.

  14. Click the Finish button.

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

  16. On the Windows Setup page, click the Next button.

    Windows 11 Setup

  17. Click the Install now button.

    Windows 11 install option

  18. (Optional) Click the “I don’t have a product key” option. (You can always activate it after the installation.)

    Skip license key option

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

  20. Check the “I accept the license terms” option.

  21. Click the Next button.

  22. Select the “Custom: Install Windows only (advanced)” option.

    Windows 11 custom install option

  23. Select the hard drive (Drive 0 Unallocated Space) to install Windows 11 22H2 or 21H2 on a VirtualBox virtual machine.

    Clean install Windows 11 on unallocated space

  24. Click the Next button.

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

    Windows 11 OOBE region

  26. Click the Yes button.

  27. Select your keyboard layout setting.

    Keyboard layout

  28. Click the Yes button.

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

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

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

    Windows 11 OOBE name PC

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

  33. 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

  34. Click the Next button.

  35. Click the Sign in button.

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

    Create Windows 11 account

  37. Click the Next button.

  38. Confirm your Microsoft account password.

  39. Click the Next button.

  40. Click the “View more options” setting.

    Windows 11 OOBE restore settings

  41. Select the “Set up as new device” option.

  42. Click the Next button.

  43. Click the Create PIN button.

    Windows 11 OOBE create PIN

  44. Create a new four-digit PIN.

    Create account PIN

  45. Click the OK button.

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

    Windows 11 OOBE privacy settings

  47. Click the Next button.

  48. Click the Next button again.

  49. Click the Accept button.

    Privacy settings continued

  50. (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

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

  52. Select the “Next” button to automatically upload your Desktop, Pictures, and Documents folders to the cloud. Or Select the “Only save file to this PC” option.

  53. Click the Next button.

  54. Click the “Decline” button to skip the Microsoft 365 setup.

    Decline Office 365

  55. Click the “Skip for now” option to skip the Game Pass promotion.

    Skip Game Pass

  56. After the installation, 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.

  57. Open File Explorer in the virtual machine (Windows key + E keyboard shortcut).

  58. Click on This PC from the left side.

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

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

  61. Click the Next button.

  62. Click the Next button again.

  63. Click the Install button.

  64. Select the Reboot now option.

  65. Click the Finish button.

After you complete the steps, the virtual machine will restart, and you can start using Windows 11.

Install Windows 11 on VirtualBox (workaround)

You don’t need to use these instructions if you have VirtualBox version 7 or higher. Instead, use the above instructions.

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 the installation 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. The computer will automatically connect to the network if it uses an Ethernet connection. If you have a wireless connection, you must 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. Click the Sign in button.

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

    Create Windows 11 account

  68. Click the Next button.

  69. Confirm your Microsoft account password.

  70. Click the Next button.

  71. Click the “View more options” setting.

    Windows 11 OOBE restore settings

  72. Select the “Set up as new device” option.

  73. Click the Next button.

  74. Click the Create PIN button.

    Windows 11 OOBE create PIN

  75. Create a new four-digit PIN.

    Create account PIN

  76. Click the OK button.

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

    Windows 11 OOBE privacy settings

  78. Click the Next button.

  79. Click the Next button again.

  80. Click the Accept button.

    Privacy settings continued

  81. (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

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

  83. Select the “Next” button to automatically upload your Desktop, Pictures, and Documents folders to the cloud. Or Select the “Only save file to this PC” option.

  84. Click the Next button.

  85. Click the “Decline” button to skip the Microsoft 365 setup.

    Decline Office 365

  86. Click the “Skip for now” option to skip the Game Pass promotion.

    Skip Game Pass

  87. After the installation, 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.

  88. Open File Explorer in the virtual machine (Windows key + E keyboard shortcut).

  89. Click on This PC from the left side.

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

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

  92. Click the Next button.

  93. Click the Next button again.

  94. Click the Install button.

  95. Select the Reboot now option.

  96. 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.

We may earn commission for purchases using our links to help keep offering the free content. Privacy policy info.

All content on this site is provided with no warranties, express or implied. Use any information at your own risk. Always backup of your device and files before making any changes. Privacy policy info.

Publicaciones relacionadas

Deja una respuesta

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Botón volver arriba
Cerrar