Javatpoint Logo
Javatpoint Logo

Kali Linux Installation

Different ways of installing Kali Linux:

  1. Bootable device: it is one of the fastest ways of installing Kali Linux and most favorable as well. It is because it is non-restrictive. So if we use USB to install, then no changes are needed to be made to our host system hard drive, so it's non-restrictive. It is portable, so you can carry USB where ever you go, and it is easy to install, and lastly, it is potentially persistence. You can configure your Kali Linux live USB drive to have persistence storage so that the data you collect is saved across different reboots. So, suppose we install it and perform something, and we have some data to use for the next time as well, we can use a persistence storage option with the live USB installation process.
  2. Hard disk installation: Installing Kali Linux on our computer with hard disk is a bit easy process, but we need to make sure that we have compatible system configuration with Kali Linux.
  3. Dual boot: We can also install Kali alongside our other operating system; it could be windows or mac. But we should exercise caution during the setup process so that the installation of Kali Linux doesn't mess up with our host operating system.
  4. Virtualization: We can use some virtualization software to run Kali Linux, such as VMWare and virtual box.
  5. We may also set up Kali Linux on ARM (Advance RISC (Reduced Instruction Set Computer) Machine) devices like Raspberry Pie, cubic truck, trimslice, and so on.

Kali Linux using Bootable USB:

Step 1: Download Kali Linux ISO- Download the ISO image file of Kali Linux from its official website, i.e., Do not download it from any other website because it may contain malware. Here, we are going to download Kali Linux 64-Bit.

installing Kali Linux

Step 2: You should download any bootable image file processing tool, which allows you to create a bootable USB drive.

Step 3: Plug your USB drive into your Windows PC and remember the drive name associated with it (e.g., "H :\").

Step 4: Launch Rufus and choose the Kali Linux ISO file that you want to copy on the USB drive. Match the name of the device selected, which corresponds to the name of the USB device you inserted.

installing Kali Linux

Step 5: Click the Start button to overwrite the contents of the USB device, as shown in the figure.

installing Kali Linux

Step 6: Once the status bar is completed 100%, click on close and safely remove the USB drive from the PC. You can now use your USB drive to boot Kali Linux.

installing Kali Linux

Step 7: Insert your bootable USB drive to your PC and start your PC. Press "Esc" on the first prompt to enter into the Startup Menu.

installing Kali Linux

Step 8: Press F9 to enter into the Boot Device option. It will redirect you to the Boot Manager. These options may vary from device to device.

installing Kali Linux

Step 9: Select USB Hard Drive to boot from your bootable USB Drive. It will redirect you to the Kali Linux Live Boot Menu.

installing Kali Linux

Step 10: Select Live System and press enter to boot Kali Linux.

installing Kali Linux

You can now use Kali Linux on the same hardware without disturbing your host operating system.

installing Kali Linux

How to install Kali Linux on Windows.

If you like to try out Kali Linux but not ready to install it permanently on your PC or want to run multiple operating systems at the same time, so using an Operating System in a Virtual machine has various benefits. We can use the tools available in Kali Linux without losing access to our primary Operating System.

There are many Virtualization software available for all major operating systems, i.e., VirtualBox, VMware Workstation, Xen, KVM, and Hyper-V, etc.

Kali Linux - VirtualBox

Step 1: We are using VirtualBox here. First, download and install VirtualBox on your PC. After a successful installation, the main screen appears something like the Figure below.

installing Kali Linux

Step 2: Click on New. A wizard will appear, which guides you through other steps where you are required to input parameters of the new virtual machine.

installing Kali Linux

Input name for the new virtual machine, select the type of the operating system and version as Debian because, as we have discussed earlier, Kali is a Debian based OS. Click next to proceed.

Step 3: Allocate the memory to the virtual machine. We recommend you to allocate 2GB (2048 MB) of RAM because the live system uses the memory for storing changes made to the file system.

installing Kali Linux

Step 4: We need to choose a physical or virtual hard disk for the new virtual machine.

installing Kali Linux

Step 5: The next window allows us to choose the hard disk file type. Keep it default i.e., VDI (Virtualbox Disk Image) is the native format of VirtualBox.

installing Kali Linux

Step 6: On the next window, "Storage on Physical Hard Disk." Select the default selection (Dynamically allocated) because the fixed size allocation takes time to set up and also causes waste of free memory area.

installing Kali Linux

Step 7: The next window will allow you to select the hard disk size. The default selection of 8 GB is not enough for the standard installation of Kali Linux. So, we are allocating 20 GB of hard disk space. You can also use an external drive. By clicking on the create button, the virtual machine will be created.

installing Kali Linux

Step 8: The virtual machine has been created, but there is no operating system installed yet. Click on the Settings on the VM Manager screen.

installing Kali Linux

Step 9: Click the Storage option on the left. We need to associate the Kali Linux ISO image with the virtual CD/DVD-ROM reader. Select the CD-ROM drive in the Storage associate list and then click on the CD-ROM icon on the right side that displays a contextual menu where we can choose Virtual Optical Disk File.

installing Kali Linux

Step 10: Click on the System menu on the left, then select the Motherboard tab from the right-hand side. Define the Boot Order and make sure the system will first try to boot from any optical device before trying boot from a hard disk. You can also change the amount of memory allocated to the Virtual Machine if required.

installing Kali Linux

Step 11: In the same menu, but on the "Processor" tab, we can change the no. of processors assigned to the virtual machine. Enable PAE/NX if you are using a 32-bit image.

installing Kali Linux

These changes are sufficient to boot the Kali Linux live system. Finally, Click Boot, and the Virtual Machine should boot properly. If not, please review all the settings again and try again.

installing Kali Linux

There is one more way to install Kali Linux in VirtualBox

Step 1: Download the Kali Linux custom image, which is generated for VMware and VirtualBox mainly. You can download VirtualBox from ""

installing Kali Linux

Step 2: Install VirtualBox and then double click on the Kali Linux vbox image file you downloaded, it will redirect you to the wizard shown in the figure below.

installing Kali Linux

Step 3: Now, click on the Import button. It will take you to the next wizard shown in the figure below.

installing Kali Linux

Step 4: After successful completion of the status bar, it will be redirected to the home page of the VirtualBox, as shown in the figure below.

installing Kali Linux

Step 5: Click on the Start button shown on the right-hand side of the window. It will boot the Linux.

installing Kali Linux

Once the boot completes, it will ask you to enter the Username and Password. The default Username for Kali Linux is "root" and the Kali Linux default password is "toor". Feed the Username and Password then press Enter. It will redirect you to the Home screen of the Kali Linux.

installing Kali Linux

Now you are ready to use Kali Linux without removing your host operating system (Windows or Mac).

How to Solve VirtualBox error -"Failed to open a session for the virtual machine" or "Unable to boot- Please Use a Kernel appropriate for your CPU".

If you get any error as shown in the figure below, during the boot on Virtual Machine. Restart your PC and press ESC and go to the BIOS setup and Enable virtualization. Save and start your host OS. You will knowable to boot Linux on a Virtual machine.

installing Kali Linux installing Kali Linux

Kali Linux- Raspberry Pi3

Raspberry Pi is a quad-core 1.4 GHz, with 1GB of RAM. Kali Linux can be installed on an external micro SD card.

If you want to install Kali Linux on your Raspberry Pi3, follow the below instructions:

1. Buy a fast micro SD card or eMMC of size 8 GB.

2. Download the Kali Linux ARM image for your Raspberry Pi from this link:

3. Then use the dd utility to image the downloaded file to your micro SD card.

4. Once the dd operation gets completed, boot up the Raspberry Pi3 with the microSD plugged in.

Kali Linux- Android

You can use Kali Linux on Android using Linux Deploy. You need these things to run Kali on Android.

Installing Kali Linux NetHunter on Android

Introduction to Kali Linux NetHunter

Kali Linux is one of the most famous security auditing and penetration testing operating system. Now, it is possible to get Kali Linux on Android phones because of the NetHunter project.

NetHunter is the mobile edition of Kali Linux and was developed for Android devices. It is a strong resource for penetration testing. Also, it is the mobile edition of the famous Kali Linux security OS. We can install it on the unrooted Android Phone to execute several penetration testing tools using our phone.

Kali Linux NetHunter is available in three different editions:

  • NetHunter Rootless is available for unrooted Android devices.
  • NetHunter Lite is available for phones using a custom recovery.
  • NetHunter is available for rooted phones using custom recovery along with the NetHunter-specific kernel.

For every three editions, the NetHunter suite is composed of the below:

  • NetHunter App Store with several security applications.
  • Android app to use the NetHunter App Store.
  • Kali Linux container that contains every app available on Kali Linux.
  • NetHunter KeX to execute the desktop sessions of Kali Linux. It supports mirroring and screencasting.
installing Kali Linux
  • Need a device running Android 2.1 and above, rooted.
  • Need a minimum of 5 GB of free space on internal or external storage.
  • High-speed internet connection.
  • Then wait for a distribution to bootstrap from the network.

Process to install Kali Linux NetHunter

A single requirement to install Kali Linux NetHunter is that the phone must have an Android 7 or newer version. We suggest an Android edition before 12 because the latter audits and kills the application process when they utilize much processing power.

1. Installing Termux on Our Phone

  1. While we install the Termux application using Google Play Store, the version is deprecated: it does not get updates and includes errors and outdated repositories. We suggest that we should install the latest edition from the GitHub page.
    The download process should take some seconds, based on our internet speed. We need to tap on the file which we have downloaded to install it.
  2. Our phone doesn't permit us to install applications from unknown sources by default. In that case, we need to configure the permissions by clicking on the "Settings"
  3. Our phone will take us to the settings page in which we can opt to permit application installs from our browser.
  4. We will on the Install option that will permit us to get the application.

2. Upgrading Repositories

We should upgrade the repositories once we have downloaded the Termux app. Debian Linux and almost all of its derived editions use Advanced Package Tool for installing the software.

We retrieve the information of the package source from the setup resources by executing the update command. The command, i.e., upgrade, will utilize the information for upgrading every package to its latest editions.

a. First, we need to execute the update command:

b. Run the below command:

When prompted, "Do you want to continue?" click the Y button and press Enter.

Configure the storage permissions for Termux with the help of the below command:

It should encounter a pop-up that prompts whether we want to permit Termux for accessing files on our device. We need to press "Allow".

3. Installing NetHunter

a. First, we need to install wget by executing the following command:

When prompted, "Do you want to continue?" click the Y button.

b. Download the installation file of NetHunter. Ensure that we correctly input the address.

wget -0 install-nethunter-termux

c. Manage the file permissions of our downloaded file and make it executable:

d. Run NetHunter

The installation process may take some time, relying on our internet speed.

e. Click the N button when prompted whether we wish to remove the downloaded rootfs file, as we may later need it.

4. Launch Kali NetHunter

a. To launch the command line interface of the Kali Linux NetHunter, type the following command:

b. Also, we can use the command, i.e., nh, as the NetHunter shortcut.

c. In the next step, we need to set up the password for NetHunter KeX. Remember that we need to exit from the NetHunter command line interface to execute this command.

  1. Launch the NetHunter KeX by executing the following command:

d. Remember the RFB port number because we will later use it.

e. At this stage, NetHunter is successfully downloaded and active, but we need to set up displays to utilize the software.

Kali Linux 2022.1 ISO Download

Kali Linux 2022.1 was published in February 2022. It was followed by the 2021.4a version and was available for laptop and desktop computers. It is available to install 64-bit and 32-bit versions, and an option for different desktop environments like MATE, LXDE, and KDE is available in one ISO image file. The default desktop environment is XFCE.

This Kali Linux edition contains several new updates and features like new tools, speech synthesis returned in Kali setup, VMware i3 DE improvements, new Kali Everything flavor image, Chromium and Firefox browser new homepage, visual integrations to shall prompt, new installer theme, new wallpapers, and more compared to the old releases.

Features of Kali Linux 2022.1

  • Theme Updates: Visual Refresh

This update contains new desktop wallpapers, boot, and login displays, in inclusion to the refreshed installer theme, which we may have noticed if we have updated recently. Moreover, the layout, theme, and functions of the boot menu have been improved.

  • Shell Prompt Modifications

Kali Linux 2022.1 includes some tweaks which will make our life easier since the last prompt update in 2020.4. Examples of this issue may be if writing any professional pentesting report or sharing the command line and association with debugging code; the right-side prompt may have gotten in the way. Hence, if has been deleted from ZSH (default shell).

  • New Browser Landing Page

Kali Linux 2022.1 provides a refreshed appearance for the default landing page carried in Kali. Using the new documentation sites (Kali-Tools and Kali-Docs), the search function will support us in finding most of the things we could require with Kali Linux.

  • Improved VMware i3

The host-guest aspects (e.g., copy/paste, drag 'n' drop) were by default not enabled for users that utilize Kali within a guest virtual machine using the i3 desktop environment. It had to be manually done. Now, it is fixed and should operate out of the box. It was activated with the i3-wm 4.20.1-1 package.

System Requirements


  • Internet connectivity
  • USB Drive or a DVD/CD drive
  • 1 GB RAM
  • 20 GB disk space
  • 32-bit or higher processor

Installation process

Launching installer in PC using USB

We can follow the steps provided below:

  1. First, we will download the 2022.1 ISO image file of Kali Linux using the download section.
  2. Get a USB bootable creation application on our Windows PC.
  3. Insert a USB flash drive (8-16 GB of space, at least) with our PC.
  4. Launch the USB bootable creation application, choose the Kali Linux 2022.1 ISO image file, and begin the procedure.
  5. Once done, insert the bootable USB in the system where we wish to have Kali Linux 2022.1.
  6. Reboot the system.
  7. Click on the boot device menu key and choose USB to start first.
  8. Choose a USB device and begin the Kali Linux 2022.1.

Launching installer in VMware

  1. Get the ISO image file of Kali Linux 2022.1 from the download section.
  2. Open the VMware Player and begin establishing a new virtual machine.
  3. Choose the Kali Linux 2022.1 ISO image file, and utilize the configuration based on the system requirements.
  4. Begin the virtual machine and jump on the installer of Kali Linux 2022.1.

Launching installer in VirtualBox

  1. Get the ISO image file of Kali Linux 2022.1 from the download section.
  2. Open the VirtualBox application on our system and begin establishing a new virtual machine.
  3. Choose the Kali Linux 2022.1 ISO image file, and utilize the configuration based on the system requirements.
  4. Begin the virtual machine, and if it asks to choose the Host Drive, select the downloaded ISO image file of Kali Linux 2022.1.

Final step

Once we jump on to the boot menu of Kali Linux, follow the below steps:

  1. Choose 'Graphical Install' and click on the Enter button.
  2. Select language, keyboard layout, region, etc.
  3. Select the on-screen installation.
  4. Create the Root password.
  5. Choose 'Guided-use entire disk' for clean installation in the disk partition window (clean installation will delete every other OS installed on our system).
  6. Go ahead and select 'yes' if it asks to format the partition.
  7. We need to wait to finish the installation process of Kali Linux on our system.
  8. Once the process is finished, reboot the computer.
  9. Log in to the newly installed Kali Linux and use the operating system.

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA