Kali Linux Cookbook
上QQ阅读APP看书,第一时间看更新

Installing in VirtualBox

This recipe will take you through the installation of Kali Linux in a completely isolated guest operating system within your host operating system using the well-known open source virtualization software: VirtualBox.

Getting ready

The required prerequisites are listed as follows:

How to do it...

Let's begin the process of installing Kali Linux in Virtualbox:

  1. Launch VirtualBox and click on New to start the Virtual Machine Wizard:
  2. Click on the Next button, type the name of the virtual machine, and choose the OS type as well as the version. In this case, we selected an operating system of Linux and Ubuntu (64 bit) as the version. Click on the Next button to continue:
  3. Select the amount of base memory (RAM) to be allocated to the virtual machine. We're going to use the default value. Click on Next.
  4. Create a new virtual hard disk for the new virtual machine. Click on the Next button:
  5. A new wizard window will open. Leave the default VDI file type as we're not planning to use other virtualization software.
  6. We'll leave the default option as the virtual disk storage details. Click on Next to continue.
  7. Set the virtual disk file location and size:
  8. Check whether the settings are correct and click on the Create button to start the virtual disk file creation.
  9. We're back to the previous wizard with the summary of the virtual machine parameters. Click on Create to finish:
  10. With the new virtual machine created, we're ready to install Kali Linux.
  11. On the VirtualBox main window, highlight Kali Linux and then click on the Settings button:
  12. Now that the basic installation steps have been followed, we will proceed to allow you to use your downloaded ISO file as a virtual disc. This will save you from having to burn a physical DVD to complete the installation. On the Settings screen, click on the Storage menu option:
  13. Next, under Storage Tree, highlight the Empty disc icon underneath IDE Controller. This selects our virtual CD/DVD ROM drive. To the far right of the screen, under Attributes, click on the disc icon. In the pop up that follows, select your Kali Linux ISO file from the list. If the Kali Linux ISO file is not present, select the Choose a virtual CD/DVD disc file... option and locate your ISO. Once you have completed these steps, click on the OK button:
  14. Click on the Start button and then click inside the new window and proceed with the installation. The installation steps are covered in the Installing to a hard disk drive recipe of this chapter.
Note

Installing the VirtualBox Extension Pack also allows us to extend the functionality of the virtualization product by adding support for USB 2.0 (EHCI) devices, VirtualBox RDP, and Intel PXE boot ROM.