If you want to become an Ethical Hacker, installing a Linux Operating System (OS) made for hacking/hackers is one of the VERY first steps you must take. In this post, using illustrative screenshots, I will show you how to install Kali Linux in VirtualBox on your Windows computer.
Important! As of Jan 29th, 2020 the installation procedures on this post became a little obsolete. This is because the Kali team made changes to the installation files, and also fixed many of the cons you’ll find on the table below. Find an updated version of this post here: https://ojoiszy.com/install-kali-linux-on-virtualbox/
There are two methods of installing Kali Linux in VirtualBox I’ll show in this tutorial and I’ll tell you the one to choose and give reasons why. Both methods will get the work done but I highly recommend the first (#1) for hacking newbies.
Below is a table summarizing the pros and cons of both methods.
Method #1 – Install Kali Linux on VirtualBox using .ISO light file (recommended)
I recommend using the .ISO file to install Kali Linux for serious beginners looking to learn ethical hacking. This is ofcourse the general installation procedure for installing any Linux operating system.
However, we are going to be using the light version of the .ISO images that Kali provides for download instead of the full .ISO images, and that’s for a good number of reasons.
Firstly, using the light image automatically fixes the issue with Kali Linux running very slow or sluggish on VirtualBox even though you have allocated it quite a bit of computing resources. This frustrating lag will particularly be very noticeable to those who have low- to mid-end computers.
Secondly, you get to install only the hacking tools you need or require. Because the light image installs a barebones system that is not bloated with unnecessary hacking tools you may never need or use. I mean, what’s the point of having such hacking tools in your arsenal that you didn’t even know are there.
Thirdly, you’ll learn hacking and the Linux environment a lot faster when you can install things by yourself. Because when you face any issues you will definitely research for a fix and that will accelerate your learning.
Alright with that out of the way, let’s get to the actual installation. There are only 4 straight forward steps to install Kali Linux in VirtualBox on your Windows computer:
- Download and install VirtualBox.
- Download Kali Linux .ISO file.
- Create Kali guest on VirtualBox.
- Install Kali on VirtualBox.
Step 1: Download and Install VirtualBox
Go to Oracle VirtualBox Official website and download the latest version of VirtualBox for Windows hosts.
As at the time this post was written, VirtualBox was at version 6.0. Yours might be different, but it’s okay.
Installing VirtualBox on Windows is as easy as installing any other application. Choose the default installation options and you should be fine.
Step 2: Download Kali Linux .ISO file
Go to the download page on the Kali Linux official website and download the Kali Linux Light 64-Bit.
Step 3: Create Kali Linux guest on VirtualBox
Launch VirtualBox and click “New” under the Tools menu.
Click “Expert Mode” below the pop-up window.
Configure the guest OS with the details below:
- Name: Give the virtual machine any name you want. I’ll name this one Kali Linux 2019.2.
- Machine Folder: Leave this as it is
- Type: Linux
- Version: Debian (64-bit)
- Memory size: This is the amount of RAM Kali will run on. Anywhere within the green mark will be fine. I’ll set this to 1024MB.
- Hard disk: Create a virtual hard disk now.
Click “Create” to proceed.
On the next pop-up window, adjust File size to at least 20 – 30GB to give Kali enough space to cater for all the programs we will be installing later on.
Leave Hard disk file type set to VDI (VirtualBox Disk Image) and Storage on physical hard disk set to Dynamically allocated.
Click “Create” to finish up.
Now to complete this step, attach the Kali .ISO file you downloaded to this newly created guest OS. With the newly created guest OS selected, click “Settings“.
In the window that comes up, click “Storage“, “Empty” and click the “disk icon” as shown in the image below. Afterwhich select the Kali Linux .ISO file you downloaded to attach it.
Step 4: Install Kali on VirtualBox
You are now ready to install the Kali Linux operating system on our VirtualBox. Double click to launch the Kali Linux virtual machine.
On the boot menu, select “Graphical install“.
Note: Upon clicking inside the virtual machine, your mouse cursor will be captured. To uncapture it simply press the Ctrl key on the right side of your keyboard.
Now the next couple of screens are just cosmetic settings and are a matter of user preference. System language <> Location <> Keyboard language. I normally just press enter to select the highlighted option which is just fine for me.
Configure nameservers. Leave this option blank, we don’t need it. Press enter to proceed.
Configure system Hostname. This is the name this guest OS will be identified by on your local network but for now, let’s leave it as kali.
Configure domain name. Leave this blank too. Press enter to proceed.
Set a password for the root account here. Ensure you don’t forget it.
Configure the clock. This is yet another setting based on user preference.
Partition Disks. We could go ahead to partition our virtual hard disk and have separate partitions for /home, /opt, etc. But using the entire disk without partitioning will work well for our purposes, which by the way is recommended for new users.
After writing changes to disk the system will begin to install. This will take some time to complete depending upon the speed of your computer and also on how much RAM you allocated the VM
Use a network mirror? Select NO because we won’t be needing it for our package manager.
Install GRUB boot loader? Select “YES” and then select the only device hard disk we have which is the 25GB virtual hard disk we created in the beginning.
Finishing the installation… Give this a few more seconds to complete and ta-da! Installation is complete.
You can log in to your new Kali Linux virtual machine using username = root and the password you set during the installation.
Method #2 – Install Kali Linux on VirtualBox using OVA File
Installing Kali Linux on VirtualBox using an Open Virtual Appliance (OVA) file is no doubt a super quick and easy method. All you need to do is download the prepackaged Kali Linux OVA file and import it with one click on VirtualBox.
Overall, it’s not a method I would recommend for beginners looking to come into the world of hacking. Simply because you won’t learn much that way. As you continue your hacking journey, one of the things you would quickly notice is that you would be installing a LOT of things.
Really if you want to learn to hack, you should be able to at least know the procedure to install the operating system you are going to be spending hundreds, if not thousands of hours working on.
To install Kali Linux on VirtualBox using .OVA file there are only 2 quick steps to take:
- Download Kali Linux .OVA file.
- Import the Kali Linux .OVA file on VirtualBox.
Step 1: Download Kali Linux .OVA file
Go to the virtual images download section on the Kali Linux official website and click the VirtualBox section.
Download the Kali Linux VirtualBox 64-Bit OVA file. Note that 32-Bit virtual machines are no longer supported as from VirtualBox 6.x.
Step 2: Import the Kali Linux .OVA file on VirtualBox
Launch VirtualBox and click “Import” under the Tools menu.
Next, click the folder icon to the right of the search box to select your downloaded Kali Linux .OVA file.
Configure the virtual appliance settings as you need. Here I basically leave everything as it is. The only thing I may modify is the virtual hard disk space and RAM allocation to suite the resources I have on that computer.
Ensure to tick the checkbox next to Import hard drives as VDI. Click “Import” to finish up.
Your new Kali Linux virtual machine will now be visible on the VirtualBox homepage, double click on it to launch.
Login with Kali Linux default username: root & password: toor
Recommended for you:
Now that’s all for installing Kali Linux on VirtualBox for hacking. But before you can go ahead to start tinkering around with your newly installed hacking box, there are a few necessary FIRST THINGS you need to do.
For that, I’ll send you off to the follow-up post for this tutorial: First 7 Things to do After Installing Kali Linux for Hacking.
Have any questions? Hit me up in the comments below, I’ll get to them ASAP. Also please do leave me a comment if this worked for you and consider sharing it too.