VM 1 - Install VirtualBox / VMware on Ubuntu Desktop

By Sheldon L Published at 2019-09-14 Updated at 2020-05-08


VirtualBox

wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -

# 20.04
echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian eoan contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
# 18.04 ~ 19.10
echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list

sudo apt update
sudo apt install linux-headers-$(uname -r) dkms
sudo apt-get install virtualbox-6.1

# Extension
cd ~/Downloads
wget https://download.virtualbox.org/virtualbox/6.1.6/Oracle_VM_VirtualBox_Extension_Pack-6.1.6.vbox-extpack
# Double click to install

VMware

cd ~/Downloads
sudo chmod u+x VMware-Player*
sudo ./VMware-Player*

# for sudo
sudo vmplayer

Uninstall

vmware-installer -l
sudo vmware-installer --uninstall-product vmware-player