GO KALI FREE
BeginnerGetting Started

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.

#Kali Linux#VirtualBox#installation#virtual machine#ethical hacking#troubleshooting#Linux

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:

  • **Instant Snapshots:** Save your VM's exact state before testing risky exploits. If a tool misconfiguration breaks your environment, restore it in under 3 seconds.
  • **Isolated Sandbox:** Practice penetration testing safely without exposing your host machine's sensitive files or credentials.
  • **Cross-Platform:** Works seamlessly on Windows 10/11 (both Intel and AMD processors) and Intel/Apple Silicon Macs.
  • **Zero Cost:** Both VirtualBox and Kali Linux are 100% free and open-source.
  • ---

    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:

  • **Host RAM:** 8GB minimum (16GB recommended so you can give 4GB to Kali and keep 12GB for your host).
  • **Available Storage:** At least 40GB free SSD space.
  • **CPU:** 64-bit multi-core processor (Intel VT-x or AMD-V supported).
  • **VirtualBox Version:** Oracle VM VirtualBox 7.0 or newer.
  • How to Check Virtualization on Windows:

  • Press `Ctrl + Shift + Esc` to open **Task Manager**.
  • Click the **Performance** tab and select **CPU**.
  • Look at the bottom right for **Virtualization: Enabled**.
  • *(If Disabled, reboot into your BIOS/UEFI and enable Intel Virtualization Technology (VT-x) or AMD SVM).*
  • ---

    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

  • Visit the official Kali website: `https://www.kali.org/get-kali/#kali-virtual-machines`.
  • Locate the **Virtual Machines** card and download the **VirtualBox** image (available as a `.7z` archive or `.ova` file).
  • If downloaded as a `.7z` file, use **7-Zip** (Windows) or **Keka** (Mac) to extract the archive to a dedicated folder (e.g. `C:\VMs\Kali-Linux`).
  • Step 2: Open and Run in VirtualBox

  • Open Oracle VM VirtualBox.
  • In the extracted folder, double-click the blue `.vbox` machine file (or click **Machine > Add** in VirtualBox and browse to the `.vbox` file).
  • Kali Linux will instantly appear in your VirtualBox machine list with all RAM, CPU, and display settings pre-configured!
  • Click **Start** (Green arrow).
  • Step 3: Default Login Credentials

    When the Kali Linux login screen appears, log in using the official default credentials:

  • **Username:** `kali`
  • **Password:** `kali`
  • *(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

  • Navigate to `https://www.kali.org/get-kali/#kali-platforms`.
  • Under the **Installer Images** tab, download the **Complete Installer (64-bit)** ISO file.
  • Step 2: Create a New Virtual Machine in VirtualBox

  • Open VirtualBox and click **New**.
  • Set the VM properties:
  • - Name: Kali-Linux-2026

    - Type: Linux

    - Version: Debian (64-bit)

    - ISO Image: Browse and select your downloaded kali-linux-*.iso file.

  • Check the box **Skip Unattended Installation** to retain full manual control.
  • **Hardware Allocation:**
  • - Base Memory: Minimum 4096 MB (4GB).

    - Processors: 2 to 4 CPU cores (keep the green zone).

    - Enable EFI: Leave unchecked (unless specifically needed).

  • **Virtual Hard Disk:**
  • - 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.

  • Click **Finish**.
  • Step 3: Configure Essential VM Settings

    Before starting the VM, optimize these critical settings:

  • Select your Kali VM and click **Settings (Gear icon)**.
  • **General > Advanced:**
  • - Shared Clipboard: Bidirectional

    - Drag'n'Drop: Bidirectional

  • **Display > Screen:**
  • - Video Memory: Drag the slider to the maximum (128 MB).

    - Graphics Controller: VMSVGA (Recommended for Linux guests).

    - Enable 3D Acceleration: Checked.

  • **Network > Adapter 1:**
  • - Attached to: NAT (Allows Kali to share your host's internet connection securely).

  • Click **OK**.
  • Step 4: Step-by-Step Graphical Installation

  • Click **Start** to boot the VM.
  • At the Kali boot menu, select **Graphical Install** and press `Enter`.
  • Follow the wizard prompts:
  • - 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.

  • **Software Selection:**
  • - Leave the defaults selected: Desktop environment (XFCE), top10 tools, and default tools.

    - Click Continue (installation takes 5–12 minutes).

  • **Install GRUB Boot Loader:**
  • - When asked "Install the GRUB boot loader to your primary drive?", select Yes.

    - Select /dev/sda as the device for boot loader installation.

  • Click **Continue** to reboot into your newly installed Kali Linux system!
  • ---

    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:

  • Maximize the VirtualBox window.
  • In the VirtualBox top menu, verify **View > Auto-resize Guest Display** is checked.
  • Your screen will now automatically scale to your host monitor's full 1080p, 2K, or 4K resolution!
  • ---

    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:

  • In Windows 11, open **Windows Security**.
  • Go to **Device Security > Core Isolation details**.
  • Toggle **Memory Integrity** to **Off** and reboot your PC.
  • In VirtualBox VM settings, change **System > Acceleration > Paravirtualization Interface** to **KVM**.
  • 2. No Internet Connection Inside Kali

    Symptoms: Web browser shows "Server Not Found", and ping 8.8.8.8 fails.

    Fix:

  • In VirtualBox, go to **Settings > Network > Adapter 1**.
  • Verify **Attached to** is set to **NAT** (not Host-only).
  • Open terminal in Kali and restart networking:
  • ```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:

  • Purchase a compatible external USB Wi-Fi adapter (e.g. Alfa AWUS036ACH or TP-Link TL-WN722N v1).
  • Download and install the **Oracle VM VirtualBox Extension Pack** on your host.
  • Plug in the USB Wi-Fi adapter, then in VirtualBox click **Devices > USB** and check your adapter.
  • 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:

  • [Kali Linux Commands Cheat Sheet (164 Essential Commands)](/linux-commands)
  • [Practice Linux Commands in our Free Interactive Terminal Sandbox](/terminal-sandbox)
  • 3. Calculate Target Subnets & IP Ranges

    When scoping penetration testing exercises or setting up lab networks, use our:

  • [Free Online Subnet Calculator & CIDR Tool](/cybersecurity-tools/subnet-calculator)
  • 4. Explore Pre-Installed Kali Tools

    Start your hands-on journey with industry-standard penetration testing utilities:

  • [Nmap Network Scanning & Cheat Sheet Guide](/tools/nmap)
  • [Wireshark Packet Analysis Tutorial](/tools/wireshark)
  • [THC Hydra Password Auditing Guide](/tools/hydra)
  • [SQLMap Automated Vulnerability Testing](/tools/sqlmap)
  • Frequently Asked Questions

    What is the default username and password for Kali Linux on VirtualBox?

    The default credentials for all official Kali Linux virtual machine images are username 'kali' and password 'kali'. Both are lowercase. You can change this after logging in using the 'passwd' command.

    How much RAM and disk space does Kali Linux need in VirtualBox?

    For smooth performance, allocate at least 4GB (4096MB) of RAM, 2 CPU cores, and a minimum of 30GB (preferably 40GB) dynamically allocated virtual hard disk space.

    How do I fix Kali Linux screen resolution in VirtualBox?

    To enable full-screen resolution and auto-resizing, open the terminal in Kali and run: 'sudo apt update && sudo apt install -y virtualbox-guest-x11', then reboot with 'sudo reboot'. Finally, ensure 'View > Auto-resize Guest Display' is checked in the VirtualBox menu.

    Should I install Kali Linux from the ISO or use the pre-built VirtualBox image?

    For beginners and quick setups, the official pre-built VirtualBox image (.7z or .ova) is recommended because it comes pre-configured with VirtualBox Guest Additions and optimal VM drivers in under 5 minutes. Use the ISO installer if you require customized disk encryption (LUKS) or minimal package profiles.

    Why does my Kali Linux VM show a black screen after booting?

    On Windows 10 and 11, a black screen usually occurs due to Hyper-V or Core Isolation (Memory Integrity) collisions with VirtualBox. Disable Memory Integrity under Windows Security > Device Security > Core Isolation, or increase Video Memory to 128MB and enable 3D Acceleration in VirtualBox Display settings.

    How do I enable copy-paste and drag-and-drop between Windows and Kali Linux?

    In the VirtualBox VM window, go to Devices > Shared Clipboard > Bidirectional, and Devices > Drag and Drop > Bidirectional. Ensure VirtualBox Guest Additions are installed.

    Can I use my host Wi-Fi card for wireless attacks inside VirtualBox?

    VirtualBox bridges your host network connection as a simulated wired Ethernet adapter (eth0). To perform Wi-Fi packet injection and monitor mode (with Aircrack-ng or Wifite), you must connect an external USB Wi-Fi adapter and attach it via Devices > USB in VirtualBox.

    Why is running Kali Linux in a virtual machine better than dual-booting?

    Virtual machines provide snapshots (instant rollback to a clean state if a tool breaks), complete isolation from your host operating system, and the ability to run Kali alongside your everyday tools without repartitioning your physical drive.

    Continue Learning

    Getting Started · Beginner

    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 · Beginner

    Complete 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 · Beginner

    Kali 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 · Intermediate

    Top 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

    Post Exploitation

    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 Exploitation

    Evil-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 Exploitation

    Impacket

    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 Exploitation

    Weevely

    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.