Skip to content

Virtual box 5.2

Virtualbox 5.2 is now deprecated.


Create /etc/apt/sources.list.d/virtualbox.list to add VirtualBox repository.

According to Virtual box documentation format is

deb <mydist> contrib

Check repositories version list.

For Mint 18 you need to do:

cat <<EOF | sudo tee /etc/apt/sources.list.d/virtualbox.list
### LinuxMint 18 ###
deb xenial contrib


For Mint 19 you need to do:

cat <<EOF | sudo tee /etc/apt/sources.list.d/virtualbox.list
### LinuxMint 19 (there is no i386 support) ###
deb [arch=amd64] bionic contrib


Then download Oracle public key:

mkdir -p ~/install/virtualbox &&
cd ~/install/virtualbox/ &&
wget -q

Then ensure Key is valid:

gpg --with-fingerprint ./oracle_vbox_2016.asc
cd -

According to ( result should be:

B9F8 D658 297A F3EF C18D  5CDF A2F6 83C5 2980 AECF
Oracle Corporation (VirtualBox archive signing key) <>

If everything is okay then you can add this key to your local thrust store.

sudo apt-key add ~/install/virtualbox/oracle_vbox_2016.asc

Then you can install virtualbox

sudo apt-get update && sudo apt-get install -y virtualbox-5.2


Configure access rights

Add yourself (and any user that should be able to use VirtualBox) to vboxusers group.

sudo adduser "${USER}" vboxusers

Using VirtualBox through SSH

Display VMS IDs

vboxmanage list vms

Result look like:


Start VM

vboxheadless --startvm "ID"

Show VM interface

rdesktop-vrdp VM_HOST_IP:3389