DEV Community

Cover image for How to Install Kali Linux on VirtualBox: A Step-by-Step Guide
Piyush Shrivastava
Piyush Shrivastava

Posted on

How to Install Kali Linux on VirtualBox: A Step-by-Step Guide

Alt Text
Kali Linux is a Debian-based Linux system that was created for penetration testing and is particularly beneficial for security professionals and amateurs. Kali Linux, formerly known as BackTrack Linux, comes with a number of network auditing tools and apps. Kali can be used as a Live DVD or installed as a host operating system (OS) on a computer like any other Linux.However, using Kali as a general-purpose desktop operating system is not recommended. At the same time, settings are not saved after a system reboot when using Kali Live DVD. Virtual machines can be extremely useful in this case. In today's blog post, we'll look at how to set up Kali Linux as a virtual machine in VirtualBox (VM).

Software Required To Download

Download This All Tools.

Kali Linux Installation Image Download

Alt Text
Click Here To Download
Now, After Downloading Let's Move Ahead!

Creating a New Virtual Machine
Alt Text
Set the following VM parameters:
Name: Kali Linux
Note: You Can Enter Any Name You Want Here I Am Going With Default Name.
Machine Folder: Default
Type: Linux
Version: Debian (64-bit)
Memory size: 4096 MB
Note: Here I Have Given 4GB As Ram Size You Can Set As Per Your System Requirements.
Although you should allow enough unallocated memory to operate your host OS, the VM memory capacity must be large enough to run a guest OS.

Hard disk: Create a virtual hard disk now
Hit Create to continue and configure a new virtual hard disk.
Alt Text

The VM folder is intended for storing virtual disc files (such folder is selected by default).
Set the size of the virtual disc file. It must be at least 20 GB in size.
After creating a new VM, some additional settings must be configured. Select your recently created virtual machine and open the VM settings.
Alt Text

Display options
Go to Display > Screen and set Video Memory to 128 MB. It will prevent installer hanging.
Then, select Enable 3D acceleration from the drop-down menu (optional). It'll come in handy for applications that require 3D acceleration.
Alt Text

Network options
Next, navigate to the network settings and pick the virtual network adapter's networking mode. To use the VM network adapter as if it were a physical network adapter on the host machine, select the Bridged mode. The VM network adapter is linked to the same physical network as the host system in this scenario. Additional settings, such as network adapter name and type, can be configured.
Alt Text
Boot options
You must first insert your virtual ISO DVD image into the VM's virtual DVD drive, and then boot from that ISO disc. Go to Storage in the VM settings and select an IDE controller for your virtual optical drive (it is empty by default). Click the empty status, then the disc symbol near IDE Secondary Master, and then Choose Virtual Optical Disk File from the menu that appears.
Look through the Kali Linux installation ISO image you previously downloaded from the official site (kali-linux-2021.3-amd64.iso). To save your settings, click OK.
Alt Text
You may now start your new VM and begin installing Kali. By Pressing Start Button On The Main Menu Of Virtual Box.
You'll get a boot menu after booting from a virtual DVD, where you can choose from Kali Linux boot choices like Boot from Live DVD, Install, Graphical Install, and so on. Let's go with the Graphical Install option. To continue, press Enter.
Alt Text
Now,

Choose a language. Select the language for both the installation procedure and the installed system. For the current installation, English has been chosen. To proceed, click the Continue button on each screen.
Alt Text

Choose a location. This option allows you to change your time zone, time format, and other settings. In this case, the United States has been chosen.
Alt Text

Set up the keyboard. Choose a keyboard layout. The current installation makes use of American English.
Alt Text

Set up the network. Enter your Linux system's hostname, for example, kali-virtualbox.
Alt Text

Set up the domain name. If your network doesn't use a domain, you can leave this box blank.
Alt Text

Create user accounts and passwords. Read the helpful hints on this screen before entering the root password.
Alt Text

Disks for partitioning. Disk partitioning can be done manually or with the help of a programme. You can choose Guided – use whole disc for the first time. To create one large partition, the entire drive will be utilised.
Alt Text
Now,
After This Set EveryThings As Default And Press Continue.

Select Finish partitioning and write changes to disc from the overview.
Alt Text
Select Yes and confirm that you would like to write changes to the disk.
Now,
System Will Install Linux For You If Any Things Are Asked Keep It Default.
ENJOY!!!

Discussion (0)