First you need to add the repository to your system. Copy and paste the following to a terminal window:
VirtualBox for Bionic does not support i386 so add this repository:
sudo bash -c 'echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" > /etc/apt/sources.list.d/virtualbox.list'
For 17.10 and older add this one:
sudo bash -c 'echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -cs) contrib" > /etc/apt/sources.list.d/virtualbox.list'
Then you just step through the rest from https://www.virtualbox.org/wiki/Linux_Downloads; or I put the steps below.
You can just copy and paste each of these steps to finish your install of VirtualBox
on your system:
Add the key:
Ubuntu 14.04:
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
Ubuntu 16.04 and newer (18.04 included):
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
Then do your update and install:
sudo apt-get update
Update: Now it is Virtualbox 5.2
sudo apt-get install virtualbox-5.2
VirtualBox 6.0 is also available
sudo apt-get install virtualbox-6.0
Last, install your kernel driver for VirtualBox
:
sudo apt-get install dkms
If this is a new installation, run the following to add vboxusers group to your username:
sudo usermod -a -G vboxusers $USER
Then log out and back in for changes to take effect.
Then after it is all installed, it is recommended to install the VirtualBox Extension Pack from here.
Hope this helps!
Best Answer
To re-enable the Toolbar right-click on the bottom line, then select and tick the Show Toolbar entry on the pop-up menu:
When running Unity desktop the only way to restore them is to manually edit the
VirtualBox.xml
file located in~/.config/VirtualBox
or~/.VirtualBox
.Search for the following lines
to replace
"false"
with"true"
.Please make a backup of this file before you edit it, as all informations on your VMs are stored there as well. No instance of Virtual Box or VirtualBoxManager must run on editing this file because it will be overwritten otherwise.