Building a home virtualization lab is only half the battle; the true value comes from testing your defenses. With our pfSense firewall routing traffic and a Windows Server Active Directory controller managing our internal domain, we now have a realistic enterprise environment. To audit this setup effectively, we need an offensive security toolset.
Kali Linux is the industry standard for penetration testing, forensic analysis, and security auditing. In this final foundational guide, we will deploy a Kali Linux Virtual Machine inside our Proxmox environment, attaching it to our isolated vmbr1 network bridge to safely execute vulnerability scans against our internal infrastructure without exposing our physical home network to automated attack scripts.
Step 1: Downloading the Optimized Proxmox Image
While you can install Kali from a standard ISO, Offensive Security provides pre-built virtual machine images that drastically reduce deployment time.
- Navigate to the official Kali Linux website and go to the Get Kali section.
- Select the Virtual Machines platform.
- Download the QEMU image (which is native to Proxmox VE). Extract the downloaded `.qcow2` disk image to your local computer.
Step 2: Creating the VM and Importing the Disk (CLI Method)
Because we downloaded a pre-built virtual disk instead of an ISO, we will use the Proxmox command line (qm tool) to import the disk directly, bypassing the standard installation GUI.
- First, use
scpor a tool like FileZilla to transfer the extracted.qcow2file to your Proxmox host (e.g., into the/tmp/directory). - Open the Proxmox Node Shell (Console) from the web GUI.
- Create a new VM structure without a disk by running:
qm create 105 --name Kali-Linux --memory 4096 --net0 virtio,bridge=vmbr1
(Ensure the bridge is set to your isolated network, vmbr1). - Import the downloaded disk into the new VM's storage repository (assuming your storage pool is named 'local-lvm'):
qm importdisk 105 /tmp/kali-linux.qcow2 local-lvm - Attach the newly imported disk to the VM as a SCSI drive:
qm set 105 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-105-disk-0 - Set the boot order so the VM boots from the new disk:
qm set 105 --boot c --bootdisk scsi0
Step 3: Initial Configuration and Updates
Start the VM from the Proxmox GUI and open the Console. The default login credentials for pre-built images are usually kali for both the username and password.
As soon as you log in, open the terminal to secure the system and update the repository tools:
- Change the default password: Type
passwdand enter a strong passphrase. - Verify Network Connectivity: Ping an external address (e.g.,
ping 8.8.8.8). If your pfSense firewall rules are configured correctly, the traffic should route through the LAN interface out to the WAN. - Update the toolset: Run
sudo apt update && sudo apt full-upgrade -yto ensure you have the latest exploit databases and security patches.
Step 4: Executing a Baseline Network Reconnaissance
With Kali running inside the isolated environment, you can now safely map your domain network. We will use Nmap to discover open ports on our Windows Server Active Directory Controller.
Run the following command in the Kali terminal, replacing the IP address with the static IP you assigned to your Windows Server:
sudo nmap -sV -p- -T4 192.168.1.10
This command performs a full 65,535 port scan (-p-), attempts to determine service versions (-sV), and runs at an aggressive timing template (-T4). Because the traffic is completely contained within the vmbr1 virtual switch, it will not trigger your physical home router's intrusion detection systems.
Conclusion
By integrating Kali Linux into your Proxmox lab, you have completed the triad of cybersecurity training: virtualization, defense (pfSense/Active Directory), and offense. You now have a sandbox where you can safely deploy vulnerable applications, execute exploit frameworks like Metasploit, and analyze network traffic using Wireshark, all without compromising your primary production hardware.

