Tag List
Sign In

Creating a Kali VM

How to Create a Kali Linux Virtual Machine

One of the easiest ways to get started with hacking stuff is to use a Linux environment with all the tools that you will need pre-installed. Although you may wish to run the tools on your own Linux/macOS machine natively, it can be easier to have everything already set up, especially if you are just getting started with hacking.

If you don't fancy setting all this up, and you are a LUHack member, then you can just use our virtual machines. However, they can be a bit slow, so if you want the best experience, it is worth trying to get a virtual machine running on your computer. But if you do want to use them you can get started by looking at this page instead.

How you get up and running with Kali depends on the hardware and OS that you are running.

Prerequisites for both Windows and Linux

To use a virtual machine on a Windows or Linux computer, you need to enable virtualization in your BIOS. This is generally not too hard, is completely reversible, and should not void your warranty.

Intel generally calls this something like "Intel Virtualization Technology," in a BIOS, it may be written as "Intel VT" or "Intel VT-d." AMD generally calls this "AMD-V." If you want more information, you may want to look here or here.

If you do not do this, you will not get virtualization working.

Windows

⚠️ WARNING: You must enable virtualization in your BIOS before you get started with setting up virtualization on Windows.(Do this bit first if you have not already.)⚠️

The most user-friendly option is VirtualBox.

To get started, get the following things:

  1. Install VirtualBox using the VirtualBox installer that you downloaded.
  2. Install 7-Zip if you have not got another way of opening .7z files on your computer. You can do this by running the installer linked above.
  3. Use 7-Zip to extract the Kali image.
  4. Open VirtualBox.
  5. Click the green add(+) button at the top.
  6. Select the .vbox you extracted from the archive.
  7. You can now start the virtual machine and check it out!

Linux

If you are running Debian or one of its derivatives, e.g.,

You may want to skip using a virtual machine for now and just use this handy project which installs all the tools from Kali directly on your system.

There is a similar project for Arch/Manjaro users: you can add the BlackArch repos with this script, which will allow you to install any packages you need that come in Kali.

If you have a different distribution, it is always worth trying to just install the packages if they are in your repos.

If you still want to use a VM on Linux, then the best option is Virt-Manager.

⚠️ WARNING: You must enable virtualization in your BIOS before you get started with setting up virtualization on Linux.(Do this bit first if you have not already.)⚠️

To get started, you will need to grab a Kali Linux ISO from here.

  1. Install Virt-Manager for your distro.
  2. Click the add(+) button at the top.
  3. Select local install media, then click next.
  4. Click browse and select the ISO you just downloaded.
  5. Set your operating system to Debian 11 and click forward.
  6. Set the amount of memory and the number of CPU cores you would like your VM to have. Make sure it has at least 2048 MiB and 2 CPU cores. Then click next.
  7. Select how much storage you want to give it; it needs to be at least 20 GiB. Then, press forward, followed by finish.
  8. If the virtual machine does not start and open automatically, you will need to press open and then press the start button.
  9. Once you see the Kali logo and get presented with a list of options, select the default option of graphical install by pressing enter/return.
  10. You should be able to follow the steps on screen; it is all pretty intuitive. Remember, that because this is a virtual machine, if you break anything you can always delete the virtual machine and try again.

MacOS

Your options depend on if have an old mac or a new mac.

ARM/M1/M2 Macs

You have two options here, UTM and Parallels. This guide uses UTM because it is free. Download it here. You will also need the Kali ISO which you can get here.

  1. Install UTM either through the app store or just download the .dmg and use it for free. If you go for the latter just download the file and open it it, then drag the UTM app into your Applications folder. You may need to jump through some hoops depnding on your setting to run a "untrusted" application that you downloaded from the internet.
  2. Click create a new VM.
  3. Select virtualize.
  4. Select other.
  5. Select browse and then select your ISO that you just downloaded. Then click continue.
  6. If you want, you can change the memory and CPU allocation here, but you can just click continue if you want.
  7. Set the storage to at least 20 GiB and then click continue.
  8. Click continue once again and then click save.
  9. Open the virtual machine settings at the top right of the page. UTM Kali setting screenshot
  10. Select new at the bottom left of the page and then select serial device.
  11. Click save and then start the VM.
  12. Follow the install instructions. Remember, that because this is a virtual machine, if you break anything you can always delete the virtual machine and try again.
  13. Once the install has finished, you can go back into the setting page for the virtual machine and remove the serial device by right-clicking and selecting "remove".
  14. You can now start the VM and begin exploring Kali.

X86_64/Intel Macs

The easiest way to get started here is to install VirtualBox.

Start by getting:

  1. Open the VirtualBox-7.0.10a-158379-OSX.dmg that you just downloaded, then drag the VirtualBox app into your Applications folder. You may need to go through some hoops depending on your settings to run an "untrusted" application that you downloaded from the internet.
  2. Extract the kali-linux-2023.3-virtualbox-amd64.7z; the built-in archive utility should be able to do it.
  3. Open VirtualBox.
  4. Click the green add(+) button at the top.
  5. Select the .vbox you extracted from the archive.
  6. You can now start the virtual machine and check it out!

Next Steps

If you want to connect to our infrastructure in Kali Linux, you may want to follow this guide.

More Information

If you want more detail or options, then you can take a look at the Kali docs.