
Learn how to install Kali Linux in VirtualBox step-by-step. Complete beginner-friendly guide with system requirements, configuration tips, troubleshooting, and post-installation setup for you
Learn how to install Kali Linux dual boot alongside Windows 10/11. Complete step-by-step guide with partitioning, GRUB setup, troubleshooting, and safety warnings to prevent data loss.
13 min read
Transparent vs UUPS, uninitialized implementations, and storage-layout collisions — local forge inspect lab. No live upgrades.
35 min read
Installing Kali Linux in VirtualBox is the safest and most practical way to start your journey into penetration testing and ethical hacking. Whether you're a complete beginner or transitioning from another operating system, running Kali Linux as a virtual machine allows you to practice security testing without affecting your main system.
In this comprehensive guide, you'll learn how to set up a fully functional Kali Linux VirtualBox environment from scratch. We'll cover everything from downloading the ISO to configuring optimal VM settings, installing Guest Additions, and troubleshooting common issues.
Before we dive into the installation process, let's understand why VirtualBox is the preferred choice for running Kali Linux:
VirtualBox makes it incredibly easy to set up a portable penetration testing lab that you can take anywhere. If you're interested in exploring other installation methods, check out our guides on VMware installation, creating a Live USB, or dual-booting with Windows.
Before proceeding with the Kali Linux installation, ensure your computer meets these requirements:
| Component | Minimum Requirements | Recommended Specifications |
|---|---|---|
| Processor | Dual-core CPU (Intel VT-x/AMD-V support) | Quad-core CPU (3.0 GHz+) |
| RAM | 4 GB (2 GB for VM) | 8 GB+ (4 GB for VM) |
| Storage | 25 GB free disk space | 50 GB+ free disk space |
| Graphics | Basic display adapter | Dedicated GPU (optional) |
| Host OS | Windows 7+, macOS 10.12+, Linux | Windows 10/11, latest macOS |
| Virtualization | Hardware virtualization enabled in BIOS | VT-x/AMD-V enabled |
| Internet | Required for updates | High-speed connection |
Note: If your system doesn't meet the minimum requirements, consider using a Live USB installation instead.
The first step in setting up your Kali Linux virtual machine is downloading the official installation image.
Visit the official Kali Linux download page: kali.org/get-kali
Choose the Installer Images section
Select the 64-bit version (recommended for most systems)
kali-linux-2026.x-installer-amd64.isoDownload using either:
Verify the download (optional but recommended):
Windows checksum verification:
certutil -hashfile kali-linux-2026.x-installer-amd64.iso SHA256
Linux/macOS checksum verification:
shasum -a 256 kali-linux-2026.x-installer-amd64.iso
Compare the output with the official checksum on the Kali website. If they match, your download is authentic and complete.
Kali also offers pre-built VirtualBox images that save installation time, but for learning purposes, we recommend the full installation process covered in this tutorial.
Next, you'll need Oracle VM VirtualBox installed on your host system.
Visit the official VirtualBox website: virtualbox.org
Click "Download VirtualBox"
Select your host operating system:
Download the VirtualBox Extension Pack (important for USB support and other features)
Install VirtualBox:
For Windows:
.exe installerFor macOS:
.dmg fileFor Linux (Ubuntu/Debian):
sudo apt update
sudo apt install virtualbox virtualbox-ext-pack
Install the Extension Pack:
Enable Virtualization in BIOS (if not already enabled):
Now that you have VirtualBox installed, let's create your Kali Linux VM.
Launch VirtualBox and click the "New" button (or press Ctrl+N)
Configure Basic VM Settings:
Name and Operating System:
Kali Linux 2026 (or any descriptive name)LinuxDebian (64-bit)Click "Next"
Memory Size (RAM) Allocation:
2048 MB (2 GB)4096 MB (4 GB)8192 MB (8 GB) if you have 16 GB+ host RAMTip: Stay in the green zone shown on the slider. Never allocate more than 50% of your total RAM.
Click "Next"
Hard Disk Configuration:
Hard Disk File Type:
Storage on Physical Hard Disk:
File Location and Size:
Your virtual machine is now created! But we need to configure additional settings before installation.
Optimal configuration is crucial for smooth Kali Linux performance.
Navigate to System > Motherboard tab:
ICH9 (recommended)USB Tablet (for better mouse integration)Switch to System > Processor tab:
Go to System > Acceleration tab:
Default or KVMVMSVGA or VBoxSVGANavigate to Network > Adapter 1 tab:
NAT (default - internet access, isolated from host)Bridged Adapter (appears as separate device on network)Host-only Adapter (isolated network with host access only)For beginners: Start with
NAT. You can change this later based on your testing needs.
Go to General > Advanced tab:
BidirectionalBidirectionalClick "OK" to save all settings
Now comes the main installation process.
Select your Kali Linux VM and click "Start" (green arrow)
The VM will boot from the ISO. You'll see the Kali Linux boot menu.
Select "Graphical Install" (recommended for beginners) using arrow keys and press Enter
Select Language:
Select Location:
Configure Keyboard:
Configure Network:
kali or a custom name (lowercase, no spaces)Set Up Users and Passwords:
kali or your preferred usernameSecurity Tip: Use a strong password even in VMs. Consider a password manager.
Configure the Clock:
Partition Disks (Critical Step):
Install the System:
Configure the Package Manager:
Select Software to Install:
desktop-xfce (lightweight, recommended)desktop-gnome (heavier but modern)desktop-kde (feature-rich)top-10 (top 10 security tools)default (standard tool collection)large (extensive tool collection - requires more space)Install GRUB Boot Loader:
/dev/sda (your virtual disk)Installation Complete:
kali)Congratulations! You've successfully installed Kali Linux in VirtualBox!
After installation, perform these essential steps to optimize your system.
Open the terminal (click the terminal icon in the taskbar) and run:
sudo apt update
sudo apt full-upgrade -y
Enter your password when prompted. This updates all packages to the latest versions.
sudo reboot
uname -a
lsb_release -a
This confirms your Kali Linux version and kernel information.
sudo nano /etc/apt/sources.list
Ensure it contains:
deb http://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware
Save (Ctrl+X, Y, Enter) and update:
sudo apt update
For a comprehensive post-installation guide including tool configuration and security hardening, see our Kali Linux Post-Installation Setup tutorial.
Guest Additions provide essential features like shared clipboard, drag-and-drop, and better screen resolution.
Start your Kali Linux VM and log in
Install Required Packages:
sudo apt update
sudo apt install -y dkms linux-headers-$(uname -r)
Insert Guest Additions CD Image:
Mount and Install:
The CD might auto-mount. If not:
sudo mkdir -p /mnt/cdrom
sudo mount /dev/cdrom /mnt/cdrom
cd /mnt/cdrom
sudo sh ./VBoxLinuxAdditions.run
Wait for Installation to Complete (2-5 minutes)
Reboot the VM:
sudo reboot
After reboot, test:
In VirtualBox: Settings > Shared Folders > Add new shared folder
shared)In Kali Linux, add your user to the vboxsf group:
sudo usermod -aG vboxsf $USER
cd /media/sf_shared
ls
Snapshots are one of the most powerful features of virtual machines.
Ensure your VM is running or powered off (clean state)
Take a Snapshot:
Name Your Snapshot:
Click "OK"
Your VM will revert to the exact state when the snapshot was taken.
Here are solutions to frequent Kali Linux VirtualBox problems:
Symptom: Error "VT-x/AMD-V hardware acceleration is not available"
Solution:
bcdedit /set hypervisorlaunchtype off
Symptom: VM boots but shows only a black screen
Solution:
VBoxVGA or VMSVGASymptom: Kali Linux runs very slowly
Solution:
sudo apt install xfce4-goodies
Symptom: No internet connection in Kali Linux
Solution:
ip addr show
ping -c 4 8.8.8.8
ping -c 4 google.com
sudo systemctl restart NetworkManager
sudo ifconfig eth0 down
sudo ifconfig eth0 up
sudo dhclient eth0
Symptom: Can't get fullscreen or proper resolution
Solution:
xrandr
xrandr -s 1920x1080
Symptom: System won't boot, shows kernel panic or errors
Solution:
Symptom: Can't copy/paste between host and VM
Solution:
sudo systemctl restart vboxadd-service
Symptom: USB devices don't connect to the VM
Solution:
sudo usermod -aG vboxusers $USER
For more troubleshooting resources, visit the official Kali Linux documentation.
Minimum: 2 GB (2048 MB) for basic functionality Recommended: 4 GB (4096 MB) for smooth operation Optimal: 8 GB (8192 MB) if you plan to run multiple tools simultaneously
General rule: Allocate no more than 50% of your host system's total RAM. For example, if you have 8 GB of RAM, allocate maximum 4 GB to the VM.
NAT Mode: Default choice, provides internet access while isolating the VM. Good for beginners and safe for most testing scenarios.
Bridged Adapter: Makes the VM appear as a separate device on your network with its own IP address. Use this when you need to scan other devices on your local network.
Host-only Adapter: Creates an isolated network between host and VM only. Useful for creating multi-VM lab environments without internet access.
Internal Network: For connecting multiple VMs together in an isolated network.
For learning and external penetration testing practice, start with NAT mode.
Minimum: 25 GB - enough for base installation and light tool usage Recommended: 50 GB - comfortable space for additional tools and data Extensive Use: 100 GB+ - if you plan to install large databases (like Metasploit payloads) or save many project files
Use dynamically allocated storage, which only uses actual space as needed rather than reserving the entire disk size upfront.
Yes, you can run multiple VMs if your system has sufficient resources:
Requirements per additional VM:
Use cases for multiple VMs:
Use snapshots and cloning features to quickly create multiple configurations.
Critical snapshot moments:
Best practices:
Avoid: Taking too many snapshots wastes disk space. Keep 3-5 strategic snapshots and delete intermediates.
Congratulations! You've successfully set up Kali Linux in VirtualBox and learned essential configuration, troubleshooting, and snapshot management.
This is Tutorial 1 of 105 in our Kali Linux Mastery series. Here's what comes next:
Phase 1: Installation & Setup
Coming Up in Phase 2: Linux Basics
Now that your Kali Linux environment is ready:
Connect with other learners and security professionals:
If you encountered any issues not covered in the troubleshooting section:
Remember: Every pentester started exactly where you are now. The journey from beginner to expert requires patience, practice, and persistence.
Next Step: Proceed to Tutorial 5: Post-Installation Setup to configure your new Kali Linux installation with essential tools, updates, and security configurations.
Happy hacking, and welcome to the world of ethical penetration testing! 🛡️🔐
This tutorial is part of the Kali Linux Mastery series (Tutorial 1/105) by Andrax Pentester / Syed Abrar. Last updated: January 2026.
How to write an Immunefi-ready bug report: structure, PoC expectations, severity language — template practice only.
40 min read
Sign in to leave a comment.