How To Install Kali Linux On VirtualBox

    Kali Linux is a Debian-derived Linux distribution designed for penetration testing. With over 600 preinstalled penetration-testing programs, it earned a reputation as one of the best-operating systems used for security testing. As a security-testing platform, it is best to install Linux as a VM on VirtualBox.

    Kali has a rolling release model, ensuring up-to-date tools on your system. Also, there is an active community of users providing ongoing support.

    This step by step tutorial shows you how to install Kali Linux on VirtualBox.


    • At least 20 GB of disk space
    • At least 1 GB of RAM (preferably 2) for i386 and amd64 architectures
    • VirtualBox (or alternative virtualization software)

    Steps For Installing Kali Linux on VirtualBox

    Since these instructions guide you through the virtual environment installation process, you need to make sure that you have one installed on your device. In this post, we are using VirtualBox as a simple, open-source virtualization solution.

    If you do not have VirtualBox enabled, please use this step-by-step VirtualBox installation guide.

    Phase 1: Download the ISO image of Kali Linux

    You will find Kali Linux.iso files on the official Kali Linux download section of the website. These images are uploaded every few months, providing the latest official releases.

    Browse the Kali Linux Downloads page and find the packages ready for download. Install the 64-Bit or 32-Bit version depending on the machine you have.

    Step 2: Create Kali Linux VirtualBox Container

    After downloading the .iso image, create a new virtual machine and import Kali as its OS.

    1. Launch VirtualBox Manager and click the New icon.

    2. Name and operating system. A pop-up window for creating a new VM appears. Specify a name and a destination folder. The Type and Version change automatically, based on the name you provide. Make sure the information matches the package you downloaded and click Next.

    1. Size of memory. Choose how much memory you want to transfer to a virtual machine and press Next. The default settings for Linux are 1024 MB. However, these can change depending on the particular needs.
    2. Hard disk, The default alternative is to build a new VM virtual hard disk. Click the Build button to proceed. Alternatively, you may either use an internal virtual hard disk file or opt not to add one at all.

    5. Hard disk file type. Stick to the default file type for the new virtual hard disk, VDI (VirtualBox Disk Image). Click Next to continue.

    6. Storage on a physical hard disk. Decide between Dynamically allocated and Fixed size. The first choice allows the new hard disk to grow and fill up space dedicated to it. The second, fixed size, uses the maximum capacity from the start. Click Next.

    7. File location and size. Specify the name and where you want to store the virtual hard disk. Choose the amount of file data the VM is allowed to store on the hard disk. We advise giving it at least 8 GB. Click Create to finish.

    Now you created a new VM. The VM appears on the list in the VirtualBox Manager.

    Step 3: Configure Virtual Machine Settings

    The next step is adjusting the default virtual machine settings.

    1. Select a virtual machine and click the Settings icon. Make sure you marked the correct VM and that the right-hand side is displaying details for Kali Linux.

    2. In the Kali Linux – Settings window, navigate to General > Advanced tab. Change the Shared Clipboard and Drag’n’Drop settings to Bidirectional. This feature allows you to copy and paste between the host and guest machine

    3. Go to System > Motherboard. Set the boot order to start from Optical, followed by Hard Disk. Uncheck Floppy as it is unnecessary.

    4. Next, move to the Processor tab in the same window. Increase the number of processors to two (2) to enhance performance.

    5. Finally, navigate to Storage settings. Add the downloaded Kali image to a storage device under Controller: IDE. Click the disk icon to search for the image. Once finished, close the Settings window.

    6. Click the Start icon to begin installing Kali.

    Step 4: Installing and Setting Up Kali Linux

    After you booted the installation menu by clicking Start, a new VM VirtualBox window appears with the Kali welcome screen.

    Select the Graphical installation option and go through the following installation steps for setting up Kali Linux in VirtualBox.

    1. Select a language. Choose the default language for the system (which will also be the language used during the installation process).

    2. Select your location. Find and select your country from the list (or choose “other”).

    3. Configure the keyboard. Decide which keymap to use. In most cases, the best option is to select American English.

    4. Configure the network. First, enter a hostname for the system and click Continue.

    5. Next, create a domain name (the part of your internet address after your hostname). Domain names usually end in, etc. Make sure you use the same domain name on all your machines.

    6. Set up users and passwords. Create a strong root password for the system administrator account.

    Kali Linux

    7. Configure the clock. Select your time zone from the available options.

    8. Partition disks. Select how you would like to partition the hard disk. Unless you have a good reason to do it manually, go for the Guided –use the entire disk option.

    Kali Linux

    9. Then, select which disk you want to use for partitioning. As you created a single virtual hard disk in Step 3: Adjust VM Settings, you do not have to worry about data loss. Select the only available option – SCSI3 (0,0,0) (sda) –68.7 GB ATA VBOK HARDDISK  (the details after the dash vary depending on your virtualization software).

    10. Next, select the scheme for partitioning. If you are a new user, go for All files in one partition.

    11. The wizard gives you an overview of the configured partitions. Continue by navigating to Finish partitioning and write changes to disk. Click Continue and confirm with Yes.

    12. The wizard starts installing Kali. While the installation bar loads, additional configuration settings appear.

    13. Configure the package manager. Select whether you want to use a network mirror and click Continue. Enter the HTTP proxy information if you are using one. Otherwise, leave the field blank and click Continue again.

    14. Install the GRUB boot loader on a hard disk. Select Yes and Continue. Then, select a boot loader device to ensure the newly installed system is bootable.

    15. Once you receive the message Installation is complete, click Continue to reboot your VM.

    With this, you have successfully installed Kali Linux on VirtualBox. After rebooting, the Kali login screen appears. Type in a username (root) and password you entered in the previous steps.

    Finally, the interface of Kali Linux appears on your screen.



    With this guide, you have learned how to Linux in VirtualBox. We also covered setup and configuring to start penetration and security testing.

    If you are just starting with penetration testing, we suggest you read our article on penetration testing types and techniques.

    Leave a reply

    Please enter your comment!
    Please enter your name here