Quick Guide: Installing Bt3 on a VirtualBox Machine

Recently I have been playing around with the Backtrack3 penetration testing OS and decided like many a tech enthusiast being able to have it running on a vmachine is better than booting a LiveCD all the time. Below are the steps that I have taken to install it based upon those found here . I personally prefer to use Virtual Box as it is free software and hasn’t let me down yet. I take no responsibility of the actions generated as a result of the tutorial.

Step 1: Obtaining and Installing Software

  1. Just go along to the Virtual Box site http://www.virtualbox.org and download the latest version and follow their instructions to install.
  2. Go to http://www.remote-exploit.org/backtrack_download.html and download the bt3-final.iso

Step 2: Creating Virtual Machine and Loading BackTrack3

  1. First create a new Virtual Machine, you can call it what you like. The wizard from Vbox is easy to follow and quite straight forward. However care must be taken at the following points:
    • Ensure that the intended OS is Linux and Version is Linux 2.6
    • At the end of the wizard that you remember to attach the bt3-final.iso as a mounted CD image
  2. Launch the new Virtual Machine
  3. During the boot please remember to select VESA KDE mode from the options present (Vbox has some graphics issues with the others).
  4. Login with user name and password mentioned.
  5. And start KDE using startx

Step 3: Installing Backtrack3 to the harddisk

Step 3.1: Wipeout Wipein

For this installation we are going to install Bt3 on a new partition and we are going to WIPE the current virtual machine hard drive.  In the terminal presented to you when you first log in to Bt3 enter the following (with /dev/hda representing the virtual machine’s harddisk):

$ fdisk /dev/hda

Then reboot the machine using the command reboot. And remember to select VESA KDE mode on boot up and log in as normal. The next step of commands will set up the hard drive for the intallation.

$ umount /dev/hda1
$ mkfs.ext3 /dev/hda1
$ mkdir /mnt/bt3
$ mount /dev/hda1 /mnt/bt3
$ mkdir /mnt/bt3/boot

Step 3.2: Copy left, right and center
These commands will perform the actual copy of the os across:

$ cp –-preserve -R /{bin,dev,home,pentest,root,usr,etc,lib,opt,sbin,var} /mnt/bt3
$ mkdir /mnt/bt3/{mnt,proc,sys,tmp}
$ mount –-bind /dev/ /mnt/bt3/dev/
$ mount -t proc proc /mnt/bt3/proc/
$ cp /boot/vmlinuz /mnt/bt3/boot/

Step 3.2: Lilo on the Filo
This will enable the OS to boot properly:

$ chroot /mnt/bt3 /bin/bash
# nano /etc/lilo.conf

Edit the lilo.conf file to look as so:

boot = /dev/hda
vga = normal
image = /boot/vmlinuz
root = /dev/hda1
label = Backtrack3

Then we save with:
$ lilo -v 

Step 4: Shutdown and reboot

That is it simply restart the virtual machine (make sure the iso has been unmounted) and there you go. Enjoy

Future tutorials may include upgrading the base os of Backtrack3 to the latest slackware distro and or upgrading to KDE 4.2.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: