Enable Hardware Virtualization:
Before you install VirtualBox 6.0, make sure hardware virtualization is enabled. If you’re using an Intel processor, then you have to enable VT-x or VT-d from the BIOS of your computer. If you’re using a AMD processor, then you have to enable AMD-v from the BIOS of your computer. This is very important. Without hardware virtualization enabled, your virtual machines will perform very badly.
Adding VirtualBox Package Repository:
VirtualBox 6.0 is not available in the official package repository of Ubuntu 18.04 LTS. But we can easily add the package repository of VirtualBox on Ubuntu 18.04 LTS and install VirtualBox 6.0 from there. To add the official package repository of VirtualBox, run the following command:
| sudo tee /etc/apt/sources.list.d/virtualbox.list
Now, type in your login password and press <Enter>.
The official package repository of VirtualBox should be added.
Adding VirtualBox Public PGP Key:
Now, you have to add the public PGP key of VirtualBox official package repository to APT. Otherwise, you won’t be able to use the VirtualBox official package repository. To add the public PGP key of the official package repository of VirtualBox, run the following command:
The public PGP Key should be added.
Installing VirtualBox 6.0:
Now that the official VirtualBox package repository is ready to use, we can install VirtualBox 6.0. First, update the APT package repository cache with the following command:
The APT package repository should be updated.
Now, install VirtualBox 6.0 with the following command:
Now, press y and then press <Enter> to continue.
The required packages are being downloaded.
VirtualBox 6.0 should be installed.
Running VirtualBox 6.0:
Now, you should be able to run VirtualBox 6.0 from the Application Menu as you can see in the screenshot below.
VirtualBox 6.0 dashboard.
As you can see, I am currently running VirtualBox 6.0.0. Note the VirtualBox version because you will need it when you will install VirtualBox Extension Pack.
Installing VirtualBox Extension Pack:
VirtualBox Extension Pack enables support for USB 2.0 and USB 3.0 devices, RDP, disk encryption, NVMe and PXE boot for intel cards and many more. It is a must have tool for any VirtualBox user.
You have to download VirtualBox extension pack from the official website of VirtualBox and install it yourself in order to use these extra features in VirtualBox. First, to visit the official FTP directory of VirtualBox at https://download.virtualbox.org/virtualbox/6.0.0
Once the page loads, click on the “Oracle_VM_VirtualBox_Extension_Pack-6.0.0.vbox-extpack” file as marked in the screenshot below.
NOTE: Here, 6.0.0 is the version of the VirtualBox you installed. If it’s different for you, then replace 6.0.0 in the URL with the version you have.
Your browser should prompt you to save the file. Select Save File and click on OK.
Your download should start.
Once the download is complete, start VirtualBox 6.0 and go to File > Preferences…
Now, go to the Extensions tab.
From the Extensions tab, click on the add icon as marked in the screenshot below.
A file picker should be opened. Now, select the VirtualBox Extension Pack file you just downloaded and click on Open.
Now, click on Install.
Now, you have to accept the VirtualBox License. To do that, scroll down and click on I Agree.
You need super user privileges in order to install VirtualBox Extension Pack. Type in the password for your login user and click on Authenticate.
VirtualBox Extension Pack should be installed.
Finally, click on OK.
Now, you can start using VirtualBox 6.0 to create and run virtual machines of your favorite operating systems. So, that’s how you install VirtualBox 6.0 on Ubuntu 18.04 LTS. Thanks for reading this article.