Skip to content

How to Install Windows 11 in VirtualBox

Install Windows 11 in VirtualBox the right way: enable TPM 2.0 and Secure Boot in EFI, set VM specs, mount the ISO, handle the requirement bypass, and add Guest Additions.

SDSysadmin Desk June 28, 2026 7 min read
Diagram-style cover showing a VirtualBox virtual machine configured with EFI, a virtual TPM 2.0 chip, and Secure Boot enabled, ready to install Windows 11

Installing Windows 11 in a VM used to mean fighting the hardware checks — no TPM, no Secure Boot, install blocked. That’s no longer necessary. VirtualBox 7.0 added a virtual TPM and the EFI plumbing Windows 11 expects, so you can build a VM that passes the requirements cleanly instead of hacking around them.

This walkthrough builds that VM properly: EFI on, a virtual TPM 2.0 chip, Secure Boot enabled, sensible specs, the ISO mounted, and Guest Additions afterward so the desktop is actually usable. The registry bypass is here too, but as a fallback for older setups, not the main path.

What Windows 11 checks for

Before clicking anything, know what the installer is looking for. Windows 11 enforces a short list of requirements, and a VM has to present each one:

Windows 11 requirements and how VirtualBox supplies them

TPM 2.0 Virtual TPM in VirtualBox 7.0+, enabled in System settings
Secure Boot Enabled in the VM's EFI motherboard settings
UEFI firmware Turn on EFI for the VM (not legacy BIOS)
64-bit CPU, 2+ cores Assign 2 or more CPUs to the VM
4 GB RAM minimum Allocate 4 GB at the floor; 8 GB is better
64 GB disk minimum Create an 80 GB+ virtual disk to leave headroom

The two that block people are TPM 2.0 and Secure Boot, and both depend on EFI being on. Get EFI enabled first and the rest falls into place.

Before you start

What you need

  • VirtualBox 7.0 or later installed on the host
  • A Windows 11 ISO (download from Microsoft's official site)
  • Host CPU virtualization (VT-x / AMD-V) enabled and available to VirtualBox
  • At least 8 GB RAM free on the host so the VM can have 4 GB comfortably
  • 80 GB or more of free disk for the virtual hard disk

That third point matters. If VirtualBox can’t get hardware virtualization from the CPU — often because Hyper-V or another Windows hypervisor has claimed it — the VM will run slowly or refuse to start, regardless of how you configure Windows 11. If you hit that, work through VirtualBox VT-x is not available (Hyper-V conflict) before going further.

Step 1: Create the VM

In VirtualBox, click New and give the VM a name. If you point it at your Windows 11 ISO here, VirtualBox 7 offers Unattended Install — you can use it, but for learning the requirements it’s clearer to skip unattended setup (tick “Skip Unattended Installation”) and configure things by hand.

Set the type to Microsoft Windows and version to Windows 11 (64-bit). Then set the resources:

  • Memory: 4096 MB minimum, 8192 MB if the host allows.
  • Processors: 2 or more.
  • Disk: create a new VDI, dynamically allocated, 80 GB or larger.

Step 2: Enable EFI, TPM 2.0, and Secure Boot

This is the part that makes Windows 11 happy. With the VM created but not started, open its Settings.

Under System → Motherboard:

  1. Tick Enable EFI (special OSes only).
  2. On VirtualBox 7.x, enable Secure Boot in the same panel.

Then the TPM. Still under System (Motherboard tab in 7.0, depending on build), find the TPM dropdown and set it to 2.0.

System settings for a Windows 11 VM

Enable EFI On — required for TPM and Secure Boot
TPM v2.0
Secure Boot Enabled
Pointing Device USB Tablet (smoother mouse before Guest Additions)
Processors 2 or more
Video Memory (Display tab) 128 MB for a responsive desktop

Step 3: Mount the ISO and install

Go to Settings → Storage, select the empty optical drive, and attach your Windows 11 ISO. Then start the VM.

When you see “Press any key to boot from CD or DVD,” press a key quickly — the EFI boot window is short. Windows Setup loads, and from here it’s the normal flow: language, Install now, edition, and the license terms. Choose Custom when asked about install type, select the 80 GB virtual disk, and let it copy files.

Because the VM presents TPM 2.0, Secure Boot, EFI, and enough resources, you shouldn’t see the “This PC can’t run Windows 11” wall at all. If you do, shut the VM down and recheck Step 2 — something in EFI/TPM/Secure Boot didn’t take.

The bypass (only if you can’t enable the TPM)

If you’re stuck on VirtualBox 6.x or for some reason can’t expose a TPM, you can still get Windows 11 installed. At the “This PC can’t run Windows 11” screen, open a command prompt with Shift + F10, launch regedit, and add a bypass key.

Key:  HKEY_LOCAL_MACHINE\SYSTEM\Setup\LabConfig
Values (DWORD, set to 1):
  BypassTPMCheck        = 1
  BypassSecureBootCheck = 1
  BypassRAMCheck        = 1

Create the LabConfig key if it doesn’t exist, add the DWORD values, close regedit, and click back to retry. Setup skips the checks and continues.

Step 4: Install Guest Additions

Once Windows 11 is on the desktop, install Guest Additions. Without them the VM is stuck at a small fixed resolution, the mouse can feel off, and there’s no shared clipboard.

In the running VM’s menu, choose Devices → Insert Guest Additions CD image. Open the virtual CD in File Explorer and run VBoxWindowsAdditions.exe, accept the prompts, and reboot when it finishes.

After the reboot you get:

  • Dynamic resolution — resize the VM window and the desktop follows.
  • Shared clipboard and drag-and-drop (enable under Devices → Shared Clipboard).
  • Shared folders between host and guest.
  • Better display performance.

Wrapping up

Windows 11 in VirtualBox is straightforward once you stop fighting the requirements and supply them instead. On VirtualBox 7.0 and later, enable EFI, switch the TPM to 2.0, turn on Secure Boot, give the VM 4 GB or more of RAM and an 80 GB disk, and the installer passes its checks without any registry edits.

Keep the bypass in your back pocket for old builds that can’t expose a TPM, but reach for it last. Finish by installing Guest Additions so the desktop scales and the clipboard works, take a clean snapshot, and you’ve got a Windows 11 lab VM you can rebuild on a whim. For more VM walkthroughs and fixes, browse the virtualization guides.

Frequently asked questions

Does VirtualBox support TPM 2.0 for Windows 11?

Yes. VirtualBox 7.0 and later include a virtual TPM. In the VM's System settings you enable EFI, then set the TPM to version 2.0. That, plus enough RAM and disk, satisfies the Windows 11 hardware checks without any registry edits.

How do I enable Secure Boot for Windows 11 in VirtualBox?

Secure Boot requires the VM to use EFI. In Settings → System → Motherboard, enable EFI, then on newer VirtualBox builds enable Secure Boot in the same area. Without EFI there's no Secure Boot option, and the installer will complain.

Can I install Windows 11 in VirtualBox without TPM?

You can bypass the check, but it's better to enable the virtual TPM since VirtualBox 7 provides one. If you must skip it on an older build, the registry bypass (BypassTPMCheck and BypassSecureBootCheck) at the 'This PC can't run Windows 11' screen still works.

How much RAM and disk does a Windows 11 VirtualBox VM need?

Windows 11's floor is 4 GB RAM and 64 GB disk, but give the VM at least 8 GB RAM and 80 GB disk if your host can spare it. Allocate 2 or more CPU cores and enough video memory for the desktop to feel responsive.

Why does Windows 11 setup say 'This PC can't run Windows 11' in VirtualBox?

The installer didn't find TPM 2.0, Secure Boot, or enough resources. Shut the VM down, enable EFI and the TPM 2.0 chip in System settings, bump RAM to 4 GB or more, and retry. Configuring the VM correctly is cleaner than bypassing the check.

Do I need Guest Additions after installing Windows 11?

Not to boot, but you'll want them. Guest Additions add proper display scaling, dynamic resolution, shared clipboard, drag-and-drop, and shared folders. Without them the desktop is stuck at a small fixed resolution and feels sluggish.

Sources & further reading

Official vendor documentation referenced while writing this guide.

SD

Sysadmin Desk

Infrastructure & Cloud

Hands-on guidance for infrastructure, virtualization, and containers — Hyper-V, VMware, Docker, and the day-to-day operations work that keeps environments running.

MCSA Guru provides independent, educational IT guidance. Microsoft, Windows, Windows Server, Microsoft 365, Exchange, and Microsoft Teams are trademarks of Microsoft Corporation; Docker is a trademark of Docker, Inc. MCSA Guru is not affiliated with or endorsed by Microsoft or Docker. Always test changes in a safe environment before applying them in production.

Related guides

Fixing something right now?

Jump straight into the guide library or search for the exact error or task you are dealing with.