How to set up a Windows 10 and 11 virtual machine on Linux

With a virtual machine, you can dabble in all kinds of alternative operating systems, like installing Windows 10 inside Linux. Here’s how.

When you purchase through links on our site, we may earn an affiliate commission.Here’s how it works.

If you’re looking to try out some alternative operating systems like Linux, it’s pretty straightforward to do so onWindows 10 and 11 inside a virtual machine.

The reverse is also true. If you’re using Linux on your desktop or laptop, it’s incredibly easy to install Windows 10 inside a virtual machine giving you full access to Microsoft’s desktop OS. Though, admittedly, there are a couple of extra steps involved in most cases with Windows 11 thanks to some of its new requirements.

Here’s what you need to know about getting set up.

About this guide and installing VirtualBox

About this guide and installing VirtualBox

There are naturally several different Linux distros out there that look and operate a little differently from one another. Still, the steps here are fairly universal and should be suitable for a wide range.

We’ll be using VirtualBox to handle the virtual machine on Pop!_OS and Linux Mint, both of which are based on Ubuntu. VirtualBox has downloads for most major distros on its site, while some likeManjaromay need some more specific steps.

Before you begin you’ll need to download and installVirtualBoxand grab the latestWindows 10 64-bit ISOor the latestWindows 11 64-bit ISO.

How to install Windows 10 and 11 in VirtualBox

How to install Windows 10 and 11 in VirtualBox

Once you have VirtualBox installed on your Linux system, the setup and installation process for a Windows virtual machine takes only a matter of minutes.

Get the Windows Central Newsletter

All the latest news, reviews, and guides for Windows and Xbox diehards.

VirtualBox will now create the container you need to install Windows and run it as a virtual machine. Now, you’re ready to actually get into the Windows installation process.

Click the big greenstartin your VirtualBox window, and when the box above appears, simply select the ISO you downloaded for Windows 10 or Windows 11 as the startup disk. When you click thestart buttonnow, VirtualBox will fire up a virtual PC for you to use and will begin the Windows install process just as you might see when installing natively on a PC.

From here, you simply need to go through the Windows install process, and once everything is completed and you’re logged in, you will be staring at a fully operational Windows PC inside a window on your Linux machine. Windows 10 will install without a hitch, but there’s a good chance you need to complete some additional steps for Windows 11.

Bypassing Windows 11 installation errors

Whichever virtual machine tool you’re using to install a Windows 11 VM with on Linux there’s one thing you’re more than likely going to come up against: an error saying your PC can’t install it.

This is down to two key Windows 11 hardware requirements: TPM 2.0 and Secure Boot. Some VM software, such as VMware, can handle the Secure Boot aspect, but VirtualBox, for example, cannot. Likewise, some can inject a virtual TPM, but most, again like VirtualBox, cannot currently.

So, we’ll just tell our VM to skip those checks. When you reach the error screen, hitShift + F10to open a Command Prompt and enter the following two commands.

This will add the necessary instructions into the registry to skip checks for both TPM and Secure Boot. Close the Command Prompt, go back one step, then continue as normal and you’ll be able to complete the Windows 11 installation process.

Alternatives to VirtualBox

Linux being as broad as it is, there are, of course, options when it comes to virtual machine software. For the purposes of this guide, I’ve focused on VirtualBox in part because it’s just easy to set up and rarely seems to have issues.

It’s not the most elegantly designed piece of software, though, and there are certainly alternatives available. Some of those includeGNOME BoxesQEMU, andVirtual Machine Manager(pictured above), though, in my experience, GNOME Boxes has been a little unreliable with Windows.

There is also a version ofVMware Workstationfor Linux, though this can be a bit tricky to install on some distros, and it’s not open source, which goes against what many Linux users would wish to use.

Whichever you choose, though, getting a Windows 10 or 11 virtual machine running on Linux is a relatively simple process, whatever it is you need it for.

Richard Devine is a Managing Editor at Windows Central with over a decade of experience. A former Project Manager and long-term tech addict, he joined Mobile Nations in 2011 and has been found on Android Central and iMore as well as Windows Central. Currently, you’ll find him steering the site’s coverage of all manner of PC hardware and reviews. Find him on Mastodon atmstdn.social/@richdevine