12 Create a Kali Linux VM

Mathew J. Heath Van Horn, PhD

Kali Linux is the distribution of choice for attacking a network thanks to the many attack tools it comes bundled with.  This lab provides instructions for making a Kali Linux VM.

Phase 0 – Professional Alignment

Securing enterprise networks requires understanding how attackers discover vulnerabilities and exploit misconfigurations. In this chapter, you will install and configure a Kali Linux virtual machine, creating a professional penetration testing workstation equipped with industry-standard tools used to assess, validate, and strengthen enterprise network security.

DCWF Work Roles

The knowledge and skills developed in this chapter align with the following Department of Defense Cyber Workforce Framework (DCWF) work roles:

  • 451 – System Security Analyst
  • 511 – Network Operations Specialist
  • 541 – Cyber Defense Analyst

NICE Work Roles

This chapter supports competencies associated with the following NICE Workforce Framework for Cybersecurity work roles:

  • Cyber Defense Analyst
  • Vulnerability Assessment Analyst
  • Network Operations Specialist

Professional Skills

By completing this chapter, you will begin developing the ability to:

  • Deploy a penetration testing workstation in a virtual enterprise environment.
  • Configure Linux-based security assessment tools.
  • Maintain a cybersecurity workstation through software updates and package management.
  • Prepare a security testing platform for vulnerability assessment and penetration testing.
  • Verify the functionality of offensive security tools in a controlled laboratory.
  • Build a reusable cybersecurity workstation for future enterprise security exercises.

What You’ll Be Able to Do

After completing this chapter, you should be able to:

  • Install the Kali Linux virtual machine in Oracle VirtualBox.
  • Update and maintain the Kali Linux operating system and software packages.
  • Install additional security tools required for later laboratory exercises.
  • Verify that Kali Linux functions correctly within your virtual networking environment.
  • Integrate the Kali Linux virtual machine into your GNS3 laboratory.
  • Prepare a fully operational penetration testing workstation for future offensive and defensive cybersecurity labs.

 

Learning Objectives

  • Successfully download, install, and run Kali Linux in a GNS3 environment

Prerequisites

Deliverables

  • None – this is a preparatory lab that supports other labs in this book

Resources

Contributors and Testers

  • Kyle Wheaton, Cybersecurity Student, ERAU-Prescott

Phase I – Download and Installation

We will download and install the Kali Linux virtual machine (VM).

  1. Start by downloading the VirtualBox Virtual Machine Image
    download the VM
    Figure 1 – download the VM

    IMPORTANT: Ensure you download the Virtual Machine image.

  2. Unzip the downloaded file with 7-Zip
    unzip and double-click
    Figure 2 – unzip and double-click
  3. Double-click on the unzipped file, and it will add itself to VirtualBox
    added to VirtualBox
    Figure 3 – added to VirtualBox
  4. Start the Kali VM
  5. The default login is
    • USERNAME: kali
    • PASSWORD: kali
  6. Open the terminal
    open a terminal
    Figure 4 – open a terminal
    1. Update Kali

      sudo apt update -y

    2. Upgrade Kali

      sudo apt upgrade -y

  7. This will take quite a while, depending on the last time the image was updated
    Sleeping 0
    Figure Zzzzzz
  8. VirtualBox Guest Additions are already installed
  9. We recommend turning off the machine and renaming it with today’s date so you can keep a lightweight version of Kali in your library. We named ours “Kali – 15 Feb 2025”

Phase II – Necessary Software (eventually)

While Kali comes with a large toolset, there are two tools we will need later that are not preinstalled.  These tools do not need to be installed right now, just remember that the instructions are here when the chapters call for them.

  1. Install Rainbow Crack
    1. Open the terminal and run this command to install Rainbow Crack

      sudo apt-get install rainbowcrack

    2. Once the installation completes, close the terminal and open Firefox
  2. Install Nessus Essentials. At the time of this writing, the Kali VM has a large enough hard drive to accommodate Nessus. However, you should know that you will need at least 80GB. If you have difficulties due to disk size, visit our Miscellaneous Chapter for instructions on resizing the hard drive
  3. In Firefox, go to this link to download Nessus Essentials for Education. Click on try now
    Install nessus
    Figure 24 – Install Nessus
  4. You will need to provide a business (school) email, but none of our testers have reported spam from this
  5. Click the download button that appears. Then leave the defaults on the next screen and click download. At the time of writing, the version of Nessus is 10.11.2
  6. Open the folder where you downloaded the file. Right-click inside the folder and click Open Terminal Here
    Open the download folder
    Figure 25 – Open the download folder
  7. Use the following command to install the Nessus Package

    NOTE: Adjust the filename to reflect the current file name you just downloaded

    sudo dpkg -i Nessus-10.7.1-ubuntu1604_amd64.deb

  8. Use the following command to start the Nessus Scanner. While we won’t do much with it right now, we will need to input the activation code from our email

    /bin/systemctl start nessusd.service

  9. In the window that pops up, enter the user password. Following that, reopen Firefox and go to this link

    https://kali:8834

  10. The page will tell you that it is insecure. Click advanced and then Accept the risk and continue
    Using Firefox to navigate nessus
    Figure 26 – Using Firefox to navigate Nessus
  11. Click continue on the first screen
    Continue
    Figure 27 – Continue
  12. Select the Register for Nessus Essentials radio button
    Register
    Figure 28 – Register
  13. And click continue. If you have already received the email earlier, then click skip
    skip if you have the code
    Figure 29 – Skip if you already have the code
  14. Input the activation code from your email and click continue
    input the activation code
    Figure 30 – Input the activation code
  15. Make a username and password for your account and select submit
    create username and password
    Figure 31 – Create username and password

     

    Sleeping 0
    Figure 32 – This could take a while
  16. Nessus will take a while to download and compile plugins, so wait for this process to complete before switching the machine off

 

Career Connection

Kali Linux is one of the most widely recognized platforms used by cybersecurity professionals for penetration testing, vulnerability assessments, digital forensics, and security validation. Security analysts, penetration testers, incident responders, and network defenders rely on many of the same tools included with Kali Linux to identify weaknesses before adversaries can exploit them. The workstation you build in this chapter will become your primary platform for evaluating, attacking, and defending enterprise networks throughout the remainder of this textbook.

End of Lab

Feedback email
Figure 00 – Contact us via prmaster@erau.edu

License

Icon for the Creative Commons Attribution-NonCommercial 4.0 International License

Mastering Enterprise Networks 3e Copyright © 2024 by Mathew J. Heath Van Horn is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License, except where otherwise noted.