How To install Kali Linux on VirtualBox or pc Duel boot step by step Guide
You need to download the latest version of Kali Linux ISO from here.
You can also download from CDImage Page here:
I would personally suggest downloading using TORRENT and it seems more stable and less chance of data corruption.
In this guide I will outline very detailed step by step instructions on installing Kali Linux on VirtualBox where Windows 7 is the HOST operating system.
In this guide, I will cover the followings:
Once you’ve installed VirtualBox,
Step 1.b: Allocate Memory/RAM
Default memory size is 256 MB.
Change it to 1024 (1GB).
Step 2: Create a Virtual Hard Drive
In this screen select “Create a virtual hard drive now” – 2nd option and click Create.
Step 2.a: Select Virtual Drive File type
On the next screen select “VDI” – VirtualBox Disk Image as your Hard Drive File Type. Click Next.
I will explain soon why we’ve chosen this.
Change the Virtual Hard Drive size to 20.00 GB and Click Create.
Here’s the best part.. on step 2.b we’ve selected Dynamicallt Allocated for our Storage on Physical hard drives. That means, you’re not wasting 20.00 GB disk space straight way. Usual Kali Installation install just below 5.00 GB. In this way, you will use only that much space, but your Virtual Hard Disk can increase up to 20.00 GB if you put more and more stuffs in there. An example is to downloading big dictionary files to crack WiFi passwords using Pyrit
So, yes, give it some space, it also helps avoiding some pesky installation errors.
Select Kali Linux 1.0.6 (I got many), you might have just one and click on Settings icon
Step 3.a: Select type of OS
Depending on which ISO you downloaded you should select the correct Version here.
As Kali Linux is derived from Debian, I’ve selected Debian (64-bit) on General > Basic > Version. If you’re using a 32-bit ISO, select Debian (32-bit) as your version.
The calculations are as follows:
1.00 GB = 1024MB
2.00 GB = 2048MB
3.00 GB = 3072MB
You get the idea, just multiply 1024 with the amount of Memory / RaM you want and put the value in here.
Step 3.d: Select number of Processors and enable PAE/NX
I’ve changed Processor to 2 (I got 8 CPU’s in my machine, this screen will show how many you got). Try sticking with EVEN numbers here.
Check the box for “Enable PAE/NX”.
Step 3.e: Allocate Video memory and 3D acceleration
Select Display > Video and set Video Memory to 128MB. This allows you have a good responsive desktop environment.
Also check the box for “Enable 3D Acceleration”.
If you got more than 1 Monitor, you can change your settings here too.
Once you select your downloaded ISO (in my case, it’s kali-linux-1.0.6-amd64.iso). See the properties and information’s changes accordingly.
Important thing to note: Size… if your disk size mismatched, you might have a corrupt disk. Refer to Kali download page and CDimage page for size related info. You can also do a SHA1 check to ensure your disk is not corrupted. More info here.
Step 4.a: Select Network connection type
If your computer is connection to internet, select NAT on Network > Adapter 1. You can enable more network adapters if you feel like to play around.
You need to PRESS OK and save your Settings first.
Close VirtualBox and then install VirtualBox 4.3.10 Oracle VM VirtualBox Extension Pack for All supported platforms.
It will enable virtual USB 2.0 (EHCI) device support, VirtualBox Remote Desktop Protocol (VRDP) support, Host webcam passthrough support.
Re-Open VirtualBox and Select Settings > USB again to confirm you don’t have that error anymore. Save your settings by pressing OK.
Step 5.c: Select location
In my case I’ve chosen Australia. Click Continue.
For the sake of this guide, I will choose the most basic Partitioning method.
You might want to play around in this screen if you feel like. This is a good thing to learn as in corporate environment, you select disk scheme manually.
I will advise you to read Redhat’s Recommended Partitioning Scheme for a better understanding.
Note that how the partitioning is done. Click Continue when you’re satisfied.
Finally, on the next screen, highlight “Yes” and click Continue to write changes to disks.
Your installation will start now. On my PC which got a 5400 RPM Hard disk, it takes about 8 mins.
On this screen select Yes if you want to update, select No, if you want to do it later. I suggest updating as Kali Linux updated a lot of packages since Kali Linux 10.0.6 was released. This might take sometime, but it’s better this way. Note that it might take anytime between 1-2 hours.
You can always update Kali installation later on. Click Continue when ready.
Type in the password you’ve selected on step 5.g. Click Log In when ready.
You need to download the latest version of Kali Linux ISO from here.
You can also download from CDImage Page here:
I would personally suggest downloading using TORRENT and it seems more stable and less chance of data corruption.
In this guide I will outline very detailed step by step instructions on installing Kali Linux on VirtualBox where Windows 7 is the HOST operating system.
In this guide, I will cover the followings:
- Create a new Virtual Machine
- Create a new Virtual disk (VDI, dynamic allocation etc.)
- Modifying some VirtualBox settings (allocating physical and Video memory, selecting OS Type, CPU acceleration etc.)
- Loading Kali ISO
- Booting Kali ISO (initial info, location, timezone etc.)
- Kali disk partitioning (you should try other ways than I’ve showed here to learn)
- Finalizing instllation and running Kali on VirtualBox.
- Install Virtualbox Guest Additions packages
Step 1: Create a new Virtual Machine
I’ve already given instructions and provided links on how to get VirtualBox and install that above. If you’ve missed it, go back and install VirtualBox.Once you’ve installed VirtualBox,
- Open it.
- Click on New to create a New Virtual Machine.
Step 1.a: Enter a name for you VBox
Enter Kali Linux 1.0.6 as the name. You’ll see Type is set to Linux automagically and version will be Linux 2.3/3.x. We will fix those later. Click Next.Step 1.b: Allocate Memory/RAM
Default memory size is 256 MB.
Change it to 1024 (1GB).
Step 2: Create a Virtual Hard Drive
In this screen select “Create a virtual hard drive now” – 2nd option and click Create.
Step 2.a: Select Virtual Drive File type
On the next screen select “VDI” – VirtualBox Disk Image as your Hard Drive File Type. Click Next.
Step 2.b: Select Physical hard drive allocation type
Select Dynamically Allocated and click Next on Storage on Physical hard drive screen.I will explain soon why we’ve chosen this.
Step 2.c: Allocate disk size
On “File location and size” screen, it will come up as 8.00 GB as default size and Kali Linux 1.0.6 as the name (which we’ve set on step 1.a).Change the Virtual Hard Drive size to 20.00 GB and Click Create.
Here’s the best part.. on step 2.b we’ve selected Dynamicallt Allocated for our Storage on Physical hard drives. That means, you’re not wasting 20.00 GB disk space straight way. Usual Kali Installation install just below 5.00 GB. In this way, you will use only that much space, but your Virtual Hard Disk can increase up to 20.00 GB if you put more and more stuffs in there. An example is to downloading big dictionary files to crack WiFi passwords using Pyrit
So, yes, give it some space, it also helps avoiding some pesky installation errors.
Step 3: Modify VirtualBox settings
So far, we’ve done the followings, checklist for you:- Created a New Virtual Machine
- Created Virtual Hard disk
- Fiddled with disk properties, type and size.
Select Kali Linux 1.0.6 (I got many), you might have just one and click on Settings icon
Step 3.a: Select type of OS
Depending on which ISO you downloaded you should select the correct Version here.
As Kali Linux is derived from Debian, I’ve selected Debian (64-bit) on General > Basic > Version. If you’re using a 32-bit ISO, select Debian (32-bit) as your version.
Select General > Advanced TAB and change Shared Clipboard and Dragn’Drop to Bidirectional. This will allow you to copy paste files from your HOST machine on the fly.
Step 3.c: Update Virtual Motherboard options
Select System > Motherboard, un-check Floppy (Do you even have a floppy disk drive anymore?) and Check the box for “Enable I/O APIC”. Note that you can change base memory allocation in the same screen. We’ve set it to 1024MB previously. My PC got 8.00GB RAM, which means I can actually allocate a lot more to make Kali response faster on my Virtual Machine. If you feel your Virtualized Kali Linux is slow, you should increase this Base Memory allocation.The calculations are as follows:
1.00 GB = 1024MB
2.00 GB = 2048MB
3.00 GB = 3072MB
You get the idea, just multiply 1024 with the amount of Memory / RaM you want and put the value in here.
Step 3.d: Select number of Processors and enable PAE/NX
I’ve changed Processor to 2 (I got 8 CPU’s in my machine, this screen will show how many you got). Try sticking with EVEN numbers here.
Check the box for “Enable PAE/NX”.
Step 3.e: Allocate Video memory and 3D acceleration
Select Display > Video and set Video Memory to 128MB. This allows you have a good responsive desktop environment.
Also check the box for “Enable 3D Acceleration”.
If you got more than 1 Monitor, you can change your settings here too.
Step 4: Loading Kali ISO
Select Storage > Controller: IDE and highlight Empty CD ICON. Now on your right, you should be able to use the little CD ICON (it should be CD/DVD Drive: IDE Secondary Master already, if not change it) and select your downloaded ISO.Once you select your downloaded ISO (in my case, it’s kali-linux-1.0.6-amd64.iso). See the properties and information’s changes accordingly.
Important thing to note: Size… if your disk size mismatched, you might have a corrupt disk. Refer to Kali download page and CDimage page for size related info. You can also do a SHA1 check to ensure your disk is not corrupted. More info here.
Step 4.a: Select Network connection type
If your computer is connection to internet, select NAT on Network > Adapter 1. You can enable more network adapters if you feel like to play around.
Step 4.b: Enable USB 2.0 Controllers
From USB TAB, check the boxes for Enable USB Controller > Enable USB 2.0 (EHCI) Controller. Note that I got “Invalid settings detected” error at the bottom of the screen. Install VirtualBox Extension Pack to remove this error.You need to PRESS OK and save your Settings first.
Close VirtualBox and then install VirtualBox 4.3.10 Oracle VM VirtualBox Extension Pack for All supported platforms.
It will enable virtual USB 2.0 (EHCI) device support, VirtualBox Remote Desktop Protocol (VRDP) support, Host webcam passthrough support.
Re-Open VirtualBox and Select Settings > USB again to confirm you don’t have that error anymore. Save your settings by pressing OK.
Step 4.c: Compare settings with mine
At this point your screen should be somewhat similar to mine. I’ve highlighted the imporatnt parts, if something didn’t match you can go back and enable disable those settings. Note that, for 32-bit users, it will be slightly different.Step 5. Booting Kali ISO
From VirtualBox Main Screen, Highlight Kali Linux 1.0.6 and Press Start Button. You might want to press F12 on the following screen to play around.Step 5.a: Select Graphical Install
On Kali Linux Boot menu, highlight Graphical install and press Enter.Step 5.b: Select language
In my case I’ve chosen English. Click Continue.Step 5.c: Select location
In my case I’ve chosen Australia. Click Continue.
Step 5.d: Select keyboard layout
I’ve selected American English. Click Continue.Step 5.e: Enter Hostname
You can enter any name in here. I’ve left the default hostname as “kali”. Click Continue.Step 5.f: Enter Domain name
You can leave it blank if you want. I’ve chosen blackmoreops.com as my domain name. This means I can later ping my computer as kali.blackmoreops.com in my LAN.Step 5.g: Choose Root password
Enter your root password (anything you choose), confirm and Click Continue.Step 5.h: Configure Clock
Usually you should choose the correct State or province here as otherwise Kali will try to connection incorrect repository and you get slower download speed. Same applies for Location in Step 5.c.Step 6: Kali disk partitioning
As this is all Virtualized, you can choose anything you want to. I personally think you should play around in this screen to get familiar with how Disk partitioning works. Disk partitioning usually scares the hell out of new users and you are potentially at risk of loosing Data. In VirtualBox environment however, go NUTS!For the sake of this guide, I will choose the most basic Partitioning method.
Step 6.a: Choose Partitioning method
Highlight Guided – use entire disk and Select ContinueStep 6.b: Select disk to partition
You should have only 1 disk in this screen, highlight it and click Continue.Step 6.c: Select partitioning scheme
Highlight “All files in one partition” and click Continue.You might want to play around in this screen if you feel like. This is a good thing to learn as in corporate environment, you select disk scheme manually.
I will advise you to read Redhat’s Recommended Partitioning Scheme for a better understanding.
Step 6.d: Finish partitioning
On the next screen, Highlight Finish partitioning and white change to disk and click Continue.Note that how the partitioning is done. Click Continue when you’re satisfied.
Finally, on the next screen, highlight “Yes” and click Continue to write changes to disks.
Your installation will start now. On my PC which got a 5400 RPM Hard disk, it takes about 8 mins.
Step 7: Finalizing installation and running Kali on VirtualBox.
If your HOST machine is connected to Internet, you can update your installation of Kali Linux on VirtualBox by selecting to “Use a Network mirror?”On this screen select Yes if you want to update, select No, if you want to do it later. I suggest updating as Kali Linux updated a lot of packages since Kali Linux 10.0.6 was released. This might take sometime, but it’s better this way. Note that it might take anytime between 1-2 hours.
You can always update Kali installation later on. Click Continue when ready.
Step 7.a: Provide HTTP Proxy information
If you’re behind a proxy, type it in here, if you’re directly connected to internet, leave it blank and click Continue.Step 7.b: Install GRUB boot loader
Select Yes to install grub boot loader on the next screen. Press Continue when ready.Step 7.c: Reboot time!
Once the installation has finished, press continue and the system will reboot.Step 7.d: Choose Kali on Grub
This screen explains itself. You choose the first option and press Enter. You can choose Recovery mode to play around if you’ve messed something on Grub or system config for recovery.Step 7.e: Login for the first time
Click on Other and enter root as your username.Type in the password you’ve selected on step 5.g. Click Log In when ready.
0 التعليقات:
إرسال تعليق