Embarking on a journey into ethical hacking and cybersecurity requires a powerful, flexible, and most importantly, safe learning environment. For aspiring cybersecurity professionals, penetration testers, and anyone curious about digital defense, the combination of Oracle VirtualBox and Kali Linux creates the perfect starting point: your first dedicated hacking lab.
At CybersecurityNation.com, we understand the importance of hands-on practice. That’s why this comprehensive guide will walk you through the entire process of how to download and install Oracle VirtualBox, then seamlessly set up the industry-standard Kali Linux operating system within your new virtual machine (VM). Get ready to build your foundational cybersecurity workstation, step-by-step! Also, watch the video step by step tutorial here:
Why VirtualBox and Kali Linux? The Essential Duo
Before we dive into the installation, let’s quickly recap why this pairing is so critical for your cybersecurity training:
- Virtual Machines (VMs): As discussed in our previous guides What is a Virtual Machine (VM)?, VMs allow you to run an entire operating system (like Kali Linux) inside a window on your current computer (your “host” OS) without making permanent changes to it. This provides a safe, isolated, and reversible environment for practicing ethical hacking techniques.
- Oracle VirtualBox: A free, powerful, and widely used virtualization software. It’s user-friendly and compatible with Windows, macOS, and Linux host systems, making it an ideal choice for beginners.
- Kali Linux: As highlighted in our “Why Linux for Ethical Hacking?” guide, Kali Linux is a specialized Debian-based Linux distribution pre-loaded with hundreds of essential tools for penetration testing, digital forensics, and ethical hacking. It’s the go-to OS for most cybersecurity professionals.
Together, they form the bedrock of your ethical hacking lab, enabling you to experiment, learn, and grow your skills without risk.
Pre-Installation Check: Enable Virtualization in BIOS/UEFI
Before installing VirtualBox, you must ensure virtualization technology is enabled in your computer’s BIOS or UEFI settings. This is often labeled as Intel VT-x (for Intel processors) or AMD-V (for AMD processors). Without it, VirtualBox won’t run 64-bit operating systems like Kali Linux.
- How to Enable: This process varies by computer manufacturer. You’ll need to restart your computer and press a specific key (e.g., F2, F10, F12, DEL) during startup to enter your BIOS/UEFI settings. Navigate to a section typically named “CPU Configuration,” “Processor,” “Virtualization Technology,” or “VT-x/AMD-V” and ensure it’s set to “Enabled.”
- Guide: For a more detailed walkthrough on enabling virtualization, you can refer to resources like this guide on enabling virtualization in BIOS.
Step-by-Step Guide: Download VirtualBox and Kali Linux
Part 1: Download Oracle VirtualBox



- Go to the VirtualBox Website: Open your web browser and navigate to virtualbox.org.
- Click on “Downloads”: You’ll find a prominent “Downloads” link or button on the homepage.
- Select Your Host Package: Choose the appropriate host package for your operating system:
- Windows hosts: For Windows users.
- macOS / Intel hosts: For Mac users with Intel processors.
- macOS / Arm64 (M1/M2/M3) hosts: For Mac users with Apple Silicon processors (M-series chips).
- Linux distributions: For users with a Linux host OS.
- Download the Extension Pack: Below the main host packages, you’ll also see an “Oracle VM VirtualBox Extension Pack” link. Download this as well; it provides additional functionality like USB 2.0/3.0 support and better webcam integration for your VMs.
Part 2: Download Kali Linux


- Go to the Kali Linux Website: Open a new tab and go to kali.org.
- Click “Download”: Locate and click the “Download” link.
- Choose Your Platform (Installer Images): You’ll see different download options. For a VirtualBox installation, you want to select “Installer Images (ISO).”
- Select Architecture:
- For most Windows and older Mac users, choose “x86_64”.
- For Apple Silicon (M1/M2/M3) Mac users, select “Apple Silicon (ARM64)”.
- Download the Installer ISO: Click the download icon (usually a direct download or a torrent option). The ISO file will be quite large (several GBs), so allow some time for the download to complete.
Once both VirtualBox (installer and extension pack) and the Kali Linux ISO are downloaded, you should have three files ready on your system.
Step-by-Step Guide: Install Oracle VirtualBox
- Start VirtualBox Installation: Locate the downloaded VirtualBox installer file (e.g., VirtualBox-7.0.x-xxxxxx-Win.exe).
- Run as Administrator: Right-click on the VirtualBox installer icon and select “Run as administrator” (on Windows) or open it as you would any application (on macOS/Linux).
- Follow the Installation Wizard:
- Click “Next” to begin.
- Custom Setup: You can generally leave the default components selected unless you have specific needs. Click “Next.”
- Installation Location: You can change the installation path or leave it as the default. Click “Next.”
- Network Interfaces Warning: You will likely receive a warning about network disconnection during installation. Be aware that your network connection will temporarily be interrupted. Ensure you’re not in the middle of any critical online operations before proceeding. Click “Yes” to continue.
- Install: Click “Install” to begin copying files.
- Windows Security: You might see prompts to install device software. Click “Install” each time to allow VirtualBox to install necessary drivers.
- Finish: Once the installation is complete, click “Finish.” Ensure the “Start Oracle VM VirtualBox after installation” checkbox is ticked.
- Install Extension Pack: After VirtualBox launches, go to File > Preferences > Extensions. Click the green ‘+’ icon and navigate to where you saved the downloaded VirtualBox Extension Pack. Select it and click “Install.” Agree to the license.
Step-by-Step Guide: Create and Install Kali Linux Virtual Machine
Now, with VirtualBox installed, let’s create your Kali Linux VM!
- Start Oracle VirtualBox Manager: If it’s not already open, launch VirtualBox.
- Click “New”: On the Oracle VirtualBox Manager window, click the “New” button (usually a blue icon with a star) to create a new virtual machine.
- VM Name & ISO Image:
- Name: In the “Name” field, add your desired name (e.g., “Kali Linux 2023”).
- ISO Image: Click the drop-down arrow or “Other…” to navigate to the folder where you saved your Kali Linux ISO image. Select the Kali ISO file. VirtualBox should intelligently detect that it’s a “Debian (64-bit)” operating system.
- Check “Skip Unattended Installation”: Ensure this box is checked, as we’ll perform a manual installation.
- Click “Next.”
- Hardware (Base Memory & Processors):
- Base Memory (RAM): This depends on your host computer’s RAM.
- If your host RAM is 16GB or more, allocate 4GB (4096 MB) to your Kali VM.
- If your host RAM is 8GB, allocate 2GB (2048 MB) to your Kali VM. (Avoid allocating more than half of your host’s RAM.)
- Processors (CPUs): Select 2 CPUs if your system specification allows. This provides a good balance for performance without overly taxing your host.
- Click “Next.”
- Base Memory (RAM): This depends on your host computer’s RAM.
- Virtual Hard Disk:
- Virtual Hard Disk Size: Select a minimum of 50 GB. Kali Linux officially recommends 20GB but 50GB provides ample space for tools, updates, and custom files as you learn.
- Click “Next.”
- Summary: Review the summary of your VM settings. If everything looks correct, click “Finish.”
Your Kali Linux VM is now created!
Final Installation of Kali Linux
- Start the VM: In the VirtualBox Manager, select your “Kali Linux” VM from the list and click the “Start” button (the green arrow).
- Kali Boot Menu: The VM will boot up and present the Kali Linux installer menu.
- Select “Graphical install” (recommended for beginners) and press Enter.
- Follow the Installer Prompts:
- Language, Location, Keyboard Layout: Choose your preferences.
- Hostname: You can leave this as “kali” or choose a custom name.
- Domain name: Leave blank or use a generic local domain name (e.g., “localdomain”).
- Full name for the new user: Enter your full name.
- Username for your account: This will be your login username (e.g., “kaliuser”).
- Password for the new user: CREATE A STRONG, UNIQUE PASSWORD. This is critical for securing your VM.
- Partitioning method: Select “Guided – Use entire disk.” This is safe as it only applies to the virtual disk you allocated earlier.
- Select disk to partition: Choose the virtual disk (e.g., “ATA VBOX HARDDISK”).
- Partitioning scheme: “All files in one partition” is generally fine for a learning VM.
- Write changes to disk? Select “Yes.”
- Network Mirror: Select “No” initially to speed up installation; you can update repositories later.
- GRUB Boot Loader: Select “Yes” to install GRUB.
- Device for boot loader installation: Select the virtual disk (e.g., /dev/sda).
- Finish Installation: Click “Continue” to finalize.
- Reboot: Once the installation is complete, the VM will prompt you to reboot. Remove the Kali Linux ISO from the virtual drive (VirtualBox will usually do this automatically, or you can go to Devices > Optical Drives > Remove disk from virtual drive).
- Login: Your Kali Linux VM will now boot to the login screen. Enter the username and password you created during installation.
Congratulations! You have successfully downloaded and installed Oracle VirtualBox and set up your first Kali Linux virtual machine. You now have a powerful, safe environment to begin your ethical hacking and cybersecurity journey.
What’s Next?
With Kali Linux installed, you’re ready to explore its vast array of tools. Remember to keep both VirtualBox and Kali Linux updated to ensure security and optimal performance. Your ethical hacking lab is now open for business!
For further assistance, remember to consult official documentation and our other guides on CybersecurityNation.com.
Did this guide help you successfully set up your Kali Linux VM? Share your experiences or any questions in the comments below! Don’t forget to like and share this post to help others build their own ethical hacking labs!







Leave a Reply