In this article, We will see how to install Kali Linux 1.0.6 in Virtual Box.
VirtualBox is an open source general-purpose full virtualizer for x86 hardware, targeted at server, desktop and embedded use.
Kali Linux is a Debian-derived Linux distribution designed for digital forensics and penetration testing . It is maintained and funded by Offensive Security Ltd. n March 2013, the Offensive Security team rebuilt BackTrack around the Debian distribution and released it under the name Kali Linux.BackTrack is their previous forensics Linux distribution.
Kali Linux is preinstalled with numerous penetration-testing programs, including nmap (a port scanner), Wireshark (a packet analyzer), John the Ripper (a password cracker), and Aircrack-ng (a software suite for penetration-testing wireless LANs). Users may run Kali Linux from a hard disk, live CD, or live USB. It is a supported platform of the Metasploit Project’s Metasploit Framework, a tool for developing and executing security exploits.
It is distributed in 32-bitand 64-bit images for use on hosts based on the x86 instruction set.
As Kali Linux is a Linux based software,It can’t be installed on Windows in a usual way of installation.So we have to install it in Virtual Box.
Download VirtualBox here.
Download it and install it.
Downloading Kali Linux 1.0.6
After installation of VirtualBox.
Now we have to download and install Kali Linux 1.0.6.
Download Kali Linux 1.0.6 here.
Download it as per you system type. I am going to download torrent,as it is fast download.
Now let’s go on with installation part.
STEPS FOR INSTALLATION
Creating a New Virtual Machine
1.After you complete your VirtualBox installation,open it.Click on new to create a new virtual Machine on your computer.
2.Name it as “Kali Linux 1.0.6” or any name which you prefer.The default OS type Microsoft Windows was auto changed to Linux as you insert the name.If you are installing 64 bit version of Kali Linux,Change version to Linux 2.6/3.x (64 bit) Click Next.
3.Select the memory size to be allotted to your virtual machine.The default is 256 Mb. You can give a size of your preference.Mostly I would like to give it half memory to make it run fast and smoothly,but it will slow down my windows gradually.If you have 8 -12 RAM,do not hesitate to allot the size.Give a size of 4 GB.
But due to less memory I will give only 512 Mb as it run well on my PC.
After you select your memory,Click Next.
4.Moving on to the next screen,Create a new virtual hard drive or use existing Virtual hard drive.Then click create button.
5.Now you need to select a hard drive file type. You can select VDI,VMDK, VHD or HDD.I recommend to keep it default to VDI. Click next.
6.Next is “Storage of physical drive”.
- If you create a fixed-size image, an image file will be created on your host system which has roughly the same size as the virtual disk’s capacity. So, for a 10G disk, you will have a 10Gb file. Note that the creation of a fixed-size image can take a long time depending on the size of the image and the right performance of your hard disk.
- For more flexible storage management, use a dynamically allocated image. This will initially be very small and not occupy any space for unused virtual disk sectors, but will grow every time a disk sector is written to for the first time, until the drive reaches the maximum capacity chosen when the drive was created.
You can Create a Fixed size image but sometimes it may corrupt as the size is kept for the image .So I recommend you to create dynamically allocated image.
7.From “File Location and size”,Select where you want to install this Kali Linux or can change the name too. As the default size is 8 Gb (Picture in step 4-“The recommended size of the Hard drive is 8 Gb”)Set the virtual machine drive size to 15 GB.If you have a Hard drive with big size,increase the size if you want and click create. It will create virtual machine.
Virtual Machine is now created
Installation of Kali Linux 1.0.6
Let’s install Kali Linux
1.Now click on setting or right click on the newly created virtual machine “Kali Linux 1.0.6” or whatever you have named it.
2.Click in System tab then Processor and tick Enable PAE/NX
(System>>Processor>> Enable PAE/NX)
PAE gives 32-bit processors the ability to use more than 4 GB of physical memory on capable versions of Windows, and is a prerequisite for NX.
NX helps your processor guard the PC from attacks by malicious software.
3.Now again from setting window navigate to storage tab >>Controller:IDE and then browse for the Kali Linux ISO File as shown in the Picture Below.The location and the name of the ISo file will be displayed . Click OK.
4.Now from the main window double click over the virtual machine “Kali Linux 1.0.6(you Virtual Machine Name)” or right click and start or select start button from the toolbar.
Select “Install” or “Graphical Install” as it makes no difference.Press Enter.
5.Select the language which you are comfortable with and click continue.
6.Select your location and Click continue.
7.Select your keyboard layout and click continue.
8.The ISO will be mounted and additional components will be installed.
9.Enter the hostname for your system.It’s better to leave it with the default name “kali” and click continue.
10.Enter the domain name if you have any.Leave it blank if you are not using any domain.
11.The default user Id is”root”. So just enter a password for it.We will need this user Id and password in step 25.
12.Select “Guided-entire disk for installation”.
13.It is the default virtual hard drive which we had created earlier.
14.We really don’t need to separate our Partition since this is a virtual machine.In Partition disk option select “All files in one partition” as it is recommended for new users.If you are an advanced user try other options. and click continue
15.Select “Finish partitioning and write changes to disk” and click continue.
16.Confirm the changes and select”yes” and click continue.
17.Installation will start now, it will take 5-10 minutes to install.
18.Ok,Once you get the files copied over.It’s going to ask you if you want to use a network mirror to download the newer latest updates,packages.I would recommend you to say yes,else select No and click continue.
19.System will configure the packages.
20.Moving on to the next screen,it will ask you to install Grub boot loader.I am gonna do yes since we are running a virtual hard drive. Else select No and click Continue.
21.You will get “Installation Complete” screen.Click continue.
22.Once the installation is finished,system will restart itself.Don’t hit anything your virtual machine will now boot from the image that we just installed.
23.Ok ,Great.So once you got to this point,you are officially there.Now we successfully installed the Kali Linux 1.0.6 distro.
Click the Other button.
24.The Username is root. Press Enter.
25.Enter the password that you created while installation in step 11.
26.Yes you are there
Unfortunately,the problem with Kali,which it doesn’t support yet,is the ability to resize the screen.The Resolution of the virtual machine stays the same.And we are going to fix it by Installing Guest Additions.
27.If you know how to add guest addition,well and good.
But before installing reboot your Kali Linux. Buy clicking root icon on the top right corner and selecting Shut-down.
28.Create a snapshot once you are out of Kali.
With snapshots, you can save a particular state of a virtual machine for later use. At any later time, you can revert to that state, even though you may have changed the VM considerably since then.
Click on Snapshot>>Take Snapshot>Add Name(Anything you like)>>Add Description>>Ok
Installing Guest Additions
29.Reboot Kali Linux Before we install Guest Additions we need to install Linux Headers.Open the terminal window first.
30.We are going to go ahead and update the packages and headers.
root@kali:~# apt-get update && apt-get install -y linux-headers-$(uname -r)
31.All the packages and Headers will be installed.
32.Once we go through that install process,Now we going to actually insert our Guest Additions.
Go to Devices>>Insert Guest Additions CD Image.
33.A dialog box will appear just click cancel. You can see that the file/disk is successfully mounted.
34.Now we have to copy this disk from the CDrom.So just type this command in terminal window . Press Enter
root@kali:~#cp media/cdrom/VBoxLinuxAdditions.run /tmp/
root@kali:~# cd /tmp/
root@kali:/tmp# chmod 755 VBoxLinuxAdditions.run
It goes ahead Builds the modules and it will install it.
Now once our guest additions are install we will have to restart our virtual Machine.
35:Type ‘reboot‘ in command and hit enter the VM will restart itself.
Once you reboot it,The window will fit with the screen or it will change to the size you desire.
Compare the second picture in step 27 with this picture below.See the Difference.
Great We are done!!
Now just one last thing we have to do.Create a Snapshot
36.Shut Down your virtual Machine as shown in step 27.And Create a Snapshot as explained in step 28
Awesome!!Its Done. That wraps ups this installation tutorial.Now you can start your Kali Linux. Kali is a really best Linux Distribution so do the best use of it but only for educational purpose.
Hope you liked my tutorial and I am looking forward to post more such tutorial for you.
If you get stuck somewhere,Please Let me Know.I am always there for you,as the name suggest 😉
Till then have a good time with Kali Linux.
Comment will be appreciated 🙂