This will explain how to install and configure VirtualBox to run on your Crunchbang system.
There is only an open source version available, and the closed-source components have been moved to a separate, optional (but recommended) Extension Pack.
By far the easiest way to install VirtualBox (and any other software) is by using apt-get in Terminal Emulator.
sudo nano /etc/apt/sources.list
gksudo geany /etc/apt/sources.list
deb http://download.virtualbox.org/virtualbox/debian squeeze non-free ## #! Statler deb http://download.virtualbox.org/virtualbox/debian wheezy contrib non-free ## #! Waldorf
wget -q http://download.virtualbox.org/virtualbox/debian/sun_vbox.asc -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install dkms
sudo apt-get install virtualbox-4.1
That will run the installer and get VirtualBox 4.1 installed on your system. There are some additional steps to get it configured that will be later in the document. Continue here
Guest Additions are replaced by Extension Packs. Their installation is easy.
Some people do not like to have the Virtualbox GUI displayed when they work with a virtual machine. If the virtual machine is called “test1”, you can load it from terminal or via an entry in Openbox menu with this command:
virtualbox --startvm test1
When updating the Debian based system, apt-get may display an error message like:
W: GPG error: http://download.virtualbox.org wheezy InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 54422A4B98AB5139
W: There is no public key available for the following key IDs: 54422A4B98AB5139
This is a new feature of the apt-get system that guarantees the authenticity of servers for updating Debian.
Simply type the following commands, taking care to replace the number below with that of the key that was displayed in the error message:
sudo gpg --keyserver pgpkeys.mit.edu --recv-key 54422A4B98AB5139 sudo gpg -a --export 54422A4B98AB5139 | sudo apt-key add -