How to Install Kali Linux on VirtualBox: Step-by-Step Complete Guide (2026 Edition)
Complete step-by-step guide to installing Kali Linux on VirtualBox in 2026 (Windows 10/11 & Mac). Covers pre-built OVA vs ISO, Guest Additions full-screen fix, default credentials, and troubleshooting.
Why Install Kali Linux on VirtualBox?
Installing Kali Linux in a virtual machine using Oracle VM VirtualBox is the industry-standard, safest, and most practical way to learn ethical hacking and penetration testing. Whether you are running Windows 11, Windows 10, macOS, or Linux, VirtualBox allows you to run a complete, isolated Kali Linux environment without touching your primary operating system or risking data loss.
Key Benefits of VirtualBox for Cybersecurity Labs:
---
Prerequisites & Hardware Verification
Before beginning, verify that your computer meets the recommended hardware specifications and that hardware virtualization is enabled in your BIOS/UEFI.
System Requirements:
How to Check Virtualization on Windows:
---
Method 1: The 5-Minute Fast Track (Pre-Built VirtualBox Image)
Offensive Security provides official, pre-configured VirtualBox images that include VirtualBox Guest Additions pre-installed out of the box. This is the fastest and most reliable method for 90% of students and professionals.
Step 1: Download the Pre-Built VirtualBox Image
Step 2: Open and Run in VirtualBox
Step 3: Default Login Credentials
When the Kali Linux login screen appears, log in using the official default credentials:
*(Both username and password are all lowercase).*
---
Method 2: Manual Installation via Kali Linux ISO
If you prefer full control over disk partitioning, disk encryption (LUKS), and desktop environments (XFCE, GNOME, or KDE Plasma), install using the standard Kali Linux Installer ISO.
Step 1: Download the Kali Installer ISO
Step 2: Create a New Virtual Machine in VirtualBox
- Name: Kali-Linux-2026
- Type: Linux
- Version: Debian (64-bit)
- ISO Image: Browse and select your downloaded kali-linux-*.iso file.
- Base Memory: Minimum 4096 MB (4GB).
- Processors: 2 to 4 CPU cores (keep the green zone).
- Enable EFI: Leave unchecked (unless specifically needed).
- Select Create a Virtual Harddisk Now.
- Disk Size: At least 30.00 GB (40GB recommended for downloading wordlists and security tools).
- Select VDI (VirtualBox Disk Image) with Dynamically allocated storage.
Step 3: Configure Essential VM Settings
Before starting the VM, optimize these critical settings:
- Shared Clipboard: Bidirectional
- Drag'n'Drop: Bidirectional
- Video Memory: Drag the slider to the maximum (128 MB).
- Graphics Controller: VMSVGA (Recommended for Linux guests).
- Enable 3D Acceleration: Checked.
- Attached to: NAT (Allows Kali to share your host's internet connection securely).
Step 4: Step-by-Step Graphical Installation
- Language: English
- Country / Territory: Select your region.
- Keyboard: American English (or your layout).
- Hostname: kali (default).
- Domain name: Leave blank and click Continue.
- Full name of new user: Enter your name or kali.
- Username for account: kali.
- Password: Choose a secure password (e.g., kali or your own master password).
- Partitioning Method: Select Guided - use entire disk.
- Partitioning Scheme: Select All files in one partition (recommended for new users).
- Click Finish partitioning and write changes to disk, then select Yes when prompted.
- Leave the defaults selected: Desktop environment (XFCE), top10 tools, and default tools.
- Click Continue (installation takes 5–12 minutes).
- When asked "Install the GRUB boot loader to your primary drive?", select Yes.
- Select /dev/sda as the device for boot loader installation.
---
Post-Installation: Fix Full Screen & Guest Additions
If you installed from the ISO, you will notice your screen resolution is locked to 800x600. Installing VirtualBox Guest Additions enables auto-resizing, high DPI support, seamless mouse integration, and shared folders.
Open your Kali Linux terminal (top left icon or Ctrl + Alt + T) and run:
# Update repository package lists
sudo apt update
# Install the official VirtualBox Guest Additions for Kali Linux
sudo apt install -y virtualbox-guest-x11
# Reboot to apply graphics and kernel driver changes
sudo reboot
After rebooting:
---
Top 5 Troubleshooting Solutions
1. Black Screen on Boot (Windows 11 Hyper-V Conflict)
Symptoms: Kali starts booting, but gets stuck on a black screen with a blinking cursor.
Cause: Windows 11 Virtualization-Based Security (VBS) or Hyper-V conflicts with VirtualBox.
Fix:
2. No Internet Connection Inside Kali
Symptoms: Web browser shows "Server Not Found", and ping 8.8.8.8 fails.
Fix:
```bash
sudo systemctl restart NetworkManager
```
3. Screen Resolution Stuck at 800x600
Fix: Increase Video Memory in VirtualBox VM Settings under Display > Video Memory to 128MB, and ensure virtualbox-guest-x11 is installed as shown above.
4. USB Wi-Fi Adapter Not Detected for Wireless Attacks
Symptoms: iwconfig inside Kali only shows lo and eth0, but no wlan0.
Cause: VirtualBox bridges host Wi-Fi as an Ethernet cable. Virtual machines cannot access your laptop's internal PCI Wi-Fi card in monitor mode.
Fix:
5. Cannot Run Commands with Sudo / Permission Denied
Fix: Modern Kali Linux runs as a non-root user (kali). To execute administrative commands, prepend sudo, e.g.:
sudo apt update && sudo apt upgrade -y
To switch to a persistent root shell, type:
sudo -i
---
Best Practices & Next Steps in Your Learning Journey
Now that your Kali Linux virtual machine is operational, follow these best practices:
1. Take a Clean-State Snapshot Immediately
Before installing extra packages or altering configuration files, shut down your VM. Click the Camera / Snapshot icon in VirtualBox and label it: Fresh Install - Clean Baseline. You can now experiment without fear!
2. Master Essential Linux Commands
Navigate your system and manage processes like a cybersecurity pro. Explore our complete guide:
3. Calculate Target Subnets & IP Ranges
When scoping penetration testing exercises or setting up lab networks, use our:
4. Explore Pre-Installed Kali Tools
Start your hands-on journey with industry-standard penetration testing utilities:
Frequently Asked Questions
Continue Learning
Kali Linux Beginner Guide 2026: Getting Started with Ethical Hacking
The ultimate Kali Linux beginner guide for 2026. Step-by-step installation in VirtualBox, first boot configuration, snapshot management, and essential ethical hacking tools.
Getting Started · BeginnerComplete Kali Linux Beginner Guide 2026: From Zero to Hacker
Master Kali Linux from scratch with this comprehensive 2026 guide. Learn installation, essential commands, top tools, ethical hacking methodology, and career paths in cybersecurity.
Linux · BeginnerKali Linux in VirtualBox: Complete Setup Guide
Step-by-step guide to installing Kali Linux in VirtualBox including VM configuration, guest additions, networking modes, and post-installation setup.
Kali Linux Tools · IntermediateTop 50 Kali Linux Tools Explained with Examples
Comprehensive guide to the 50 most important Kali Linux tools for penetration testing. Each tool includes installation, usage examples, and practical scenarios.
Related Security Tools
CrackMapExec
CrackMapExec (CME) is a post-exploitation tool for pentesting Windows and Active Directory networks. It can enumerate users, spray passwords, execute commands, and move laterally.
Post ExploitationEvil-WinRM
Evil-WinRM is a dedicated tool for executing commands via the Windows Remote Management (WinRM) protocol. It serves as an exploit shell alternative during penetration testing engagements.
Post ExploitationImpacket
Impacket is a versatile collection of Python classes for working with network protocols. It features low-level programmatic access to packets alongside specific full-featured scripts for interacting with Windows domains.
Post ExploitationWeevely
Weevely is a stealthy PHP web shell designed for post-exploitation validation. It simulates a telnet-like terminal connection over HTTP, obfuscating communications within standard request vectors.