Skip to main content

How to install Windows 11 in a virtual machine

Windows 11 on a tablet.
Image used with permission by copyright holder

There’s no doubt that Windows 11 is the latest and greatest operating system from Microsoft. However, be it TPM 2.0 or CPU restrictions, not everyone might be able to run the new operating system on their PC.

Recommended Videos

Difficulty

Moderate

Duration

20 minutes

What You Need

  • A Windows PC

  • Internet connection

If you've been impressed by our Windows 11 review and want to try it, you can install Windows 11 on a virtual machine. This lets you virtualize Windows separately from your existing installation with no risk to your PC. Here’s how to do this on Windows.

Please note that, while possible, Microsoft doesn’t officially support running Windows 11 on a virtual machine. The company offers Windows 365 Cloud PC, a commercial and business solution where you can run Windows 11 through the cloud in a similar matter.

The oracle virtualbox download page.
Image used with permission by copyright holder

A quick summary

The easiest way to install Windows 11 on a virtual machine in Windows is with Oracle VirtualBox. It’s a free, purpose-built virtualizer for x86 hardware, targeted at server, desktop, and embedded use. It’s quite popular with Windows enthusiasts, and it’s simple to use.

Setting up Oracle on Windows 10.
Image used with permission by copyright holder

Download and configure Virtual Box

To get started, visit the Oracle Virtualbox website and download the app. Oracle Virtualbox is free, and there’s no fee involved. Just click the Windows hosts option and allow your PC to download the program. When finished, navigate to the file and launch it. If you’re on a Mac or Linux machine, be sure to choose the MacOS or Linux downloads. The steps for installing Windows on a Virtual Machine are the same.

Step 1: Next up, you’ll want to download Windows 11. You’ll need an ISO file from Microsoft. To do this, visit the Download Windows 11 webpage. Scroll down to the Download Windows 11 disk image (ISO) option. Then, choose Windows 11 followed by Download. Choose English as the Product Language and click Confirm. Note where you’ve downloaded the ISO, as you’ll need it later.

Step 2: With Windows 11 downloaded, it’s time to install Oracle Virtualbox. Find where the file is saved and double-click to launch it. Follow the prompts on your screen by clicking Next. If you want quick access, you can create Start Menu, Shortcut, and Quick Launch entries. You’ll also need to install a network interface, too, so be sure to click Yes. This will temporarily interrupt your network connectivity. Keep clicking Next and agree to any install prompts on your screen. It may take several minutes.

Step 3: Once setup is complete, you can set up your virtual machine. Launch Oracle Virtualbox from your desktop or Start Menu. Click the blue New button. Name your virtual machine; we prefer the name "Windows 11." You can then choose Microsoft Windows under Type and then choose Windows 11 under Version.

allocating virtual resources on windows 10.
Image used with permission by copyright holder

Step 4: For this step, you need to allocate resources. Under the Create virtual machine step, be sure to adjust the memory size. If your PC has a lot of RAM, then be sure to give the virtual machine at least a few gigabytes of RAM. The more RAM you allocate, the faster the virtual machine. If your PC doesn’t have enough RAM, then be sure to keep it under the green area. VirtualBox will always suggest a size for you to pick. Understanding how Windows 11 uses RAM can help you here.

In addition to RAM, you’ll also have to create a virtual hard disk. The virtual hard disk is where you’ll store files and apps on your virtual machine. Click the Create button and choose VDI (VirtualBox Disk Image) and then choose Next.

In the next step, it’s best to use Dynamically allocated. This will only use space on your physical hard disk as it fills up, but it will not shrink again when space on it is freed up. If you want a more traditional experience, you can use Fixed size, but this might take longer to create. Drag the slider around to adjust the VDI size and click Create.

Installing windows 11 on a vm in windows 10.
Image used with permission by copyright holder

Prepare to install Windows 11

Next up, you’ll want to install Windows 11 on your new virtual machine. Click the name of the virtual machine in the sidebar and choose Settings. In the sidebar, choose Storage. Under where it says Controller: SATA, look for the blue icon of a CD Drive.

Click on the CD icon where it says Empty and click over to the right where it says Optical drive. Be sure to select the Live CD/DVD. You’ll then want to click the Blue CD icon that’s right next to this and select Choose a disk file. Navigate to where you saved your Windows 11 ISO and then open it with Open. You can then complete the process by clicking OK.

Next, follow these steps below closely.

Step 1: Now that everything is set up, you can launch your new virtual machine. Click the Start icon and quickly click inside the virtual machine window. Your mouse will be captured by the virtual machine, but you can exit the capture at any time by clicking the Right control key. Be sure to act quickly and press any key on your keyboard to boot up the Windows 11 install experience.

Note that Microsoft doesn’t officially support running Windows 11 in a virtual machine. There is a workaround, however.

Step 2: Once you’re at the Windows Setup screen, hit Shift + F10 on your keyboard. This will launch Command Prompt. Type Regedit and hit Enter, then head to HKEY_LOCAL_MACHINE > SYSTEM > Setup on the left side. Right-click on Setup and select New > Key. Name it "LabConfig" and press Enter.

Step 3: After that, right-click on LabConfig and select New > Dword (32-bit) and create a new value named "BypassTPMCheck." Set its data to one by right-clicking on it and selecting Modify.

Step 4: Next, follow the same steps, and this time, create BypassTPMCheck and set its data to one. Also, create BypassSecureBootCheck and set its value to one, too. It should look like our image below.

bypassing the windows 11 restrictions.
Image used with permission by copyright holder

When done, close the registry editor, go back to the command prompt, and type "exit." You can then proceed with the Windows 11 install as normal. Be sure to click Custom, choose Unallocated space, and then New. Click OK and then choose the partition with the biggest size to install Windows 11 on. Windows will then install, and you should be experiencing the new OS in a matter of minutes, depending on the speed of your PC.

If you find that, after a while, you aren't a huge fan of your new operating system, you can always uninstall Windows 11.

Arif Bacchus
Arif Bacchus is a native New Yorker and a fan of all things technology. Arif works as a freelance writer at Digital Trends…
Is Windows 11 acting up for you? This might be why
The Surface Pro 11 on a white table in front of a window.

This year's big Windows 11 update, 24H2, started a phased rollout in October and just became available to more PCs yesterday, December 4, as spotted by Windows Latest. To check if your PC is ready for it, just head to the settings page and check for updates -- if an update is not there for download yet, you'll have to wait until later in the rollout process.

Getting new things first isn't always a good thing when it comes to software, however. It can take quite a while for a new Windows build to be announced as "stable," and 24H2 is far from earning that title at the moment.

Read more
Microsoft won’t back down on Windows 11’s biggest hurdle
The Surface Pro 11 on a white table in front of a window.

Microsoft has reaffirmed that it will not lower the minimum hardware requirements for Windows 11, solidifying the need for a Trusted Platform Module (TPM) 2.0 and a compatible CPU. This decision leaves many older PCs ineligible for the upgrade. Microsoft emphasizes that these standards are vital for improved security and performance.

As per a recent blog post titled “TPM 2.0 – a necessity for a secure and future-proof Windows 11,” Microsoft reaffirmed its decision not to relax Windows 11’s strict hardware requirements. TPM 2.0 is a hardware-based security feature that protects sensitive data and ensures secure boot processes. Microsoft argues that such measures are nonnegotiable as the company continues to address rising cybersecurity threats. The minimum requirements include a list of approved CPUs, starting from AMD Ryzen 2000 and Intel 8th Gen processors, that offer advanced security features and better performance efficiency.

Read more
Cyber Monday Strategy: Should you save the full $466 on a complete Microsoft Surface Pro 11 for Cyber Monday?
Microsoft Surface Pro 11 front view in tablet mode.

A lot of Cyber Monday deals can give you a feeling of restriction. And by this, I mean there isn't a lot of room for the freedom to choose and build and tinker like there are at other times. "This is what you'll get, and you'll like it!" the world seems to say. And that's true of Cyber Monday Microsoft Surface deals, too (including the "you'll like it" part, they are pretty great deals and you will like them, go check them out!). But, if you go through Microsoft you can now get a Surface Pro 11 bundle with the works (including the critical keyboard and even a stylus pen) and get up to $466 in savings. It's one of the best ways to get the full Microsoft Surface Pro 11 experience out there. But how should you build your bundle? And is maxing out the savings really the best choice? Tap the button below to get started and we'll walk you through the five-step process in no time.

How to shop Microsoft's Surface Pro 11 Bundle offer
Microsoft's store lays this out as a five-step custom order, and there's no reason for us to do any differently:

Read more