Post

Installing Kali Linux for Your Lab

Security and Pentest Home Lab Environment

Installing Kali Linux for Your Lab

🚀 Kali Linux Installation Module

In this module, we’ll install Kali Linux. This VM will also be used in the next module to complete the pfSense setup.


⬇️ Download Kali Linux

Go to the official Kali Linux website and download the 64-bit Recommended Installer:
https://www.kali.org/get-kali/#kali-installer-images

The file is around 4GB, so download time may vary.

Once complete, you’ll have an .iso file.


🖥️ Create Kali Linux VM

  1. Open VirtualBox and click New in the toolbar.
  2. Name the VM, choose a storage location, and leave the ISO image option empty.
  3. Set:
    • Type: Linux
    • Version: Debian (64-bit)
  4. Click Next.

Desktop View

  1. Keep default settings (unless you prefer KDE and have the resources). Click Next.

Desktop View

  1. Set disk size to 80GB and click Next.

Desktop View

  1. Review and click Finish.

🗂️ Organize VMs in Groups

  • Right-click the Kali Linux VM → Move to Group[New]
  • Rename group to Management.

Desktop View

  • Create another group for firewall VM: select both groups (Ctrl+Click), right-click → Move to Group[New]
  • Rename to Home Lab.

Desktop View


⚙️ Configure Kali Linux VM Settings

  1. Select Kali Linux VM → Settings

Desktop View

  1. In SystemMotherboard:
    • Boot Order: Hard Disk (top), then Optical
    • Uncheck Floppy

Desktop View

  1. In SystemProcessor: Enable PAE/NX.

Desktop View

  1. In DisplayScreen: Increase Video Memory to 128 MB.

Desktop View

  1. In Storage:
    • Click empty disk under Controller: IDE
    • Click disk icon on the right → select downloaded Kali .iso

Desktop View


🌐 Network Configuration

  • Go to NetworkAdapter 1
  • Attached to: Internal Network
  • Network Name: LAN 0
  • Adapter Type: Paravirtualized Network (virtio-net)

Desktop View


🛠️ Install Kali Linux

Warning:
Make sure your pfSense VM is running before starting Kali installation.

  1. Select Kali Linux VM → Click Start
  2. In installer menu, choose Graphical Install

Desktop View

  1. Choose your language, location, and keyboard layout.

Desktop View

Desktop View

Desktop View

  1. Enter hostname (changeable later), leave domain empty, continue.

Desktop View

Desktop View

  1. Set username and password for login.

Desktop View

Desktop View

  1. Choose timezone and continue.

  2. Select disk (usually sda) and continue.

Desktop View

  1. Choose Guided - use entire disk → continue.

Desktop View

  1. Choose All files in one partition → continue.

Desktop View

  1. Confirm partition changes → continue.

Desktop View

  1. After base install, choose desktop environment:
    • GNOME: visually rich
    • XFCE: lightweight and fast
    • KDE Plasma: feature-rich, needs ≥ 2 cores & 4GB RAM

Desktop View

Desktop View

Desktop View

  1. Wait for install to finish → click Continue to reboot.

🔑 Log In & Final Setup

  • After reboot, enter your password at login.

Desktop View

  • Kali Linux auto-installs Guest Additions in VM.

  • Press Right Ctrl + F for fullscreen toggle.

  • Open Terminal, run:

1
ip a

Desktop View

🌀 Update Kali Linux

Open the Terminal and run the following command to update your system:

1
sudo apt update && sudo apt full-upgrade

When prompted, type Y to continue the update.

Desktop View

After the update, run the command to remove unused packages:

1
sudo apt autoremove

Desktop View

Troubleshoot Black Screen on Boot
If you see a black screen after booting Kali Linux, it might be related to a recent update. This issue can appear randomly.

Try changing the “Graphics Controller” to VBoxSVGA in SettingsDisplayScreen.

Another fix is to power off the VM and restart it. You may need to restart it 2–3 times for it to work properly.


In the next module, we will access the pfSense Web UI and complete the remaining configuration.

👉 Configuring pfSense Firewall for Security

This post is licensed under CC BY 4.0 by the author.