Having a local virtual machine system is extremly beneficial to working effectively locally.
The following is a tutorial on getting Virtualbox installed and running locally on an Ubuntu workstation.
If you are using a different Operating System then Virtualbox provide documentation.
The following has been automated and is available as an Ansible role in Pajuna.
Overview
- Download the Oracle public key for apt-secure
- You should get a fingerprint the same as I do below but confirm this on the Virtualbox site
- Install the Oracle public key for apt-secure
- Install the Oracle public apt repo for Virtualbox
- Create a new file
/etc/apt/sources.list.d/download_virtualbox_org_virtualbox_debian.list
- Create a new file
- Install the Oracle Virtualbox package
- Install the package
dkmsto have the Virtualbox kernel module recompiled whenever the kernel is upgraded.
Instructions
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc
gpg --with-fingerprint oracle_vbox_2016.asc
# pub 4096R/2980AECF 2016-04-22 Oracle Corporation (VirtualBox archive signing key) <info@virtualbox.org>
# Key fingerprint = B9F8 D658 297A F3EF C18D 5CDF A2F6 83C5 2980 AECF
# sub 4096R/920E471F 2016-04-22
sudo apt-key add oracle_vbox_2016.asc
echo "deb http://download.virtualbox.org/virtualbox/debian xenial contrib" | sudo tee /etc/apt/sources.list.d/download_virtualbox_org_virtualbox_debian.list
sudo apt-get update
sudo apt-get install virtualbox-5.1
sudo apt-get install dkms
That’s it. You should now have a working Virtualbox 5.1 installed and ready for duty.
Next we get bosh-cli installed.