VirtualBox 7.2: Run Windows 11 or Linux Inside Windows
Build a complete second PC in a window, install any system you like and rewind it with one click when an experiment goes wrong.
A spare computer for testing would be perfect: a place to try Linux, check out that beta version of a tool, or see what a Windows 11 update does before it hits your real machine. The catch is the price and the desk space. A virtual machine gives you that second computer for free, inside a window on your existing PC.
VirtualBox from Oracle is free, runs on Windows, macOS and Linux, and the current 7.2 branch (7.2.22 at the time of writing) handles Windows 11 guests out of the box, including the TPM and Secure Boot checks that used to cause headaches. This guide takes you from an empty VM to your first snapshot.
Before you start
You need three things:
- VirtualBox installed from the product page.
- An ISO file of the system you want to install, for example a Windows 11 ISO from Microsoft or the Ubuntu desktop image. VirtualBox doesn't include an operating system or a license.
- Enough room. Windows 11 needs at least 4 GB of RAM and 64 GB of disk space inside the VM, and that memory is taken away from your own PC while the VM runs.
When you open VirtualBox for the first time, it starts in the Basic experience level, which shows guided workflows and fewer settings. If you later want every option on one page, switch to Expert via File > Preferences.
Step 1: Create the virtual machine
- In the VirtualBox Manager, click Home, then New.
- Give the VM a clear name such as "Windows 11 test". VirtualBox uses the name to guess the system type, so including "Windows 11" or "Ubuntu" helps.
- Check the VM Folder. Pick a drive with plenty of free space, especially if you plan to use snapshots.
- Select your ISO file. VirtualBox detects the operating system and fills in the type and version for you. If the ISO contains several editions, choose one.
- Decide about unattended installation. By default VirtualBox installs the system automatically from the ISO. The 7.2 manual calls the checkbox Install OS Using Unattended Installation; deselect it if you want to click through the setup yourself. Older 7.0 builds show it as Skip Unattended Installation, which you tick instead.
The first page of the wizard in the VirtualBox 7.0 layout; 7.2 looks more modern but asks for the same things
For a first Linux test, unattended installation is great: enter a user name and password, tick Install Guest Additions, and VirtualBox handles the rest. For Windows, a manual install gives you more control over account and privacy choices.
Step 2: Set memory, CPUs and disk
- Set Base Memory. Use at least 4096 MB for Windows 11. Stay in the green part of the slider so your own PC still has enough RAM.
- Set Processors to 2 or more. The manual's rule of thumb: never assign more than half of your PC's processor threads.
- Make sure Use EFI is selected for Windows 11.
- Choose a Disk Size of 64 GB or more. The disk is dynamically allocated, so the file on your drive only grows as the VM fills it.
- Click Finish.
Before the first start, open the VM's Settings, go to System and check the Motherboard tab. TPM Version should be set to 2.0 for Windows 11, and Secure Boot should be enabled. If the Windows installer complains that "This PC can't run Windows 11", these two settings are the first place to look.
Step 3: Install the system
Select the VM and click Start. With unattended installation, just wait and let it run. For a manual Windows install, choose Install now, then Custom: Install Windows only (advanced), select the empty virtual drive and go through the usual setup.
To click inside the VM, simply click into its window. To get your mouse and keyboard back to the host, press the Host key, which is the right Ctrl key by default. The current host key is always shown in the bottom right corner of the VM window. Need Ctrl+Alt+Del inside the VM? Right-click the host key icon in the status bar and insert the key combination from there.
Step 4: Install the Guest Additions
Right after installation, the VM feels clumsy: tiny fixed resolution, no shared clipboard, sluggish mouse. The Guest Additions fix all of that with drivers that make the guest aware of VirtualBox.
For a Windows guest:
- In the VM window, open Devices > Insert Guest Additions CD Image.
- In File Explorer inside the VM, open the VirtualBox Guest Additions disc and run VBoxWindowsAdditions.exe.
- Click through the installer and choose to reboot when it's done.
For a Linux guest, insert the same CD image, open a terminal in the mounted folder and run sh ./VBoxLinuxAdditions.run as root. Your distribution may need its kernel build tools installed first.
After a reboot, the screen resizes with the window. Now turn on copy and paste between your PC and the VM via Devices > Shared Clipboard > Bidirectional. It's off by default for security reasons. Drag and Drop lives in the same menu. After a VirtualBox update, refresh the drivers with Devices > Upgrade Guest Additions....
Step 5: Take snapshots before you experiment
Snapshots are the best reason to use a VM at all. A snapshot freezes the complete state of the machine, settings and virtual disk included, so you can jump back later.
- With the VM running, open Machine > Take Snapshot in the VM window. The VM pauses briefly and continues afterwards.
- With the VM powered off or saved, select it in the VirtualBox Manager, open Snapshots and click Take.
- Give the snapshot a name you'll understand in three months, such as "Fresh install, Guest Additions done".
The snapshot tree with Take, Delete and Restore in the toolbar in the VirtualBox 7.0 layout
To go back, select the snapshot and click Restore. Careful: everything you changed since that snapshot is gone, including files saved inside the VM. If you're unsure, take a fresh snapshot of the current state first. Delete removes a snapshot to free disk space without touching the current state, though merging the data can take a while.
Our verdict
VirtualBox suits anyone who wants to test software, try Linux or poke at Windows 11 without risking the PC they work on. The setup takes about half an hour, and snapshots make every later experiment painless. Do this today: create one VM, install the Guest Additions and take a snapshot called "clean" before you touch anything else.

