For fun (and obvious reasons for being able to take snapshots) I wanted to run virtualbox on my Backtrack 5 R3 64bit Gnome setup. I did the standard looking for it by doing – sudo apt-get update; sudo apt-get install virtualbox-4.0 and getting an error was kind of what I thought would get.
Google being my friend (or Bing if you like that) I came across a post and quick video –
http://netsecuritystuff.wordpress.com/2011/05/23/virtualbox-on-backtrack-5/
and a video here –
http://www.youtube.com/watch?v=en7O-LLrmxc
Both of which are essentially telling you to do the same thing (one with just CLI from the webpage) and the other by navigation via the video and Command Line Interface. So whichever method you prefer; CLI worked for me.
*PLEASE NOTE* This instruction set is for educational purposes only. If you follow these instructions and something bad happens to your computer you will need to contact your support staff / warranty center for support. There is no written guarantee or warranty implied or inferred with this instruction set. Use at your own risk.
The netsecurity link advises to update kernel headers
# prepare-kernel-sources
# cd /usr/src/linux
# cp -rf include/generated/*include/linux *Note this step did not work for me*
Then edit your /etc/apt/sources.list file to include the debian luicid non-free list
Via Command line –
# echo deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free >> /etc/apt/sources.list
or navigate via the folders and edit the file directly and paste – deb http://download.virtualbox.org/virtualbox/debian lucid contrib non-free
# wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add –
Do an update
#apt-get update
search for virtualbox within your repository
#apt-cache search virtualbox *this was handy to see if what I was doing was working right*
#apt-get install virtualbox-4.0
*Note* once I installed 4.0 it said there was a new version available and well just wanting to run / test it out seems to work fine. I am running Virtualbox 4.0 on my Backtrack 5 R3 Gnome version with 64bit without an issue. However I could have installed the newer version of virtualbox-4.2 just to be more up to date.. but I didnt want to 🙂
100% of the credit goes out to the author at –
http://netsecuritystuff.wordpress.com/2011/05/23/virtualbox-on-backtrack-5/
and the video is nice if you want to see what you should do but I was able to do the instructions via the command line with no issues.
Enjoy
and as Armitage says – Happy hunting!
🙂
Kevin