Skip to content

Virtual box 6.0 in Mint 19

Installation

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

According to Virtual box documentation format is

deb https://download.virtualbox.org/virtualbox/debian <mydist> contrib

Check repositories version list.

For Mint 19 you need extra configuration, like this:

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

EOF

Then download Oracle public key:

mkdir -p ~/install/virtualbox &&
cd ~/install/virtualbox/ &&
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox_2016.asc

Then ensure Key is valid:

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

According to (https://www.virtualbox.org/wiki/Linux_Downloads) result should be:

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

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

Be sure to not have any virtualbox machine running.

sudo apt update && sudo apt install -y virtualbox-6.0

Configuration

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:

"VM1_NAME" {VM1_ID}
"VM2_NAME" {VM2_ID}

Start VM

vboxheadless --startvm "ID"

Show VM interface

rdesktop-vrdp VM_HOST_IP:3389