Jump to content

How to Set Up Kali Linux on VirtualBox?


Linux Hint

Recommended Posts

Kali Linux is a Linux distribution derived from Debian. It is mainly used for security testing and maintenance. It has more than 600 security auditing and testing tools. Nowadays, it is widely used by IT professionals as well as students for learning, testing, legal hacking, and security purposes.

Using Kali Linux in the hypervisor tool is one of the best ways as VMs allow us to run multiple OS on the system and easily interact with other virtual machines. The Kali Linux in the VM cannot affect the original OS of the system. Users can boot the Kali Linux through Live USB, but this is not a good approach as turning off the Kali from the system removes all the processing and data. In contrast, the Kali virtual machine can be run as a separate host and preserve Kali’s data on system memory.

This blog will demonstrate:

Prerequisites

To set up and run Kali Linux on the host system, the user is required to fulfill the following prerequisites:

  • Install VirtualBox: To run Kali Linux using VirtualBox, first install the “Oracle VirtualBox” on the system by following the Install Oracle VirtualBox 7 on Windows article.
  • Hardware Virtualization Supported System: To run the Kali Linux in a virtual machine, the user must have the hardware virtualization supported system and this feature must be enabled. To enable or check virtualization on the system, follow our linked “Enable VT-x/VT-d/AMD-v Hardware Virtualization Feature” article.
  • Download Kali ISO Image: To run the Kali Linux on a VirtualBox, first download the ISO image to install the Kali Linux. For this purpose, first navigate to Kali’s official website and download the Kali image ISO by hitting below pointed “Download” button:

Linux-on-VirtualBox-1.png

This will download the Kali Linux ISO file in the Windows “Downloads” directory:

Linux-on-VirtualBox-2.png

Now, use the downloaded ISO in VirtualBox to run Kali Linux in a virtual machine by following the below section.

How to Setup Kali Linux on VirtualBox?

The VirtualBox is one of the hypervisor tools that provide virtualization. It enables us to execute the different operating systems on a virtual machine without affecting the physical machine. To set up and run Kali Linux in VirtualBox’s virtual machine, follow the following instructions.

Step 1: Launch VirtualBox
First, launch the VirtualBox on the system by searching it in the Start menu:

Linux-on-VirtualBox-3.png

Step 2: Create a New Machine
Create a new machine by hitting the below pointed “New” button:

Linux-on-VirtualBox-4.png

Step 3: Provide ISO Image
Set the name of the Virtual Machine, the directory where the Virtual Machine stores the data on the host system. After that, provide the ISO image. For this purpose, click on the “ISO Image” drop-down menu and browser the location where the Kali ISO image is downloaded:

Linux-on-VirtualBox-5.png

Select the ISO image and hit the “Open” button. Here, our Kali ISO image exists in the “Downloads” directory:

Linux-on-VirtualBox-6.png

After providing the ISO, hit the “Next” button to proceed:

Linux-on-VirtualBox-7.png

Step 4: Configure Essential Settings
Next, configure the basic Hardware settings such as allocating the memory and processor to the Kali Linux virtual machine, and hit the “Next” button. For instance, we have assigned 2GB RAM and 2 processors:

Linux-on-VirtualBox-8.png

Now, create a Virtual hard disk to store the Kali Linux machine data. For this purpose, mark “Create a Virtual Hard Disk Now”, select the Disk size from the below-highlighted slider, and hit “Next” to proceed. Here, the user can also use an existing virtual disk file instead of creating a new one:

Linux-on-VirtualBox-9.png

At this point, the process of creating a Kali Linux machine is completed, review the short summary of the VM and press the “Finish” button:

Linux-on-VirtualBox-10.png

Step 5: Start Kali Virtual Machine
Here, you can see the Kali Linux VM is created. Now, select the machine and hit the “Start” icon to Power On the machine:

Linux-on-VirtualBox-11.png

Step 6: Install Kali
After starting the machine, the Kali Linux installer menu will appear on the screen. To install the Graphical Kali Linux interface, first, use the “DOWN” arrow then use the “UP” arrow to move to the “Graphical Install” option. Then, press the “Enter” key:

Linux-on-VirtualBox-12.png

Now, select the language to complete the installation process and press the “Continue” button. Here, we have selected the “English” language:

Linux-on-VirtualBox-13.png

Next, select the location from where you will use “Kali Linux”. This will be helpful for identifying the time zone for the machine. Then, press the “Continue” to proceed:

Linux-on-VirtualBox-14.png

Select the Keyboard for the Kali machine. Here we have chosen the “American English” keyboard:

Linux-on-VirtualBox-15.png

This will start installing and configuring the essential components according to the provided information:

Linux-on-VirtualBox-16.png

Step 7: Set Kali User
In the next step, the on-screen instruction will ask to set the user on the Kali Linux system. For this purpose, first, set the “Hostname” for the Kali Linux machine and press the “Continue”:

Linux-on-VirtualBox-17.png

Next, provide the domain name that is part of your internet address and hit the “Continue” to proceed. For instance, we have set the dummy domain name as “Kali Linux”:

Linux-on-VirtualBox-18.png

Now, create a new user for the Kali Linux virtual machine. Set the username and press the “Continue” button:

Linux-on-VirtualBox-19.png

Now, provide the username for your Kali Linux VM. Press the “Continue” to move to next step:

Linux-on-VirtualBox-20.png

Set the User account password and re-enter the password for verification. After that, hit the “Continue

Linux-on-VirtualBox-21.png

Step 8: Set Time Zone
Now, choose the time zone to set the Kali Linux clock accordingly, and press “Continue”. If your required time zone is not available in the list, move back to the “Select your location” screen, and set the correct location:

Linux-on-VirtualBox-22.png

Step 9: Set Disk Partition Settings
Next, the “Partition disks” setting will open on the screen. Select the “Guided – use entire disk” option and press the “Continue”:

Linux-on-VirtualBox-23.png

Go with the default selected option and hit “Continue”:

Linux-on-VirtualBox-24.png

Now, select the below-pointed option to store all Kali Linux files in one partition and click on “Continue”:

Linux-on-VirtualBox-25.png

Now, save the changes by selecting the below-highlighted option. Proceed to the next step by hitting “Continue”:

Linux-on-VirtualBox-26.png

A confirmation box will pop out on the screen. Mark the “Yes” radio and press “Continue”:

Linux-on-VirtualBox-27.png

This will start configuring the Disk partition and install the base system:

Linux-on-VirtualBox-28.png

Step 10: Install Kali Desktop
Set up the Desktop environment to use Kali Linux. For this purpose, choose Kali’s default desktop and hit “Continue”:

Linux-on-VirtualBox-29.png

This will start installing the Kali default Desktop on the Virtual Machine:

Linux-on-VirtualBox-30.png

Step 11: Install GRUB Boot Loader
The next, instruction will ask to download the GRUB boot loader on the system. The GRUB boot loader will help you initialize hardware and load the essential components to complete the boot process. It enables us to choose between operating systems if the system has multiple OS. However, usually, this is not required but in order to install the GRUB boot loader, choose the “Yes” radio and press “Continue”:

Linux-on-VirtualBox-31.png

Go with default settings and proceed to the next step by pressing “Continue”:

Linux-on-VirtualBox-32.png

Step 12: Restart the Kali Virtual Machine
After completing all the Kali Linux configurations, users are required to restart the system. To do so, hit “Continue”:

Linux-on-VirtualBox-33.png

Here, the Kali Linux is rebooting in the VirtualBox VM:

Linux-on-VirtualBox-34.png

Step 13: Log in to the User Account
Provide the user login credentials that are configured during the installation process. After that, press the “Log In” button:

Linux-on-VirtualBox-35.png

The below result shows that we have effectively set up the Kali Linux in VirtualBox. Now, the user can start using Kali Linux on the system:

Linux-on-VirtualBox-36.png

We have demonstrated the method to set up Kali Linux on VirtualBox.

Conclusion

To set up and install Kali Linux on the VirtualBox, first, install the Kali Linux ISO image from Kali’s official website. Then, create a new machine in VirtualBox, provide the ISO image, and allocate essential resources such as Processors, memory, and Hard disk space. After that, start the Kali Linux machine and complete the on-screen instructions, setting the time zone, Kali user, disk partitions, and GRUB boot loader. After that, restart the system and start using Kali Linux in VirtualBox. We have illustrated how to install and set up Kali Linux on VirtualBox.

View the full article

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...