How to Install VirtualBox on Linux


VirtualBox is definitely one of the best software that can create and manage a virtual machine. A virtual machine is nothing more than a machine, but it’s not physical. The host computer shares a part of its hardware resource for the virtual machine. Using virtual machine is the best way to explore any OS or testing software. It’s also quite fun.

VirtualBox is definitely the most popular software to perform this task. It’s open-source, powerful and free of cost. It also supports all the OS in the market to run in a virtual environment. For example, you can even install the most unpopular Linux distros without any trouble.

Installing VirtualBox in the system is quite easy. However, installing it in Linux systems isn’t. Here’s how to install VirtualBox for Linux users.

There are 2 ways you can install VirtualBox – the easy & hard ways.

The easy way

Universal Method (for all Linux distro)

Let’s take a look at the universal way.

  • Open the terminal in your Linux distro.
  • Run the following commands:

Note: If you end up with some type of error for any missing package, you have to install those first.

Voila! Installation complete. To start VirtualBox, run the following command in terminal:

To uninstall the program, you can use the following commands:


You can also download and install other packages according to your Linux distro. That’s more recommended than this way because it isn’t easy for new users. For example, I’m using Xubuntu 17.04. So, I have to download the responsive DEB package and install it.

For installing the DEB package on your Ubuntu/Ubuntu-based distro, run the following commands:

OpenSUSE users, install the RPM package using these command:

Fedora users, run these commands:

The hard way

You’ll find the in-depth instruction of installing VirtualBox via commands in the VirtualBox downloads page.


Spread the love
  • 10

PS. If you like this post please share it with your friends on the social networks using the buttons above.Thanks.


Please enter your comment!
Please enter your name here