Create Kali Linux VirtualBox image

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.

Download Kali Linux iso image

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.

wget http://archive-3.kali.org/kali-images/kali-2017.3/kali-linux-2017.3-amd64.iso

sha256sum verification

Please make sure to verify the downloaded image file with sha256sum.

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 page.

Setup Kali VirtualBox

The following part is mostly the same as Create Debian 8 Jessie VirtualBox.

Start VirtualBox

Start VirtualBox and click on the button New to create a new virtual machine.

Start VirtualBox

Define name and the operating system

Define the name and the operating system of the VirtualBox. I have choosen the following things.

  • Name: Kali Linux
  • Type: Linux
  • Version: Other Linux (64-bit)
VirtualBox Kali Linux Name Operating System

Memory size

We want some power in our Kali Linux virtual machine. So you should choose at least 4096 MB.

VirtualBox Kali Linux Memory size

Hard disk

In this section I have choosen Create a virtual hard disk now.

VirtualBox Kali Linux Hard disk

Hard disk file type

I have choosen for the the hard disk file type VDI (VirtualBox Disk Image).

VirtualBox Kali Linux Hard disk file type

Storage on physical hard disk

My choice for the storage on physical hard disk was Dynamically allocated.

VirtualBox Kali Linux Storage on physical hard disk

File location and size

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.

VirtualBox Kali Linux File location and size

Kali Linux VirtualBox settings

Please open the settings of the Kali Linux VirtualBox by clicking the yellow Settings button while the machine is selected.

VirtualBox Kali Linux Open Settings

Storage - Optival Drive

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 kali-linux-2017.3-amd64.iso.

VirtualBox Kali Linux Settings - Optical Drive Empty

The previous Empty storage device should now contain the downloaded Kali Linux image.

VirtualBox Kali Linux Settings - Optical Drive

Afterwards close the Settings of the virtual machine and push the green Start button.

Install Kali Linux in the VirtualBox

The following part is mostly the same as Install Debian 8 Jessie Virtual Machine. Please select the Graphical install after starting the virtual machine.

VirtualBox Kali Linux Graphical install

Select a language

Please select a language.

VirtualBox Kali Linux Install Select a language

Select your location

Please select your location.

VirtualBox Kali Linux Install Select your location

Configure locales

Please select your locale.

VirtualBox Kali Linux Install Configure locales

Configure the keyboard

Please select your keyboard layout.

VirtualBox Kali Linux Install Configure the keyboard

Configure the network

Please select a hostname

VirtualBox Kali Linux Install Configure the network hostname

And enter a domain name if you want to.

VirtualBox Kali Linux Install Configure the network domain

Setup users and passwords

Please enter twice the password for the root user.

VirtualBox Kali Linux Install Setup users and passwords

Partition disks

For the partition of the disks I have choosen Guided - use entire disk.

VirtualBox Kali Linux Install Partition disks

I have just choosen the only option for the disk at this point.

VirtualBox Kali Linux Install Select partition disks

For the partition scheme I have choosen the easy option All files in one partition (recommended for new users).

VirtualBox Kali Linux Install Partition scheme

Just go on and Finish partitioning and write changes to disk.

VirtualBox Kali Linux Install write Partition

And confirm it again.

VirtualBox Kali Linux Install write Partition confirmation

Configure the package manager

I have choosen to use a network mirror for the installation.

VirtualBox Kali Linux Install Configure the package manager

You can enter a HTTP proxy or just leave it blank.

VirtualBox Kali Linux Install HTTP Proxy

Install the GRUB boot loader on a hard disk

I have choosen to install the GRUB boot loader.

VirtualBox Kali Linux Install GRUB boot loader

Just choose the VBOX device.

VirtualBox Kali Linux Install GRUB boot loader device

Finish the installation

The installation is finished and the virtual machine will restart after a few seconds.

VirtualBox Kali Linux Install finsish

Start Kali Linux VirtualBox

As mentioned the virtual machine should restart and we are requested to enter the username root.

VirtualBox Kali Linux Enter username

And the corresponding password. In my case just kali.

VirtualBox Kali Linux Root password

We are ready to use Kali Linux.

VirtualBox Kali Linux Desktop
Next Previous