Minimum hardware for a home pentesting lab
A newbie's first question is: "Will my laptop handle it?" The answer is almost certainly yes, if the machine is less than four or five years old. But there's one mandatory requirement, without which you can stop reading.
Hardware virtualization. Go to the BIOS/UEFI and ensure that Intel VT-x (for Intel) or AMD-V (for AMD) are enabled. Without this, virtual machines will either not start at all or will lag so much that hacking on your PC will become a struggle to deal with freezing. On most modern laptops, this option is enabled by default, but on budget models it may be disabled. Check before you install anything—it'll save you a lot of hassle.
Parameter Minimum Recommendation
RAM 8 GB 16 GB
CPU 4 cores 6+ cores
Disk 50 GB free (HDD) 100+ GB (SSD)
Host OS Windows 10/11, Linux, macOS Linux or Windows 11
8 GB of RAM is enough for just one Kali Linux attack virtual machine and a couple of Docker containers with vulnerable services. Running Metasploitable and DVWA in parallel requires 16 GB. 32 GB will come in handy later, when you scale up to multi-segment labs with Active Directory.
An SSD isn't essential for CTFs per se, but it's crucial for patience. Kali boots up from an HDD in 3-4 minutes. With an SSD, it's 40 seconds. When preparing for CTF competitions, you have to recreate the environment regularly, and every minute of downtime kills motivation faster than any unsolved problem.
VirtualBox or VMware: Which to Choose for CTFs?
Both hypervisors are currently free for personal use. Both run Kali Linux virtual machines and vulnerable training images. The differences are in the details.
Criterion VirtualBox VMware Workstation Player
Price Free, open source Free (personal use)
Host OS Windows, macOS, Linux Windows, Linux (Fusion for macOS)
Performance Enough for 1-2 VMs Noticeably higher in difficult scenarios
Snapshots Yes, unlimited Yes (full functionality in Pro)
Network modes NAT, Bridged, Host-Only, Internal NAT, Bridged, Host-Only, Custom
When it is NOT suitable More than 3 VMs simultaneously An open source hypervisor is needed.
VirtualBox – a free start with no compromises
For my initial setup of a CTF lab, I'd use VirtualBox. The reason is simple: the interface is minimal, the documentation is extensive, and there are far more step-by-step instructions in Russian than for VMware. If after six months you hit performance limits when running three or four virtual machines simultaneously, switching to VMware will take an hour, and your skills are completely transferable.
VMware Workstation – When Performance Matters
VMware provides a noticeable boost in complex scenarios: multiple Windows VMs, Active Directory labs, and heavy, memory-intensive exploits. For beginners, it's overkill. VMware makes sense once your home pentest lab outgrows the "one Kali + one target service" format.
Apple Silicon (M1/M2/M3): here's the catch. VirtualBox on ARM chips only runs ARM64 guests. Kali Linux has an ARM64 image and runs fine. But Metasploitable 2/3, OWASP BWA, and most VulnHub machines are x86-only and won't run on the M-series. The solution is Docker for target services (details below).
Step-by-step guide to setting up Kali Linux in VirtualBox
Instead of manually installing from an ISO, use a pre-built OVA image. A Kali Linux virtual machine for VirtualBox is available at kali.org/get-kali/—pre-configured, with pre-installed tools and a working environment. It saves 30–40 minutes compared to installing from an ISO, and there's no chance of messing up the disk partitioning.
Step 1: Download VirtualBox from virtualbox.org and install. On Windows, a reboot will be required after installation.
Step 2: Download the Kali OVA image for VirtualBox (size is about 3-4 GB).
Step 3. In VirtualBox, go to File > Import Configuration and select the downloaded file. Before importing, adjust the settings: allocate 4 GB of RAM (2 GB is the absolute minimum, as the interface will lag) and 2 CPU cores.
Step 4. After importing, open the VM settings — System section — Acceleration tab. Make sure VT-x/AMD-V and PAE/NX are enabled.
Step 5. Launch the VM. Default login: kali / kaliThe first action after entering is sudo apt update && sudo apt upgrade -yOn a normal channel it will take 5-10 minutes.
Step 6. Immediately take a snapshot of the clean system: "Machine -> Take a snapshot" and select "Clean Install." Now, if any problem occurs, you can roll back in 10 seconds instead of reinstalling.
At this point, you have a working Kali Linux setup in VirtualBox with a full set of tools. However, directing scans from it to the real network is an administrative and criminal offense. You need isolated targets within the lab network.
Network isolation of virtual machines
Isolation isn't a precaution, but a technical necessity. Without it, Nmap from Kali could escape into the home network and start accessing the neighbors' routers. In MITRE ATT&CK terms, Container Administration Command (T1609, Execution) describes the execution of commands within a container, while Escape to Host (T1611, Privilege Escalation) describes the exit from the isolated environment to the host system. Proper lab network segmentation minimizes the consequences of both scenarios.
Network adapter types in VirtualBox
NAT — the VM accesses the internet through the host but is invisible to other VMs. Good for updates, but useless for a lab: the attacker and target VMs can't see each other.
Bridged (network bridge) – the VM receives an IP address on the home network. This is dangerous for the lab: scanning from Kali will reach the real devices.
Host-Only (virtual host adapter) — the VM sees only the host and other VMs on the same virtual network. No internet access. Optimal for an isolated hacking environment.
Internal (internal network) — the VM sees only other VMs on the same internal network; even the host is unreachable. This provides maximum isolation, but complicates debugging.
Creating an isolated environment for hacking
The working scheme for the CTF lab: two adapters on the attack VM, one on the target VM.
Kali VM: Adapter 1 — NAT (updates and tool downloads), Adapter 2 — Host-Only (communication with target VMs on the lab network).
Target VMs (Metasploitable, DVWA, and similar): Host-Only adapter only. No NAT, no bridged—no external access.
To check the isolation after configuration: in the target VM, run ping 8.8.8.8— should be unavailable. From Kali, ping the target VM's IP address—it should respond. Additionally, check that your home router is unreachable from Kali via the Host-Only adapter: ping 192.168.1.1— should not answer. Final check: nmap -sn 192.168.56.0/24From Kali, it will only show your Kali instance and the target VMs. Nothing extra. Network isolation of virtual machines works.
A newbie's first question is: "Will my laptop handle it?" The answer is almost certainly yes, if the machine is less than four or five years old. But there's one mandatory requirement, without which you can stop reading.
Hardware virtualization. Go to the BIOS/UEFI and ensure that Intel VT-x (for Intel) or AMD-V (for AMD) are enabled. Without this, virtual machines will either not start at all or will lag so much that hacking on your PC will become a struggle to deal with freezing. On most modern laptops, this option is enabled by default, but on budget models it may be disabled. Check before you install anything—it'll save you a lot of hassle.
Parameter Minimum Recommendation
RAM 8 GB 16 GB
CPU 4 cores 6+ cores
Disk 50 GB free (HDD) 100+ GB (SSD)
Host OS Windows 10/11, Linux, macOS Linux or Windows 11
8 GB of RAM is enough for just one Kali Linux attack virtual machine and a couple of Docker containers with vulnerable services. Running Metasploitable and DVWA in parallel requires 16 GB. 32 GB will come in handy later, when you scale up to multi-segment labs with Active Directory.
An SSD isn't essential for CTFs per se, but it's crucial for patience. Kali boots up from an HDD in 3-4 minutes. With an SSD, it's 40 seconds. When preparing for CTF competitions, you have to recreate the environment regularly, and every minute of downtime kills motivation faster than any unsolved problem.
VirtualBox or VMware: Which to Choose for CTFs?
Both hypervisors are currently free for personal use. Both run Kali Linux virtual machines and vulnerable training images. The differences are in the details.
Criterion VirtualBox VMware Workstation Player
Price Free, open source Free (personal use)
Host OS Windows, macOS, Linux Windows, Linux (Fusion for macOS)
Performance Enough for 1-2 VMs Noticeably higher in difficult scenarios
Snapshots Yes, unlimited Yes (full functionality in Pro)
Network modes NAT, Bridged, Host-Only, Internal NAT, Bridged, Host-Only, Custom
When it is NOT suitable More than 3 VMs simultaneously An open source hypervisor is needed.
VirtualBox – a free start with no compromises
For my initial setup of a CTF lab, I'd use VirtualBox. The reason is simple: the interface is minimal, the documentation is extensive, and there are far more step-by-step instructions in Russian than for VMware. If after six months you hit performance limits when running three or four virtual machines simultaneously, switching to VMware will take an hour, and your skills are completely transferable.
VMware Workstation – When Performance Matters
VMware provides a noticeable boost in complex scenarios: multiple Windows VMs, Active Directory labs, and heavy, memory-intensive exploits. For beginners, it's overkill. VMware makes sense once your home pentest lab outgrows the "one Kali + one target service" format.
Apple Silicon (M1/M2/M3): here's the catch. VirtualBox on ARM chips only runs ARM64 guests. Kali Linux has an ARM64 image and runs fine. But Metasploitable 2/3, OWASP BWA, and most VulnHub machines are x86-only and won't run on the M-series. The solution is Docker for target services (details below).
Step-by-step guide to setting up Kali Linux in VirtualBox
Instead of manually installing from an ISO, use a pre-built OVA image. A Kali Linux virtual machine for VirtualBox is available at kali.org/get-kali/—pre-configured, with pre-installed tools and a working environment. It saves 30–40 minutes compared to installing from an ISO, and there's no chance of messing up the disk partitioning.
Step 1: Download VirtualBox from virtualbox.org and install. On Windows, a reboot will be required after installation.
Step 2: Download the Kali OVA image for VirtualBox (size is about 3-4 GB).
Step 3. In VirtualBox, go to File > Import Configuration and select the downloaded file. Before importing, adjust the settings: allocate 4 GB of RAM (2 GB is the absolute minimum, as the interface will lag) and 2 CPU cores.
Step 4. After importing, open the VM settings — System section — Acceleration tab. Make sure VT-x/AMD-V and PAE/NX are enabled.
Step 5. Launch the VM. Default login: kali / kaliThe first action after entering is sudo apt update && sudo apt upgrade -yOn a normal channel it will take 5-10 minutes.
Step 6. Immediately take a snapshot of the clean system: "Machine -> Take a snapshot" and select "Clean Install." Now, if any problem occurs, you can roll back in 10 seconds instead of reinstalling.
At this point, you have a working Kali Linux setup in VirtualBox with a full set of tools. However, directing scans from it to the real network is an administrative and criminal offense. You need isolated targets within the lab network.
Network isolation of virtual machines
Isolation isn't a precaution, but a technical necessity. Without it, Nmap from Kali could escape into the home network and start accessing the neighbors' routers. In MITRE ATT&CK terms, Container Administration Command (T1609, Execution) describes the execution of commands within a container, while Escape to Host (T1611, Privilege Escalation) describes the exit from the isolated environment to the host system. Proper lab network segmentation minimizes the consequences of both scenarios.
Network adapter types in VirtualBox
NAT — the VM accesses the internet through the host but is invisible to other VMs. Good for updates, but useless for a lab: the attacker and target VMs can't see each other.
Bridged (network bridge) – the VM receives an IP address on the home network. This is dangerous for the lab: scanning from Kali will reach the real devices.
Host-Only (virtual host adapter) — the VM sees only the host and other VMs on the same virtual network. No internet access. Optimal for an isolated hacking environment.
Internal (internal network) — the VM sees only other VMs on the same internal network; even the host is unreachable. This provides maximum isolation, but complicates debugging.
Creating an isolated environment for hacking
The working scheme for the CTF lab: two adapters on the attack VM, one on the target VM.
Kali VM: Adapter 1 — NAT (updates and tool downloads), Adapter 2 — Host-Only (communication with target VMs on the lab network).
Target VMs (Metasploitable, DVWA, and similar): Host-Only adapter only. No NAT, no bridged—no external access.
To check the isolation after configuration: in the target VM, run ping 8.8.8.8— should be unavailable. From Kali, ping the target VM's IP address—it should respond. Additionally, check that your home router is unreachable from Kali via the Host-Only adapter: ping 192.168.1.1— should not answer. Final check: nmap -sn 192.168.56.0/24From Kali, it will only show your Kali instance and the target VMs. Nothing extra. Network isolation of virtual machines works.