

Replace user_name with the username of your Linux account.Īny user who wants to run VirtualBox on Ubuntu must be a member of the vboxusers group. apt-cache search virtualboxĪlso add your user account to the vboxusers Linux group: sudo usermod -a -G vboxusers user_name Before installing, you can run apt-cache search command to find out what is the latest version available from the apt repository. VirtualBox 5.2 is the latest stable version. Update the source list and install VirtualBox: sudo apt-get update Then, add the following line to your sources.list file if you are using Ubuntu 18.04 LTS: deb bionic contribįor Ubuntu 16.04, Add the following line: deb xenial contribĭownload and install apt key: wget -q -O- | sudo apt-key add. From the Ubuntu terminal you could type: sudo gedit /etc/apt/sources.list The first step is to add the VirtualBox apt repository, open the /etc/apt/sources.list file from a text editor. This VirtualBox installation guide is compatible with both Ubuntu 18.04 LTS and the previous LTS version Ubuntu 16.04. To install VirtualBox we will use VirtualBox Ubuntu apt repository as described in the below steps.

In the following section, we are going to show you how to install VirtualBox on Ubuntu 18.04/16.04, So you can set up complete virtual lab environment on your Ubuntu Desktop/Server.

Unlike VMware Workstation Pro, VirtualBox is a free, open source, cross-platform virtualization software package. Oracle VM VirtualBox is a popular Type 2 hypervisor available for Windows, Mac, Linux, and Solaris.
