
Learn how to install Kali Linux in VMware Workstation or Player with our complete step-by-step guide. Pre-built images, manual installation, troubleshooting, and VMware Tools setup covered.
Master Nano, Vim, and Emacs text editors for penetration testing on Kali Linux. Learn essential commands, shortcuts, and workflows for editing config files, bash scripts, and analyzing securi
28 min read
Master the apt package manager, dpkg, and snap in Kali Linux. Learn essential package management commands, repository configuration, and security tool installation for penetration testing in
24 min read
Installing Kali Linux in VMware is one of the most popular methods for setting up a safe, isolated penetration testing environment. Whether you're a cybersecurity student, ethical hacker, or IT professional, running Kali Linux as a virtual machine (VM) in VMware offers excellent performance, snapshot capabilities, and seamless integration with your host operating system.
In this comprehensive tutorial, you'll learn how to install Kali Linux in VMware Workstation or VMware Player using both the pre-built VMware images (fastest method) and manual ISO installation (for full control). We'll cover VM configuration, VMware Tools installation, troubleshooting common issues, and best practices for optimal performance.
What you'll learn:
This is Tutorial 2 in our Kali Linux Mastery series. If you prefer VirtualBox, check out Tutorial 1: Install Kali Linux in VirtualBox.
VMware is the industry-leading virtualization platform trusted by enterprises and security professionals worldwide. Here's why many choose VMware over alternatives:
Advantages of VMware:
VMware vs VirtualBox: While VirtualBox is free and open-source, VMware generally offers better performance and more advanced features. However, VirtualBox is perfectly adequate for beginners and casual use.
Choosing the right virtualization platform depends on your needs and budget. Here's a detailed comparison:
| Feature | VMware Workstation Pro | VMware Workstation Player | VirtualBox |
|---|---|---|---|
| Price | $199.99 (paid) | Free for personal use | Free (open-source) |
| Ease of Use | Moderate | Easy | Easy |
| Performance | Excellent | Excellent | Good |
| 3D Graphics | Full DirectX 11, OpenGL 4.1 | Limited 3D support | Basic 3D support |
| Snapshots | Advanced (trees, clones) | Single snapshots | Multiple snapshots |
| VM Cloning | Yes (full & linked) | No | Yes |
| Unity Mode | Yes | No | Seamless Mode |
| USB 3.0 Support | Yes | Yes | Yes (with extension pack) |
| Shared Folders | Advanced | Basic | Basic |
| Network Options | Advanced (custom virtual networks) | Standard (NAT, Bridged, Host-only) | Standard |
| Multiple VMs | Run simultaneously | Run simultaneously | Run simultaneously |
| Commercial Use | Yes | No (requires Pro license) | Yes |
| Best For | Professionals, advanced users | Students, personal projects | Beginners, open-source enthusiasts |
Recommendation: For this tutorial, we'll use VMware Workstation Player (free version), which is perfect for running Kali Linux for learning and personal penetration testing projects.
Before installing Kali Linux in VMware, ensure your system meets these requirements:
| Component | Minimum | Recommended | Optimal |
|---|---|---|---|
| Processor | 64-bit dual-core (Intel VT-x or AMD-V) | Quad-core 2.5+ GHz | Hexa-core+ 3.0+ GHz |
| RAM | 4 GB (2 GB for VM) | 8 GB (4 GB for VM) | 16 GB+ (8 GB for VM) |
| Disk Space | 25 GB free | 50 GB free | 100 GB+ free |
| Operating System | Windows 10, Linux, macOS | Windows 11, recent Linux | Latest OS version |
| Graphics | Any | Dedicated GPU | NVIDIA/AMD with 3D support |
| Virtualization | VT-x/AMD-V enabled in BIOS | VT-x/AMD-V + EPT/RVI | VT-x/AMD-V + nested virtualization |
| Resource | Minimum | Recommended |
|---|---|---|
| RAM | 2 GB | 4-8 GB |
| CPU Cores | 1 | 2-4 |
| Disk Space | 20 GB | 50 GB+ |
| Network | NAT | NAT or Bridged |
Important: Ensure hardware virtualization (Intel VT-x or AMD-V) is enabled in your BIOS/UEFI settings. Most modern systems have this enabled by default, but some manufacturers disable it.
Kali Linux provides pre-built VMware images that are ready to import, saving you time and configuration effort. This is the easiest and fastest method for most users.
Visit the official Kali Linux downloads page: kali.org/get-kali
Navigate to "Virtual Machines" section
Select "VMware" option
Choose your architecture:
Download the .7z archive (approximately 3.5-4 GB)
Extract the archive using 7-Zip (Windows) or built-in tools (Linux/macOS)
What you'll get: A folder containing .vmx (VM configuration), .vmdk (virtual disk), and .nvram files ready to open in VMware.
If you prefer manual installation or need a custom setup:
# On Linux/macOS - verify checksum
sha256sum kali-linux-2024.4-installer-amd64.iso
# On Windows PowerShell
Get-FileHash kali-linux-2024.4-installer-amd64.iso -Algorithm SHA256
Click "Download For Free"
Download VMware Workstation Player for Windows (latest version)
Run the installer (VMware-player-*.exe)
Follow the installation wizard:
Click Install and wait for completion (2-3 minutes)
Restart your computer when prompted
# Ubuntu/Debian
wget https://www.vmware.com/go/getplayer-linux
chmod +x VMware-Player-*.bundle
sudo ./VMware-Player-*.bundle
# Fedora/RHEL/CentOS
wget https://www.vmware.com/go/getplayer-linux
chmod +x VMware-Player-*.bundle
sudo ./VMware-Player-*.bundle
# After installation, start VMware Player
vmplayer
VMware Workstation Player is not available for macOS. Use:
This is the fastest method and recommended for beginners.
Launch VMware Workstation Player
Click "Open a Virtual Machine"
Navigate to the extracted Kali Linux folder
Select the .vmx file (e.g., kali-linux-2024.4-vmware-amd64.vmx)
Click "Open"
VMware will import the VM configuration (takes 5-10 seconds)
If prompted, choose "I Copied It" when asked if you moved or copied the VM
The VM will appear in your library
Before starting the VM, let's optimize the settings:
Select the Kali Linux VM
Click "Edit virtual machine settings"
Memory: Allocate at least 4 GB (4096 MB) if your host has 8+ GB RAM
Processors: Assign 2-4 cores depending on your CPU
Network Adapter:
Display:
Click "OK" to save
Click "Play virtual machine" to start Kali Linux
Username: kali
Password: kali
First login: Change the default password immediately for security:
passwd
# Enter current password: kali
# Enter new password (strong password)
# Retype new password
Congratulations! You've successfully imported and booted Kali Linux in VMware. Skip to Step 6 for VMware Tools installation.
If you downloaded the ISO file or want full control over your VM configuration, follow this manual installation process:
Launch VMware Workstation Player
Click "Create a New Virtual Machine"
Choose "Installer disc image file (iso)"
Click "Browse" and select your Kali Linux ISO
Click "Next"
Guest Operating System:
Click "Next"
Virtual Machine Name: Kali Linux 2024
Location: Choose where to store VM files (ensure sufficient space)
Click "Next"
Disk Capacity:
Click "Next"
Click "Customize Hardware" to adjust settings:
Memory: 4 GB (4096 MB) minimum
4096 MB for standard use
8192 MB for heavy workloads (password cracking, multiple tools)
Processors: 2-4 cores
Number of processors: 1
Number of cores per processor: 2-4
Network Adapter: NAT (can change later)
Display:
Click "Close", then "Finish"
Start the VM - Kali boot menu appears
Select "Graphical Install" (recommended for beginners)
Language: English (or your preference)
Location: Your country (affects timezone and mirror selection)
Keyboard: Your keyboard layout
Hostname: kali (default) or custom name
Domain name: Leave blank (press Continue)
Full name: Your name (e.g., "Kali User")
Username: kali (default) or custom
Password: Choose a strong password (you'll use this for sudo commands)
Partition disks:
Installation begins (10-15 minutes depending on your hardware)
Software selection:
GRUB bootloader: Yes, install to /dev/sda
Installation complete - Click "Continue" to reboot
Remove ISO: VM > Removable Devices > CD/DVD > Disconnect
The VM will reboot and present the login screen
Login with your username and password
Optimizing your VM configuration ensures the best performance and proper network functionality for penetration testing.
General guidelines:
Never allocate more than 50-60% of your host's physical RAM to VMs.
Recommended CPU allocation:
- Basic usage: 2 cores
- Moderate usage: 4 cores
- Heavy workloads (password cracking, compilation): 6-8 cores
Never allocate ALL your CPU cores - leave at least 1-2 for the host OS.
VMware offers several network modes. Choose based on your use case:
| Mode | Use Case | VM Connectivity | Internet Access | Host Access | Physical Network |
|---|---|---|---|---|---|
| NAT | General use, isolated testing | Through host | Yes | Yes | No (private IP) |
| Bridged | Network penetration testing, acting as separate device | Direct | Yes | Yes | Yes (own IP) |
| Host-only | Isolated testing, no internet | Host only | No | Yes | No |
| Custom | Advanced configurations | Configurable | Configurable | Configurable | Configurable |
Recommendation for penetration testing: Start with NAT for safety, switch to Bridged when testing your own network.
If you used the pre-built image:
Default Username: kali
Default Password: kali
If you performed manual installation, use the credentials you created during setup.
After logging in, verify your installation:
# Check Kali version
cat /etc/os-release
# Check kernel version
uname -a
# Check available disk space
df -h
# Check RAM
free -h
# Check CPU
lscpu
# Check network connectivity
ip addr show
ping -c 4 google.com
# Update package repository lists
sudo apt update
# Check for available upgrades (don't upgrade yet)
sudo apt list --upgradable
We'll perform a full system update after installing VMware Tools in the next step.
VMware Tools provides critical enhancements:
# Update package lists
sudo apt update
# Install open-vm-tools (OS version of VMware Tools)
sudo apt install -y open-vm-tools open-vm-tools-desktop
# If using desktop environment
sudo apt install -y open-vm-tools-desktop
# Reboot VM to activate
sudo reboot
In VMware Player menu: VM > Install VMware Tools
In Kali Linux, a CD/DVD icon appears on desktop or in file manager
Open terminal and run:
# Mount the VMware Tools CD
sudo mkdir -p /mnt/cdrom
sudo mount /dev/cdrom /mnt/cdrom
# Copy VMware Tools archive to /tmp
cp /mnt/cdrom/VMwareTools-*.tar.gz /tmp/
cd /tmp
# Extract the archive
tar -xzf VMwareTools-*.tar.gz
# Run the installer
cd vmware-tools-distrib
sudo ./vmware-install.pl
# Press Enter to accept all defaults during installation
# Reboot after installation
sudo reboot
Power off VM
Edit virtual machine settings
Click Options tab > Shared Folders
Select "Always enabled"
Click "Add":
C:\VMShare)shared (or any name)Click OK
Start VM
Access shared folder:
# Shared folders are mounted at /mnt/hgfs/
cd /mnt/hgfs/shared
ls
# Create a desktop shortcut
ln -s /mnt/hgfs/shared ~/Desktop/Shared
# Check if VMware Tools is running
systemctl status open-vm-tools
# Or
vmware-toolbox-cmd -v
# Test clipboard - copy text in host, paste in VM (Ctrl+Shift+V in terminal)
Now that VMware Tools is installed, perform a full system update:
# Update all packages to latest versions
sudo apt update && sudo apt full-upgrade -y
# This may take 15-30 minutes depending on updates available
# Clean up unnecessary packages
sudo apt autoremove -y
sudo apt autoclean
# 1. Change default password (if using pre-built image)
passwd
# 2. Update system hostname (optional)
sudo hostnamectl set-hostname kali-vm
# 3. Install additional tools (optional)
sudo apt install -y \
vim \ # Text editor
git \ # Version control
curl wget \ # Download utilities
net-tools \ # Legacy network tools
build-essential \ # Compilation tools
python3-pip \ # Python package manager
htop \ # Process monitor
neofetch # System info display
# 4. Set up SSH (optional - for remote access)
sudo systemctl enable ssh
sudo systemctl start ssh
# 5. Configure Git (if you'll use version control)
git config --global user.name "Your Name"
git config --global user.email "your.email@example.com"
Check our comprehensive Kali Linux Tools database to learn about the 600+ pre-installed penetration testing tools, or read our Complete Penetration Testing Methodology Guide for 2026 to understand when and how to use each tool category.
Snapshots are one of VMware's most powerful features. They let you save your VM's exact state and revert to it later - perfect for penetration testing where you might break something!
A snapshot captures:
Use cases:
VMware Workstation Pro:
Fresh Install or Post-UpdateVMware Workstation Player (limited):
Command Line (works in both):
# From host terminal (VM must be powered off or suspended)
vmrun snapshot "path/to/vm.vmx" snapshot_name
VMware Workstation Pro:
VMware Workstation Player:
Recommended snapshot strategy:
1. "Fresh Install" - Immediately after installation
2. "VMware Tools Installed" - After tools installation
3. "Updated System" - After first full update
4. "Pre-Root" - Before attempting privilege escalation
5. "Clean State" - Known-good checkpoint you can always return to
Important: Snapshots consume disk space. Delete old snapshots you no longer need to reclaim space.
Cause: Hardware virtualization disabled in BIOS/UEFI
Solution:
Causes & Solutions:
1. Insufficient RAM allocation
â Allocate at least 4 GB (4096 MB) to VM
2. Too few CPU cores
â Allocate at least 2 cores to VM
3. Host system overload
â Close unnecessary host applications
â Don't run multiple heavy VMs simultaneously
4. Disk I/O bottleneck
â Store VM on SSD instead of HDD
â Defragment virtual disk: VM > Manage > Defragment
5. 3D acceleration disabled
â Edit VM settings > Display > â Accelerate 3D graphics
Diagnosis:
# Check if network interface exists
ip addr show
ip link show
# Check if DHCP is working
sudo dhclient -v eth0
# Verify routing
ip route show
# Test DNS
nslookup google.com
ping -c 4 8.8.8.8
Solutions:
sudo systemctl restart NetworkManager
Solution:
# 1. Ensure VMware Tools is installed and running
systemctl status open-vm-tools
# 2. Reinstall open-vm-tools-desktop
sudo apt install --reinstall open-vm-tools-desktop
# 3. Restart VM
sudo reboot
# 4. In VM settings, ensure:
# Edit VM Settings > Options > Guest Isolation
# â Enable copy and paste
# â Enable drag and drop
Solution:
# 1. Check if vmhgfs-fuse is installed
which vmhgfs-fuse
# 2. Install if missing
sudo apt install open-vm-tools-desktop
# 3. Manually mount shared folders
sudo mkdir -p /mnt/hgfs
sudo vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
# 4. Make it permanent - add to /etc/fstab
echo ".host:/ /mnt/hgfs fuse.vmhgfs-fuse allow_other,defaults 0 0" | sudo tee -a /etc/fstab
# 5. Verify
ls /mnt/hgfs/
Solution:
Causes & Solutions:
1. Graphics driver issue
â Edit VM Settings > Display > Uncheck "Accelerate 3D graphics"
â Reduce graphics memory to 512 MB
2. Resolution issue
â Boot into recovery mode
â Reconfigure display settings
â Update open-vm-tools-desktop
3. Corrupted VM state
â Revert to last working snapshot
â Or reinstall Kali Linux
Solution:
# Use open-vm-tools instead (recommended for Linux)
sudo apt update
sudo apt install -y open-vm-tools open-vm-tools-desktop
# If you need kernel modules
sudo apt install -y linux-headers-$(uname -r)
# Rebuild VMware modules
sudo vmware-config-tools.pl
# Reboot
sudo reboot
Yes, VMware Workstation Player is free for personal, non-commercial use. You can run Kali Linux, practice penetration testing, and use it for educational purposes without paying. However, if you use it in a commercial environment (at work for business purposes), you need a VMware Workstation Pro license ($199.99).
The free Player version has some limitations compared to Pro:
For learning Kali Linux, the free Player version is perfectly adequate.
Performance: VMware generally offers better performance (5-15% faster), especially for 3D graphics and hardware-accelerated tasks.
Features: VMware Workstation Pro has more advanced features, but VirtualBox is more than sufficient for most penetration testing labs.
Cost: VirtualBox is completely free and open-source, while VMware Player is free for personal use only.
Compatibility: Both work well with Kali Linux. Kali provides pre-built images for both platforms.
Recommendation:
For comparison, see our VirtualBox installation guide.
NAT (Network Address Translation):
Bridged:
Host-only:
Recommendation: Start with NAT for safety and convenience. Switch to Bridged when you need to perform network penetration testing on your own network.
Snapshot strategy for penetration testing:
1. "Clean Install" - Right after installation, before any changes
2. "Tools Installed" - After installing VMware Tools and basic utilities
3. "Updated" - After full system update (apt full-upgrade)
4. "Pre-Attack" - Before starting each penetration testing session
5. "Working State" - When you have a good configuration you want to keep
Best practices:
Note: VMware Player only supports one snapshot at a time. For multiple snapshots, you need Workstation Pro.
Yes, absolutely recommended. VMware Tools (or open-vm-tools) provides:
â Copy/paste between host and VM (essential for commands and URLs) â Drag-and-drop files between host and VM â Shared folders to access host directories â Automatic screen resolution adjustment when resizing window â Better graphics performance and 3D acceleration â Time synchronization with host â Improved mouse integration - seamless cursor movement
Without VMware Tools, you'll be constantly frustrated by:
Installation is easy:
sudo apt update
sudo apt install -y open-vm-tools open-vm-tools-desktop
sudo reboot
This takes 2 minutes and makes your VM experience 100x better.
Congratulations! You've successfully installed Kali Linux in VMware and configured it for optimal performance. Your VM is now ready for penetration testing, security research, and learning.
This tutorial is Part 2 of our comprehensive Kali Linux series. Continue with:
Phase 1: Installation & Setup (Tutorials 1-5)
Phase 2: Essential Configuration (Coming Soon)
Now that you have a working Kali Linux environment:
sudo apt update && sudo apt full-upgradeIf you encountered issues during installation or have questions:
Installing Kali Linux in VMware provides a powerful, flexible, and safe environment for learning penetration testing and cybersecurity. VMware's superior performance, snapshot capabilities, and professional features make it an excellent choice for both beginners and advanced security practitioners.
Key takeaways:
â
Pre-built VMware images are the fastest installation method
â
Allocate at least 4 GB RAM and 2 CPU cores for acceptable performance
â
Install VMware Tools (open-vm-tools) for essential functionality
â
Use snapshots to protect against mistakes during testing
â
Start with NAT networking for safety, switch to Bridged for network testing
â
Keep your system updated with regular apt update && apt full-upgrade
â
Always practice ethical hacking - only test systems you own or have permission to test
Whether you're starting your cybersecurity journey or building a professional penetration testing lab, VMware provides the reliability and features you need.
Happy hacking, and stay ethical! ðð§
Last updated: January 2026 | Tutorial difficulty: BEGINNER | Estimated completion time: 30-60 minutes
Author: Andrax Pentester / Syed Abrar - Cybersecurity researcher and penetration testing specialist
Complete beginner's guide to Linux process management in Kali Linux. Learn process monitoring with ps, top, htop, process control with kill signals, systemd services, resource monitoring, and
19 min read