Sunday, July 19, 2009

Installing pre-backtrack 4 iso in VMware

In this tutorial we are going to install backtrack 4 Pre Final due to they have not released one & it is faster to use in VMware.

Need to Download


1) Vmware player

2) Backtrack4 pre final iso

3) Qemu ( for installing from windows)

----------------------------------------------------Step One---------------------------------------------------

Start a command prompt and cd to the installation directory of QEMU, for example:

cd C:\Program Files\Qemu

and create a VMware disk file as follows:

C:\Program Files\Qemu>qemu-img.exe create -f vmdk Backtrack 4 Pre Final.vmdk 2G
Formating 'Backtrack 4 Pre Final', fmt=vmdk, size=2097152 kB

If you copy paste the above line into the command prompt (cmd.exe), do not include the prompt (the text before qemu-img.exe). If you do, you get the following error: 'C:\Program' is not recognized as an internal or external command, operable program or batch file.

A file "Backtrack 4 Pre Final.vmdk" with a maximum disk size of 2G (the actual file is much smaller; about 320 KB) has been created. You might want to move this file to a different folder.

Now, create an empty text file, and rename it to "Backtrack 4 Pre Final.vmx" (use the same name as in the previous step, but use vmx as the extension instead). Open the file in an editor and enter the following values:

.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "7"
scsi0.present = "TRUE"
memsize = "512"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "Backtrack 4 Pre Final.vmdk"
ide1:0.present = "TRUE"
ide1:0.fileName = "/dev/scd0"
ide1:0.deviceType = "cdrom-raw"
ethernet0.present = "TRUE"
ethernet0.connectionType = "nat"
ethernet0.wakeOnPcktRcv = "FALSE"
usb.present = "TRUE"
ehci.present = "TRUE"
sound.present = "TRUE"
sound.fileName = "-1"
sound.autodetect = "TRUE"
mks.enable3d = "TRUE"
pciBridge0.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
vmci0.present = "TRUE"
buslogic.noDriver = "FALSE"
roamingVM.exitBehavior = "go"
displayName = "Backtrack 4 Pre Final"
guestOS = "winxppro"
nvram = "Backtrack 4 Pre Final.nvram"
virtualHW.productCompatibility = "hosted"
ft.secondary0.enabled = "TRUE"
easyInstall.keepFloppy = "TRUE"
tools.upgrade.policy = "useGlobal"

extendedConfigFile = "Backtrack 4 Pre Final.vmxf"

ethernet0.addressType = "generated"
uuid.location = "56 4d 4c a0 66 07 65 10-ce f8 54 ad 27 78 cd d0"
uuid.bios = "56 4d 4c a0 66 07 65 10-ce f8 54 ad 27 78 cd d0"
scsi0:0.redo = ""
vmotion.checkpointFBSize = "134217728"
pciBridge0.pciSlotNumber = "17"
pciBridge4.pciSlotNumber = "21"
pciBridge5.pciSlotNumber = "22"
pciBridge6.pciSlotNumber = "23"
pciBridge7.pciSlotNumber = "24"
scsi0.pciSlotNumber = "16"
usb.pciSlotNumber = "32"
ethernet0.pciSlotNumber = "33"
sound.pciSlotNumber = "34"
ehci.pciSlotNumber = "35"
vmci0.pciSlotNumber = "36"
ethernet0.generatedAddress = "00:0c:29:78:cd:d0"
ethernet0.generatedAddressOffset = "0"
vmci0.id = "662228432"

--------------------------------------------------------Step Two-----------------------------------------------------

Now you have Backtrack running in vmware you need to install you can do this by dragging & dropping the install.sh file
into you terminal then you will get a error about fonts just click continue then go on with the installation.

When you have completed the installation it will ask you to reboot.

Once the machine has rebooted enter the username & password that you created & do not type startx we have to make some fixes
so you can login as root....

So you have entered your username & password we have to next type "sudo su" it will then ask you for your password
enter the password that you login with then it will ask you for a new password set that as "toor"

now all we have left to do is repair the boot splash screen we can do this by typing in "sudo fix-splash" it will ask you if you would like to over wright
enter "y" to confirm you would like to over wright it

then type in reboot to restart the computer

now you can login with root & toor as username & password

-------------------------------------------Best of Luck---------------------------------------------------------------

5 comments:

Vinoth said...

I never knew about Qemu. Thanks for sharing !!!

Vamsi said...

Hi,

I am encountering the below error
Error while opening the virtual machine: File "C:\VMWareBacktrackVirtual\Backtrack 4 Pre Final.vmx" line 2: Value "\x938\x94" for variable "config.version" is not valid in encoding "UTF-8".

Can you please let me know how to resolve this?

jaiminbhagat said...

@vamsi
some problem coz me used different font...
when you make a text file...
compare text with my text ...
you will find some text not proper then edit it..!!

Liam said...

Hi I'm getting the following error. Any ideas? Thanks.
Error while opening the virtual machine: File "\Backtrack 4 Pre Final.vmdk" line 1: Syntax error.

luis said...

The errors are the double commas, replace them all.