In this tutorial, I’ll show you how to set up a Windows 11 virtual machine in VirtualBox, including the virtual TPM 2.0 and Secure Boot that Windows 11 needs.
You’ll need VirtualBox installed on your computer first. Here’s my step-by-step guide to installing VirtualBox on a Windows PC. You don’t need the Extension Pack for a Windows 11 virtual machine.
VirtualBox installs Windows 11 from an ISO file. Download it free from Microsoft’s Download Windows 11 page: choose Windows 11 (multi-edition ISO for x64 devices).
Checked November 2026
These steps are for VirtualBox 7.2, the current version. My screenshots are from VirtualBox 7.0, so a few screens look slightly different. Where the labels have changed, I’ve given both.
The Short Version
- Click New, name the virtual machine and choose the Windows 11 ISO.
- Untick unattended installation so you can install Windows yourself.
- Give it at least 4 GB of memory, 2 processors and a 64 GB disk, with EFI turned on.
- In Settings, System, check TPM v2.0 and Secure Boot are on.
- Start it, press a key to boot from the ISO, and install Windows 11.
- Click Devices, Insert Guest Additions CD image, and install them.
Table of contents
How to Set Up a Windows 11 VM in VirtualBox
To create the virtual machine, open VirtualBox and click the New button.

Virtual Machine Name and Operating System
The first page of the wizard asks for:
- Name. Anything you like. It just helps you tell your virtual machines apart.
- Folder. All the files that make up your virtual machine are kept in one folder on your PC. You can change where if you want to.
- ISO Image. Click the drop-down arrow, choose Other, and find the Windows 11 ISO you downloaded. VirtualBox recognises it and sets the type to Windows 11 (64-bit).
Then turn off unattended installation, so you can install Windows yourself, step by step. In VirtualBox 7.2, untick Install OS Using Unattended Installation. In VirtualBox 7.0, tick Skip Unattended Installation. Click Next.

Virtual Hardware Settings
Next, choose the virtual hardware your virtual machine will have. VirtualBox suggests settings for Windows 11, but if it didn’t recognise the ISO it can suggest as little as 512 MB of memory and 1 processor. That’s nowhere near enough.
- Set Base Memory to at least 4096 MB (4 GB). If your PC has 16 GB or more, 8192 MB is better.
- Give it at least 2 processors, or more if your PC has plenty.
- Tick Use EFI (in VirtualBox 7.0 it’s Enable EFI (special OSes only)). Windows 11 needs EFI for Secure Boot and the TPM.
Virtual Hard Disk Capacity
VirtualBox has various options for virtual hard disks. To keep it simple, I’ll assume this is your first Windows 11 virtual machine.
Make sure Create a Virtual Hard Disk Now is selected (in VirtualBox 7.2, the disk size is on the same page as the hardware). Windows 11 needs at least 64 GB, and setup checks, so I’d make it 80 GB. The disk only takes up the space it actually uses on your PC. Click Next.

VirtualBox VM Summary
Finally, you’ll see a summary of the virtual machine you’re about to create. Click Finish. You’re not quite done yet, though.

How to Enable TPM and Secure Boot in VirtualBox
When you click Finish, VirtualBox creates the virtual hardware for your Windows 11 virtual machine. Before installing Windows, check it has a TPM 2.0 and Secure Boot. VirtualBox 7 may already have set them for Windows 11, but it’s worth making sure.
- Your new virtual machine is powered off. That’s what you want, because some settings can only be changed while it’s off.
- Click Settings (the cog), then System.
- On the Motherboard tab, set TPM to v2.0 and tick Enable Secure Boot. Click OK.
- Click Start to power on the virtual machine.
In VirtualBox 7.1 and 7.2, if you can’t see the TPM option, switch the Settings window from Basic to Expert.




Updating Secure Boot Keys on an Older Windows 11 VM
If you made your Windows 11 virtual machine a while ago, its Secure Boot keys may be out of date. Microsoft is replacing its 2011 Secure Boot certificates with 2023 ones, and Oracle recommends refreshing them in VirtualBox 7.2:
- Update VirtualBox to the latest 7.2 version, and back up the virtual machine’s folder.
- Shut the virtual machine down fully (not saved state).
- Open Settings, System, Motherboard, and click Reset next to Secure Boot to load the current keys.
- Start the virtual machine, install any waiting Windows updates, and restart it.
Best VirtualBox Settings for Windows 11
These are the settings I’d use for a Windows 11 virtual machine. You’ll find them all under Settings while it’s powered off.
- Base Memory: 4096 MB minimum, 8192 MB if your PC has 16 GB or more.
- Processors: 2 minimum. Don’t give it more than half of your PC’s processor threads.
- Disk: 64 GB minimum, 80 GB or more is better.
- System: EFI on, TPM v2.0, Secure Boot ticked.
- Paravirtualization Interface (System, Acceleration): leave it on Default. For Windows, that uses Hyper-V, which is the right one.
- Display: graphics controller VBoxSVGA, with 128 MB of video memory.
Installing Windows 11 as Guest in VirtualBox
So far, you’ve set up the virtual hardware and pointed VirtualBox at the Windows 11 ISO. When you click Start, the virtual computer powers up and you install Windows 11 on it.
As it starts, click inside the virtual machine’s window so your mouse and keyboard work in it. To get them back to your PC, press the right Ctrl key (VirtualBox calls it the Host key).
When the VirtualBox information message about capturing the mouse appears, tick Do not show this message again and click Capture.

Rebooting Your Virtual Machine
Quite often, you won’t have time to Press any key to boot from CD or DVD, and you’re left with a No bootable device message and no obvious way to restart setup.
On the VirtualBox menu, click Input, point to Keyboard, and click Insert Ctrl-Alt-Del. That restarts the virtual machine, and this time you can press a key in time.


Windows 11 Setup
The Windows 11 setup screen appears. One thing that can be annoying is the VirtualBox notification panel. Get rid of it by clicking the button in its top right corner.

Installing Windows 11
Windows 11 installs in a virtual machine just as it would on a real PC. Every step and every screen is the same. When it asks for a product key, you can click I don’t have a product key and activate later.
I have a complete guide here: How to Install Windows 11.
Install the VirtualBox Guest Additions
Once Windows 11 is installed, install the VirtualBox Guest Additions. They’re a set of drivers that let the screen resize with the window, make the mouse move smoothly, and turn on copy and paste between the virtual machine and your PC.
Don’t confuse them with the Extension Pack, which goes on your PC, not in the virtual machine.
- On the VirtualBox menu, click Devices.
- Click Insert Guest Additions CD image. That puts the Guest Additions in a virtual CD drive inside the virtual machine.

VBox Guest Additions Installation
Inside the virtual machine, open File Explorer. You’ll see the Guest Additions in a virtual CD drive. Double-click it, then run VBoxWindowsAdditions.

Installing the Guest Additions is just like installing any other software. Click Next, accept the folder, leave the components at their defaults and click Install. When it finishes, choose Reboot now and click Finish.




After the restart, you have a brand new Windows 11 virtual machine. You can go online, install software and use it like any other computer. The difference is that it’s isolated from your real PC.
For more on the Guest Additions, including shared folders and fixing them when they won’t install, see my guide to installing VirtualBox Guest Additions.

Troubleshooting a Windows 11 VirtualBox Install
This PC Can’t Run Windows 11
Windows 11 setup checks for a TPM 2.0, Secure Boot, 4 GB of memory and a 64 GB disk. Shut the virtual machine down, then check Settings, System (EFI, TPM v2.0 and Secure Boot), the base memory, and the disk size.
VT-x Is Not Available
Virtualization is turned off in your PC’s BIOS, or Windows’ own Hyper-V is using it. Here’s how to enable virtualization (VT-x and AMD-V).
No Bootable Medium Found
The ISO isn’t attached. Go to Settings, Storage, click the optical drive, and choose your Windows 11 ISO. Then restart the virtual machine.
The Screen Is Small or Won’t Resize
The Guest Additions aren’t installed yet, or the virtual machine hasn’t restarted since. Install them as shown above.
A Green Turtle in the Corner
VirtualBox is running on top of Windows’ Hyper-V. It still works, just more slowly.
Frequently Asked Questions
Q: Can I install Windows 11 in VirtualBox without a TPM?
A: Yes. VirtualBox 7 gives the virtual machine its own virtual TPM 2.0, so your PC doesn’t need one. Set TPM to v2.0 in Settings, System.
Q: Do I need the Extension Pack for a Windows 11 virtual machine?
A: No. Its features moved into VirtualBox itself between versions 7.0 and 7.2. What you do need, inside the virtual machine, are the Guest Additions.
Q: How much memory and disk space does a Windows 11 VirtualBox VM need?
A: At least 4 GB of memory and a 64 GB disk, because Windows 11 setup checks both. 8 GB and 80 GB are better if your PC can spare them.
Q: Is there a ready-made Windows 11 VirtualBox image?
A: Not one I’d recommend. Use the free Windows 11 ISO from Microsoft and install it yourself, as shown in this guide.
Q: Do I need a product key?
A: Not to install it. Click I don’t have a product key during setup and activate Windows later with your own key.
Q: What paravirtualization interface should I use for Windows 11?
A: Leave it on Default. For Windows guests, VirtualBox then uses Hyper-V, which is the right choice.
Q: Why didn’t I see the Windows 11 setup screens?
A: VirtualBox 7 installed Windows for you using unattended installation. To do it yourself, untick Install OS Using Unattended Installation (VirtualBox 7.2) when you create the virtual machine.
Q: Is VirtualBox free?
A: Yes. VirtualBox is free for everyone, and Windows 11 runs in it without any extras.
Summary
That’s it: a Windows 11 virtual machine running in VirtualBox, with a virtual TPM, Secure Boot and the Guest Additions. Before you do anything else with it, make a backup. It’ll save you hours if something goes wrong.
Related Posts
How to Back Up a VirtualBox VM
Make a complete backup of your VirtualBox virtual machines.
How to Install a Windows 10 Virtual Machine in VirtualBox
The same job for Windows 10.
How to Install VirtualBox on a Windows PC
Haven’t installed VirtualBox yet? Start here.
How to Setup a Windows 11 VM on VirtualBox

Windows 11 runs great on VirtualBox. You can use it even if your current PC doesn’t meet the system requirements.
You can find this and other related step by step guides in – At Home Computer VirtualBox Guides
Written by Jeff Porter. I’ve been fixing Windows PCs since 2010 and I’m CompTIA Network+ certified. More about me