Kali Linux is a cool Linux distribution with a lot of security tools preinstalled. To run those security tools agains a local webserver for example it would be nice and handsome as VirtualBox. Offensive VirtualBox images are also available at offensive-security.com, but creating your own custom image is also pretty easy.
Let us download a Kali Linux image from the the offical Official Kali Linux Downloads page. I have choosen the version 2017.3 of the image Kali 64 bit.
Please make sure to verify the downloaded image file with
sha256sum kali-linux-2017.3-amd64.iso 395bc0af107806e5bf06edc6ac4af1f96caaf04f465831abf2f33ce51b73968d kali-linux-2017.3-amd64.iso
The result of
sha256sum should be the same as on the download
The following part is mostly the same as Create Debian 8 Jessie VirtualBox.
Start VirtualBox and click on the button New to create a new virtual machine.
Define the name and the operating system of the VirtualBox. I have choosen the following things.
We want some power in our Kali Linux virtual machine. So you should choose at least 4096 MB.
In this section I have choosen Create a virtual hard disk now.
I have choosen for the the hard disk file type VDI (VirtualBox Disk Image).
My choice for the storage on physical hard disk was Dynamically allocated.
Some of the tools in Kali Linux are creating a lot of data and the operating system itself needs some space. You should choose at least 16 GB for the size of the hard disk.
Please open the settings of the Kali Linux VirtualBox by clicking the yellow Settings button while the machine is selected.
Select in the left menu the point Storage and choose as
Storage Device the Empty one. Click on the disk icon on the
right side to select a Optical Drive. Point to the location of the
downloaded Kali Linux image. In my case
The previous Empty storage device should now contain the downloaded Kali Linux image.
Afterwards close the Settings of the virtual machine and push the green Start button.
The following part is mostly the same as Install Debian 8 Jessie Virtual Machine. Please select the Graphical install after starting the virtual machine.
Please select a language.
Please select your location.
Please select your locale.
Please select your keyboard layout.
Please select a hostname
And enter a domain name if you want to.
Please enter twice the password for the root user.
For the partition of the disks I have choosen Guided - use entire disk.
I have just choosen the only option for the disk at this point.
For the partition scheme I have choosen the easy option All files in one partition (recommended for new users).
Just go on and Finish partitioning and write changes to disk.
And confirm it again.
I have choosen to use a network mirror for the installation.
You can enter a HTTP proxy or just leave it blank.
I have choosen to install the GRUB boot loader.
Just choose the VBOX device.
The installation is finished and the virtual machine will restart after a few seconds.
As mentioned the virtual machine should restart and we are requested to enter the username root.
And the corresponding password. In my case just kali.
We are ready to use Kali Linux.