This detailed beginner’s guide shows you how to install Windows 10 in VirtualBox on Linux.
I regularly encourage people to use Linux, and when I give them reasons to switch, I always mention that they can use Windows and Linux together if they’re ‘scared of Linux’.
One way to use the two systems together is to dual boot Windows and Linux. It works well except that you have to switch between the operating systems by restarting the system. This is somewhat inconvenient.
If, like me, you’re an infrequent user of Windows and don’t want to trouble yourself with dual booting Ubuntu and Windows 10, I suggest installing Windows 10 inside Linux by creating a virtual machine. In an earlier tutorial, I showed you how to install VMWare on Ubuntu, but in this one, we’ll be using Oracle VirtualBox to create virtual machines and installing Windows 10 on them.
What is VirtualBox and what are its advantages?
VirtualBox is open-source virtualization software from Oracle for creating virtual machines. With a virtual machine, you can run an operating system like an application inside your current operating system. It’s like a computer inside a computer.
These are called virtual machines because they’re basically emulating other operating systems, but they’re not really interacting with the computer system like a true operating system would.
The bottom line is that with virtual machine software, you can use Windows like an application inside Linux. Unlike regular applications, it will consume lots of RAM. But this way, you can use Windows-specific software and programs inside Linux without needing to install Windows fully.
Install Windows 10 in VirtualBox on Ubuntu and Linux Mint
Before installing Windows 10 in VirtualBox, let’s see what you need first:
- An internet connection with good speed, or a Windows 10 ISO that you’ve already downloaded.
- At least 4 GB of RAM. The more RAM you’ve got, the better.
- Around 20 GB of free storage for installing Windows 10.
Once you’ve made sure you have the prerequisites, let’s see how to do it. If you prefer, you can watch this tutorial as a video. Do subscribe to our YouTube channel for more Linux tutorials:
Step 1: Download Windows 10 ISO
First and foremost, you need to download a Windows 10 ISO. You can download Windows 10 32-bit or 64-bit, depending on your system. Go to the link below and choose which version of Windows 10 you’d like to download:
You’ll have to choose the edition and language, and then pick between a 32-bit or 64-bit system, before you download the ISO.
Step 2: Install VirtualBox on Ubuntu and Linux Mint
It’s very easy to install VirtualBox on Ubuntu. All you need to do is to use the command below:
sudo apt install virtualbox
Step 3: Install Windows 10 in VirtualBox
Start VirtualBox. You should see a screen like the one below.
Name the VM anything you like. Also select the operating system and version. In this case I’ve chosen Windows 10 and 64-bit.
Choose the RAM size. The recommended RAM size for 64-bit Windows 10 is 2 GB, while for 32-bit Windows 10 it’s 1 GB. But I suggest you have a little more than that for a smoother experience.
Next is the size for the virtual machine. If you’re crunched on space choose the recommended size, otherwise make it a little more than the recommended size.
For the format, go ahead with the VDI format.
Confused about dynamic or fixed size? If you choose dynamic, the installed VM will grow beyond its allocated size later. If you’re not going to use Windows extensively, I suggest that you go with fixed size.
Now it’s time to finalize the installation size. You can choose where to create the virtual disk. The default location (Home directory) works fine.
You should now be back at the start screen. But wait, we haven’t used our Windows 10 ISO yet, have we? Now’s the time to actually use the ISO. Click on Settings.
In here, go to Storage and add a new optical drive. I added this screenshot later because a few readers had difficulties finding it.
Click Choose disk and point to the Windows 10 ISO.
Now you should see the Windows 10 ISO listed under Storage. Press OK.
You should now be back at the main screen of Oracle VirtualBox. Now everything is ready. The next step is to install Windows 10. Click on Start from the main screen:
Voila!! You should see the familiar Windows boot screen:
A couple of seconds later, you should see the option to install Windows:
Note: At this point, if you see the Windows logo with a black background and it never starts to install, you may have to perform a little tweak.
As It’s FOSS reader Larry points out, “There seems to be an incompatibility between Virtualbox and Windows 10 1703. A virtual machine that runs W10 1607 fine will fail to boot W10 1703 -UNLESS- the following parameter is set: Under System – Acceleration you must set Paravirtualization to None and then reboot.”
I think you can handle things from here, as installing Windows is just a matter of few clicks. For your convenience I’ve added the screenshots in a gallery. Click on the images to enlarge them if you need any hints.
Once you’ve successfully installed Windows 10, you’ll find that the internet connection is shared with the virtual Windows as well: no need for further configuration. Here’s It’s FOSS on the Edge browser in Windows 10 inside a VM.
When you’re done using the virtual Windows, you can go back to the main screen and switch off the virtual machine from there:
To start the virtual OS again, just click on Start (green arrow) on the main screen of VirtualBox again. That’s it. More on using virtual operating systems later. I think this gives you a good idea of how to install Windows in Ubuntu or Linux Mint to begin with :)
In a related post, you can learn how to create a bootable Windows USB in Linux.
Did this tutorial help you install Windows on Linux using VirtualBox? If you have questions or suggestions, feel free to drop a comment.