How To Install VirtualBox On Ubuntu? – POFTUT

How To Install VirtualBox On Ubuntu?

VirtualBox is a very popular virtualization tool used to run different operating systems on Ubuntu systems. VirtualBox provides the ability to run Windows, BSD, Debian, CentOS, Kali even Ubuntu operating systems on Ubuntu. VirtualBox can be installed in different ways onto a Ubuntu system. In this tutorial, we will learn.

Install VirtualBox via Ubuntu Repository

The first and easiest way is installing VirtualBox on Ubuntu by using the Ubuntu repositories. VirtualBox software is provided by Ubuntu. But the provided VirtualBox version is generally older than currently provided one. So before installing VirtualBox from the Ubuntu repositories via command-line apt command, it is a good idea to check version information about the VirtualBox package with the apt show command like below.

Show VirtualBox Package Information

Show VirtualBox Package Information

Then we can install the VirtualBox with the following command.

Install VirtualBox From Command Line with apt Command

Install VirtualBox From Command Line with apt Command

Install VirtualBox via VirtualBox Deb Package

Oracle VirtualBox also provides the deb packages of VirtualBox for Ubuntu. This deb package can be also used for distributions like Mint and Kali. The deb package can be downloaded from the following link.

https://www.virtualbox.org/wiki/Linux_Downloads

VirtualBox Ubuntu Deb Package

VirtualBox Ubuntu Deb Package

As we can see the VirtualBox deb packages are provided for different versions of the Ubuntu. In this case, we will select the Ubuntu 18.04/18.10/19.04 and download it with the wget command like below. Also, the browser can be used for download.

VirtualBox Ubuntu Deb Package

VirtualBox Ubuntu Deb Package

We will used the dpkg command in order to install downloaded virtualbox-6.0_6.0.14-133895~Ubuntu~bionic_amd64.deb deb package.

LEARN MORE  How To Install Virtualbox Into Windows?

Install VirtualBox Package with dpkg

Install VirtualBox Package with dpkg

Install VirtualBox via VirtualBox Official Repository

We can also use the official Oracle VirtualBox repositories for Ubuntu. Before installing the VirtualBox we will add the Oracle VirtualBox repository to our Ubuntu system. The first step is adding the GPG key of the Oracle VirtualBox repository to our trusted repository list. We will use the following wget command to download the GPG key and add it to the apt repository.

The second step is adding the repository information to the /etc/apt/sources.list which can be done with the add-apt-repository command like below.

Add VirtualBox Repository Information

Add VirtualBox Repository Information

We can check the sources.list file with the following command.

Check VirtualBox Repository Information

Check VirtualBox Repository Information

The last step is starting the installation with the apt install command. We will install the virtualbox package as below.

Install VirtualBox From Oracle Repository On Ubuntu

Install VirtualBox From Oracle Repository On Ubuntu

Install VirtualBox Extension Package

VirtualBox provides an extension package in order to add some features like RDP to Gues, VM Disk AES Encryption, etc. We can list this extension package information below.

We will first download the extension pack with the following command. The VirtualBox extension pack file is named as Oracle_VM_VirtualBox_Extension_Pack-6.0.0.vbox-extpack.

Download VirtualBox Extension Pack

Download VirtualBox Extension Pack

We will use the VBoxManage command in order to load or install the extension pack. This action also requires root privileges which can be provided with the sudo command.

LEARN MORE  How To Use VirtualBox , Creating Virtual Machines and Guests?

Accept VirtualBox Extension Pack License

Accept VirtualBox Extension Pack License

We have to accept the license like below. We will input Y in order to accept the license. After that the extension pack install will start the installation progress will be shown like 0%..10%..20%  etc.

Accept VirtualBox Extension Pack License

Accept VirtualBox Extension Pack License

Start VirtualBox

We can start VirtualBox in different ways. From GUI we can use the Application menu where it is stored in System category like below.

Start VirtualBox From Application Menu

Start VirtualBox From Application Menu

Alternatively, we can start the VirtualBox from the command line with the virtualbox command like below.

VirtualBox Running On Ubuntu

VirtualBox Running On Ubuntu

Uninstall/Remove VirtualBox From Ubuntu

We can uninstall the installed VirtualBox in different ways. One of the most convenient ways is using the apt command from the command line. Uninstall operation requires the root privileges so we will use the sudo.

Uninstall/Remove VirtualBox From Ubuntu

Uninstall/Remove VirtualBox From Ubuntu

Leave a Reply

Your email address will not be published. Required fields are marked *