VirtualBox is one of the best virtualization software out there.
If you want to install Linux on Windows in a virtual machine using VirtualBox, the first step is to install the VirtualBox application itself.
We have covered a tutorial to install VirtualBox on Ubuntu. Let me highlight the steps for a Windows system.
The steps will be the same for the latest Windows 10 or 11 and older. Two easy ways to get Oracle VirtualBox installed on Windows:
- Download the installer for Windows and follow the on-screen instructions
- Use the winget tool
1. Using the Windows Installer
To get started, head to VirtualBox's official download page. Click on "Windows hosts" option to download the .exe installer.
Once you download the installer (.exe) file, here's what is next after launching it:
The installation instructions let you choose a location to get it installed to. You should stick with the defaults on the C: drive to ensure everything essential gets installed for VirtualBox to work as expected.
The installation process includes setting up virtual network interfaces. So, your network might get reset at the moment. Ensure that you are not connected to anything important at the time of installing it.
While the networking feature gets sorted, there are also dependencies to take care of.
The Python core package needs to be installed for Python bindings to work. You do not necessarily need to install it if you would rather not control your virtual machine using Python scripts.
However, if you think you might need them in the future, you should install it along with it.
Now, the final installation process will begin as per your preferences above, and it will present you with the option to launch VirtualBox upon closing the installer.
Suggested Read 📖
2. Using the winget tool
The winget command-line tool uses the Windows Package Manager to search, install, upgrade, remove, and configure applications on Windows 10 and 11.
If you prefer to use the command-line, this is the method for you.
First, you need to launch Command Prompt as an administrator.
Next, you need to use the winget command to install VirtualBox.
Here's the command to type in:
winget install Oracle.VirtualBox
Enabling virtualization is the next step
As you can notice, both the methods install the latest VirtualBox package for Windows. So, you can get started using VirtualBox to create and manage virtual machines.
But installing VirtualBox is only the first step. You should ensure that your Windows system is virtualization ready by tweaking some settings. Here are more details.
💬 Did you face any issues with the process? What method do you prefer? Let me know in the comments below.