Backtrack 4 Final Installation in VMware with VMware tools

With the release of Backtrack 4 final a few days ago I decided to make a post on installing backtrack in VMware. There are many ways to run backtrack including a hard disk install, a USB boot install and of course as a live cd. My preferred method is with VMware so I decided to document my steps in case there is any one who would like to install in this way.

I will be covering a few things in this article:

  • Creating a proper Virtual Machine for Backtrack
  • Installing Backtrack to harddisk inside the Virtual Machine
  • Getting up and running with Backtrack and a few first steps
  • Install VMware tools in Backtrack

Tools I am using in this article:

  • Windows 7 as a host
  • VMware 7 workstation

This method should work on any version of VMware and on any platform. I installed in the exact same way on a Gentoo host with VMware server so I know its close if not the same.

Creating the Virtual Machine:

When you open up VMware you will be presented with the initial screen.

What we want to do is create a new virtual machine:

1-14-2010-8-33-04-AM

The next screen will ask us if we want to use the typical or advanced install:

1-14-2010-8-33-04-AM

For the sake of this article we are going to use the typical install method so go ahead a select that option

The next screen is going to ask us where the media is we want to install:

Backtrack comes in a .iso format so we can point VMware directly at the .iso file with out ever burning it to a disc. If you have already burned it to a disc simply point this screen at you r disc drive. If the .iso is on the host computer tou can just browse to its location.

1-14-2010-8-35-32-AM

Next we want to tell VMware which operating system we are installing in order to achieve the best default settings:

Since Backtrack is loosely based off of Ubuntu 8.10 Intrepid  we will use the “Linux” and “Ubuntu” selection. Make sure you do not select the 64 bit choice since Backtrack is currently only 32 bit.

1-14-2010-8-35-59-AM

Next we are going to want to give our Virtual machine a name:

I am pretty boring and always have lots of Virtual Machines going at once so I just name it the exact name and build of the distro. You can name it whatever you want of course. It will also ask you for the location you want to store the virtual machine. I generally leave this as the default folder VMware created when you installed it.

1-14-2010-8-36-29-AM

The next question is the size of the disk you want to make:

The absolute minimum for Backtrack is 5 gigs.  I would highly encourage you to multiply that by four at the very least. I can not tell you how many times I have run out of disc space in a virtual machine because I forgot I would be importing five and ten gig word lists.  I have choosen 30 gigs for my install but like I said its up to you. I also do not choose to split it into two gig files but once again you may prefer this method.

1-14-2010-8-35-59-AM

Okay so we are almost done getting our VM base going.

After selecting the disc space you will be presented with the summary screen:

This is a summary of all out options we have selected. You can at this point still change things.

1-14-2010-8-38-01-AM

Now there are two last things to change. Lets click on the advanced tab and configure a few things:

1-14-2010-8-38-49-AM

The first is memory:

Once again this is personal preference. I use backtrack pretty heavily everyday so I choose to give it two gigs of ram.  One gig would be fine as well since the GUI installer we will be using creates a swap space for us.

After selecting  that we need to set network adapter:

This is another personal preference however I like my Virtual machines to be on the same private subnet as my host is. For example if my NAT address is a 192.168.1.0/24 address I like my VM’s to share the same addressing scheme. In order to do this we need to select bridged in the network adapters section.

1-14-2010-8-39-14-AM

Great so the machine is all set. Now lets get on with the installation.

Installing Backtrack:

The installation of Backtrack is fairly straight forward however we will go through it anyway just to be sure we cover all the bases. Once we are are done with building our virtual machine we want to power it on. If its successful we will be presented with the boot screen of backtrack.

1-14-2010-8-39-50-AM

Select the first option on the boot screen which is the default 1024 x 768 option. Once the system gets booted up you will be presented with a shell prompt. In order to get our graphical desktop going we are going to want to type “startx”.

1-14-2010-8-41-24-AM

At this point we are looking at the KDE desktop. If you notice on the upper left hand corner of the screen there is a icon which says install. We are going to double click on this icon in order to start the GUI installer.

1-14-2010-8-41-56-AM

Most of the GUI installer has been automated by the work of the Backtrack developers so there are only a few steps to make.

The first is to choose your time zone:

1-14-2010-8-42-37-AM

Next we need to choose our keyboard layout:

1-14-2010-8-42-59-AM

Next we see the partition editor:

1-14-2010-8-43-23-AM

I am not going to go into how to partition your drive manually since that would be a whole new article. In a situation like this where we have a virtual machine, it is fine to accept the default partition scheme and use the entire disk.

Ready to install:

1-14-2010-8-44-04-AM

I would like to make one side note here. If you are  familiar with Ubuntu at all you will notice that some steps are missing from the installer. You may also notice that in the bottom left corner it jumped from step four to step seven. Do not worry. This is the way we designed the installer. One of the main reasons is that Backtrack is designed to be run as root and not a regular user. You are of course free to add users and whatever else you like however due to various reason that was built out of the installer.

Press install and let it go:

1-14-2010-8-44-22-AM

The big finish:

1-14-2010-8-56-59-AM

The installer can take any where from ten minutes to forty  minutes depending on the speed of your machine so feel free to go out and grab a cup of coffee. Once its finished go ahead and select restart and lets boot into our brand new shiny Backtrack 4 install.

Getting up and running with backtrack – First steps

The most common question:

The one question we are always asked is what is the log in. As I said earlier we use the root acount by default so the log in name is root. The default password is simply root backwards so its toor.

1-14-2010-8-58-38-AM

Next most common question:

How do I get on the internet? By default Backtrack is designed to start up in a “stealth” mode. For this reason there are no interfaces started at boot. This is anoying for many people so I will show you how to change that. There are two ways to bring your interface up.

If you only want to start one interface:

1-14-2010-11-19-51-AM

For this method we are only going to start the eth0 interface so we just bring it up and issue the dhclient script to get a addresss from our dhcp server.

I’m lazy and I just want to start them all:

1-14-2010-11-20-55-AM

There is a init.d script which tried to start all the interfaces defined in /etc/network/interfaces. You can add or remove them in that file based on your hardware.  SO invoking this script will try to start and get address’s for five or six different interfaces.

I need a static IP:

1-14-2010-11-29-23-AM

In the /etc/networking/interfaces file you can also add you static ip information as I have shown. Do not forget to also add a nameserver to /etc/resolv.conf.

1-14-2010-11-30-18-AM

I am really lazy and I just want to start all my interfaces at boot:

1-14-2010-11-21-30-AM

Adding something to the boot process is fairly easy in Backtrack. We simply add it to the default run level with the command update-rc.d as shown in the picture.

How do I start ssh:

You have to generate the keys in backtrack in order to start the ssh daemon.

1-14-2010-11-22-07-AM

After you do that you can start ssh like normal from its init.d script.

1-14-2010-11-23-04-AM

And you can also start ssh at boot in the same way we started networking with update-rc.d

1-14-2010-11-22-38-AM

I want to change my hostname to something worthy of a hacker:

1-14-2010-11-57-10-AM

The file that contains the hostname is called /etc/hostname. Just change this to whatever cool name you think you deserve to be called. The host name will change on reboot but if you cannot wait you can simply restart the init.d script for the hostname. the command is /etc/init.d/hostname start. Once you close the cuurent shell and open a new one you can see your new hostname.

1-14-2010-11-58-00-AM

Installing VMware tools

I get asked about this more frequently than anything else so hopefully this will clear up the install of VMware tools. VMware tool greatly enhances the graphics and mouse control in a virtual machine. It also allows shared folders with the host and copy & paste with paid versions of VMware workstation. VMware server is free however it lacks a few of the features.

Select install vmware tools from the menu:

1-14-2010-11-34-19-AM

Open up the Konqueror file manager icon which is on the tool bar on the bottom left had corner:

1-14-2010-11-46-04-AM

Select Storage Media:

1-14-2010-11-46-34-AM

If the page opens up blank thats ok. Either hit the green refresh icon on the tool bar or hit f5. I have never figured out this behavior however its really no big deal. You should be looking at the VMware tools CD icon. Double click on that and you will see the vmwaretools.tar.gz file.

Copy the archive to your desktop:

1-14-2010-11-48-25-AM

Once we get the archive on or desktop we can work with it.

Open a terminal and un tar the archive:

1-14-2010-11-49-59-AM

Change directories into the VMware tools file and run the .pl install script:

1-14-2010-11-52-19-AM

I choose all the defaults for the sake of simplicity. For my purposes all the default selections are fine. If you know what you are doing feel free to look at every question and decide on the best choice for your system. Once it gets done running you will be presented with a screen like this which means the install is complete.

1-14-2010-11-55-02-AM

Clean up:

1-14-2010-11-55-45-AM

At this point you can safely delete the VMware folder and archive from you system and be finished with the install. Now you can kick back and enjoy the best security distribution around.


List Price: $39.99 USD
New From: $8.79 USD In Stock
Used from: $0.01 USD In Stock


List Price: $50.00 USD
New From: $15.10 USD In Stock
Used from: $8.46 USD In Stock

Share