Installing Kali on a virtual machine from the ISO image
To install a Kali Linux ISO image on a virtual machine, these steps can be followed:
- Create a new virtual machine by selecting New from the VirtualBox toolbar menu:
- After that, you need to define the virtual machine's name and the operating system's type. Here, we set the VM's name to Kali Linux and we choose Linux for the OS type and Debian for the version.
- Then, you need to define the VM's base memory size. The more memory you provide, the better the virtual machine will be. Here, we allocated 2,048 MB of memory to the Kali Linux virtual machine. Remember that you can't give all of your physical memory to the VM because you still need the memory to run your host operating system:
- Next, you will be asked to create a virtual hard disk. You can just select VDI as the hard disk type along with a dynamically allocated virtual disk file. We suggest creating at least a 32 GB virtual hard disk. If you want to install some software packages later on, you may want to create a larger virtual hard disk. Choose Create a virtual hard disk now and click Create:
- Now select a file location and size. Click Create:
- Read the dialog box and click Continue.
- After this, your newly created VM will be listed in the VirtualBox menu:
- Double-click on the new Kali Linux VM:
- Using the file icon, navigate to where you have the Kali Linux 2018.2 ISO of your choice. Once selected, click Start.
- Once the installation starts, follow the directions as they were defined in the previous section on installing Kali Linux 2.0.