Published on

How to install kali linux on VirtualBox?

What is Kali Linux?

Kali Linux is an operating system designed and developed based on Debian and used for penetration testing. The good thing about this operating system is that it has more than 600 different tools for penetration testing. And is known as the most famous operating system with security applications. Kali Linux has a rolling release in which they try to keep all packages up to date and at the same time be stable. There is also a community version that releases all updates quickly. In this step-by-step tutorial, I will explain how to install Kali Linux in VirtualBox.

What is VirtualBox?

VirtualBox is an opensource software that works for virtualization on computers with X86 architecture. This software acts as a hypervisor and you can have several operating systems together on one computer. When configuring the virtual machine, the user can specify the number of resources he gives to the virtual machine. Resources can include things like CPU number, RAM, and hard drive space.

Why should we use VirtualBox?

Using Kali Linux as a daily Desktop does not seem like a good option at all. If you are a beginner and decide to install Kali on your system, you will most likely format all partitions unknowingly. Suppose you have 1 hard drive on which you have Windows installed, you must first empty part of it with partition software, then make a USB boot, reboot and then proceed with the installation process. However, it is better than virtualizers such as Use VirtualBox or VMware Workstation.

Install Kali linux on VirtualBox step by step

Step 1: Download Kali Linux ISO

  • You can download all new versions of Kali Linux from Kali Linux website Depending on your operating system, you can choose a 32 or 64-bit version.
Download Kali Linux ISO

Step 2: Create Virtual Machine for Kali linux in VirtualBox

  • Open VirtualBox and create a new virtual machine.
Create-Virtual-Machine-for-Kali-linux-in-VirtualBox

Note:- if you dont have virtualbox click here to install it.

  • Select the operating system name Kali linux and then select the operating system type. i usedLinux then Debian-64. as shown as below.
virtual-machine-details
  • now you select how much Memory size (RAM) you need for the virtual machine. recommended is 2GB.
virtual-machine-memory
  • In this step, which is related to the hard drive, there is no need to make any changes. default selected create virtual hard disk now you can simply click on create button.
virtual-machine-hard-drive
  • At this point, do not change the default again, then click on next.
virtual-machine-next
  • Now you will see hard disk storage options and you have two options Dynamically Allocated and Fixed Size. best choice for you is the first option because it fills much less space on you hard drive.
virtual-machine-hard-drive-size-options
  • In this step, you must specify a certain amount of space. which is on 8GB by default, but it is better to change it to 20GB to prevent error while working.
virtual-machine-hard-drive-size
  • Congratulations! You were able to add your virtual machine to the VirtualBox. Now you need to introduce the Kali ISO that you downloaded earlier as a boot. To do this, first go to the Setting section. Then enter Storage.
virtual-machine-added
  • First we have to start from the Storage device section, click on the part that says Empty, then we have to click on the option that has the number 3 written next to it, then select the Choose from the disk file.
virtual-machine-choose-iso
  • Now you have to select the Kali Linux ISO that you downloaded earlier.
virtual-machine-choose-iso-file
  • Congratulations! You have successfully added the Kali Linux ISO to the virtual machine. Now click ok.
virtual-machine-configure

Step 3: Run your virtual machine and install Kali Linux

  • After creating virtual machine, we can now turn on the virtual machine (click on Start icon).
virtual-machine-start
  • After bootup of the virtual machine, go to the Graphic install option.
virtual-machine-graphic-install
  • Now choose you language, it is better to use the same English.
virtual-machine-language
  • Now select your location.
virtual-machine-location
  • find your perfect keyboard layout. Do not add anything to the keyboard configuration section because this is not supposed to be your desktop!
virtual-machine-keyboard-layout
  • In the network configuration section, select the name for the hostname, click on kali, do not change it.
virtual-machine-hostname
  • setup your localdomain for your home network only otherwise leave blank and click on continue.
virtual-machine-hostname-domain
  • Setting a username shoud be as follows (without spaces and -_).
virtual-machine-username
  • then set the password for the user.
virtual-machine-password
  • configure the clock in the list of contries, select your desired country.
virtual-machine-next-step
  • Partition Disk step! This step is very important and the default option is Guided - use entire disk
virtual-machine-partition-disk
  • Then select desired disk
virtual-machine-partition-disk-select
  • at this point, you must specify the partition method. it is better for new users to use the first option. But if you have more space, you can use other method as well.
virtual-machine-partition-disk-method
  • Congratulations! your partition is done. Now you can click on Next.
virtual-machine-partition-disk-confirm
  • In this section, confirm that the changes are applied to your disk.
virtual-machine-partition-disk-confirm-disk
  • Now installation is start just wait and watch the progress.
virtual-machine-partition-disk-progress
  • After installation is done, now you see option for install GRUB Boot loader on the hard drive. Be very careful in this part if you select no. kali does not boot and you have to do the installation steps from the beginning.
virtual-machine-partition-disk-grub
  • Now wait for the installation to compelete. After successful installation and Kali Linux boot, you can log in with the username or password you provided during the installation. To install new packages, you must enter the sudo apt update command to update the repos. Otherwise you will receive a package not found error.