VirtualBox is a virtualization tool that allows you to run virtual machines within your computer and its available for free.

It is commonly used by developers to create virtual environments along with Vagrant for their development projects.

To install VirtualBox first go to the downloads page here and choose de appropriate downloadable file.

For MS Windows and macOS, just download and run the installer.

Here you can review Oracle's VirtualBox manual.

For Linux distributions:

Ubuntu / Debian:

sudo -s -H
apt-get clean
rm /var/lib/apt/lists/*
rm /var/lib/apt/lists/partial/*
apt-get clean
apt-get update

sudo apt-get install virtualbox-6.1

 Replacevirtualbox-6.1 by virtualbox-6.0 or virtualbox-5.2 to install the latest VirtualBox 6.0 or 5.2 build.


Oracle Linux / Red Hat / Centos:

sudo yum -y update
sudo yum install –y patch gcc kernel-headers kernel-devel make perl wget
sudo wget -P /etc/yum.repos.d
sudo yum install VirtualBox-6.1

replace VirtualBox-6.1 by the most current version.


Once done, make sure the installation was successful:

sudo systemctl status vboxdrv

You will see something like this:


Now you are ready to create virtual machines and the most recommended way is to use Vagrant.

 How to install Vagrant in easy steps.