Installing VirtualBox 4.2 on Linux Mint 14

A another quick post on something in Linux Mint 14. I tried to install VirtualBox via Software Manager, but for whatever reason it wouldn’t install it all the way, or I couldn’t figure out what the heck it did, so I did it the long way around.

1. Head over to https://www.virtualbox.org/wiki/Linux_Downloads and download the file for “Ubuntu 12.10 (“Quantal Quetzal”)” and choose whichever one for your architecture, I have 64bit installed, so AMD64.
2. Then go to the main download page at https://www.virtualbox.org/wiki/Downloads and download the “VirtualBox 4.2.6 Oracle VM VirtualBox Extension Pack”
3. Now we need to install DKMS so that the kernel modules for VirtualBox will install correctly and last through upgrades:
sudo apt-get install dkms
4. Next, install virtualbox itself. Change directories over to where you downloaded it previously.
sudo dpkg -i virtualbox-4.2_4.2.6-82870~Ubuntu~quantal_amd64.deb
5. Add your user to the newly created “vboxusers” group.
sudo usermod -a -G vboxusers mikerm
6. Optional, Add VirualBox to your menu, the command is simply “virtualbox”. You can also just run it from console.
7. In VirtualBox once you have launched it, add the extension pack by going to File, Preferences, Extensions and browsing to where you downloaded it earlier.
8. Reboot! I know it’s weird, but in order for it to work correctly, you have to reboot the host machine.