Kali Linux is a powerful penetration testing and cybersecurity-focused operating system. Running it on a virtual machine (VM) allows you to test its features without affecting your primary system. In this guide, we’ll walk you through the step-by-step installation process using VirtualBox or VMware.
Why Install Kali Linux on a VM?
Safe & Isolated Environment – No risk of affecting your main OS.
Easy Testing & Learning – Experiment with cybersecurity tools freely.
Portable Setup – Run Kali Linux on any system with a VM.
Step 1: Download Required Software
Before installation, ensure you have the following:
Kali Linux ISO – Download the latest version from the official website.
Virtual Machine Software – Install either VirtualBox or VMware Workstation Player.
Step 2: Create a New Virtual Machine (VM)
Open VirtualBox or VMware and click on “New.”
Enter a name (e.g., “Kali Linux”) and select Linux as the OS type.
Choose Debian (64-bit) as the version.
Allocate RAM (Minimum: 2GB, Recommended: 4GB+ for better performance).
Create a Virtual Hard Disk (Minimum: 20GB, Recommended: 40GB+).
Click Create to finalize the VM setup.
Step 3: Configure Virtual Machine Settings
Before installation, optimize the VM for performance:
For VirtualBox:
- Go to Settings → System → Processor: Allocate at least 2 CPU cores.
- Go to Display → Video Memory: Set to at least 128MB.
- Go to Storage → Controller: Add the downloaded Kali Linux ISO.
- Enable Network Adapter: Set it to Bridged Adapter or NAT for internet access.
For VMware:
- Go to Edit VM Settings → Processors: Allocate at least 2 CPU cores.
- Memory: Assign at least 4GB RAM.
- CD/DVD Drive: Select Use ISO Image File and browse for the Kali Linux ISO.
Step 4: Install Kali Linux on the VM
Start the Virtual Machine and boot from the Kali Linux ISO.
Select Graphical Install.
Choose Language, Location, and Keyboard Settings.
Set up the User and Password.
Partition Disk: Choose Guided – use entire disk (Recommended for beginners).
Select Install Now and wait for the process to complete.
When prompted, install GRUB Bootloader and select the correct disk.
Reboot the VM after installation is finished.
Step 5: Post-Installation Setup
After booting into Kali Linux:
Update the system:
sudo apt update && sudo apt upgrade -y
Install VMware/VirtualBox Guest Additions (For better display and performance):
sudo apt install virtualbox-guest-x11 -y
Verify Network & Tools:
ifconfig # Check network settings kali-linux-large # Install additional tools