Как поставить kali linux на virtualbox
This guide is about virtualizing Kali Linux inside of VirtualBox, allowing you to have a Kali VM. This is a great way to use Kali, as it is completely separate from the host, allows you to interact with other VMs (as well as the host machine and other machines on the network), and allows you to revert to snapshots.
You may wish to follow our other guide if you are trying to install VirtualBox on Kali Linux (as a host).
The guide below is what we use to generate our pre-made Kali Linux VirtualBox images. You may alter this to your needs. We always generate the images using the latest version of VirtualBox.
You may need to enable virtualization in your BIOS/UEFI for (e.g. Intel VT-x/AMD-V)
Wizard
Upon starting up VirtualBox, select “New” (Machine -> New).

The next screen is “Name and operating system” which is where you name the VM. This name is also used in any filenames (such as the configuration, hard disk and snapshot — which isn’t changed from this point).
We are keeping it generic in this guide (as Kali is a rolling distribution, and we update it), however for our releases, we use the version number in the name as it is a fixed release ( kali-linux-YYYY.N-vbox-ARCH . Example: kali-linux-2023.4-vbox-amd64 ).
For the “Type”, we set it as Linux . For the “Version”, we are going to be using the x64 desktop image, so we are going to select Debian (64-bit) .

“Memory size” is the next section, where we can define how much RAM to use. Again, the higher the amount of RAM, the more applications can be open and at increased performance. Various tools inside of Kali can be demanding of resources. When we make the general VMs, we select 2048 MB (2GB) for RAM, but we often increase this for our personal machines as we have high-performing devices with spare RAM which Kali can utilize.

This screen below, “Hard disk”, allows us to Create a new virtual disk now .

For the “Hard disk file type”, we select VDI (VirtualBox Disk Image) (and its the default option).

For the following screen, “Storage on physical hard disk”, we go with the default option of Dynamically allocated .

Now with “File location and size”, we can now define how large the virtual hard disk will be. We use 80.00 GB for our VMs.

After clicking on “Create”, the wizard is complete.
Now we click on “Settings”, to customize the VM further.

In “General” -> “Advanced”, we make sure to set “Shared Clipboard” to bidirectional , as well as “Drag’n’Drop” to bidirectional

In “System” -> “Motherboard”, we change the “Boot Order” to make sure Hard Disk is top and Optical is the second. Everything else is disabled.

In “System” -> “Processor”, we increase the “Processor(s)” to be 2 .
At the same time, we also enable “Extended Features” for Enable PAE/NX .

In “Display” -> “Screen”, we make sure to have “Video Memory” set to 128 MB
Another item to point out is to make sure that “Accelerated 3D graphics” is disabled, as people have reported that causes issues.

The final settings view looks like the following:

When we are ready to go, press “Start”.
The first time we run it, we will get a prompt saying do we wish to mount an image to use as a “start-up disk”. We want to use our Kali image, rather than a physical drive, so we select the icon to the side of the drop down.

A new pop up will open, “Optical Disk Selector”. We will now press “Add”, then navigate to where our ISO is located.

After pressing “Open”, we can see its been added, so we make sure its selected and press “Choose”.

All that is left now to do is press “Start”.

After all this is done, we save, start up the VM, and then continue installing Kali Linux as we normally would for a bare metal install.
During Kali Linux setup process, the install wizard should detect if its inside a VM. If it is, should then automatically install any additional tools (such as virtualbox-guest-x11 ) to give a better user experience. If you want to manually re-install it, you can see our VirtualBox Guest Guide.
Updated on: 2023-Dec-06
Author: g0tmi1k
Installing Kali Linux on VirtualBox: Quickest & Safest Way
Kali Linux is one of the best Linux distributions for hacking and security enthusiasts. Since it deals with a sensitive topic like hacking, it’s like a double-edged sword. We have discussed it in the past with a detailed Kali Linux review, so I am not going to bore you with the same stuff again. While you can install Kali Linux by replacing the existing operating system, using it via a virtual machine would be a better and safer option. With VirtualBox, you can use Kali Linux as a regular application in your Windows/Linux system. It’s almost the same as running VLC or a game in your system. Using Kali Linux in a virtual machine is also safe. Whatever you do inside Kali Linux will NOT impact your ‘host system’ (i.e. your original Windows or Linux operating system). Your actual operating system will be untouched and your data in the host system will be safe.
How to Install Kali Linux on VirtualBox
I’ll be using VirtualBox here. You may also install Kali Linux on VMWare. VirtualBox is a wonderful open source virtualization solution for anyone (professional or personal use). It is available free of cost. In this tutorial, we will talk about Kali Linux in particular but you can install almost any other OS using the ISO file or a pre-built virtual machine save file.
The same steps apply for Windows/Linux running VirtualBox.

As I already mentioned, you can have either Windows or Linux installed as your host. But, in this case, I have Windows installed (don’t hate me!), where I try to install Kali Linux in VirtualBox step by step. And, the best part is that even if you use a Linux distro as your primary OS, the same steps will be applicable! Wondering how? Let’s see… As the file size is around 3 GB, you should either use the torrent option or download it using a download manager, whichever is fastest for you.
3. Install Kali Linux on Virtual Box
Once you have installed VirtualBox and downloaded the Kali Linux 7z image, you just need to add it to VirtualBox in order to make it work. Here’s how to add the VirtualBox image for Kali Linux: Step 1: Extract the downloaded 7z file. You can use 7zip for extracting the file.
The Kali Linux Virtual Machine storage will be on the same location as you extracted the 7z file. If you want a different location for the VM, you need to extract the 7z file to a location where you have sufficient storage available. I would never recommend the C: drive on Windows.
Step 2: Launch VirtualBox. You will notice an Add button – click on it.
Step 3: Next, browse the folder you just downloaded and extracted. Choose the VirtualBox Machine Definition file to be added (as you can see in the image below). The file name should start with ‘kalilinux‘ and end with .vbox extension.
Once selected, proceed by clicking on Open. Step 4: Now, you will be shown the settings for the virtual machine you are about to add. So, you can customize them or not – that is your choice. It is okay if you go with the default settings.
Here, the hard drives as VDI refer to virtually mounting the hard drives by allocating the storage space set. After you are done with the settings, hit Start and wait for a while.
You might get an error at first for USB port 2.0 controller support, you can disable it to resolve it or just follow the on-screen instruction of installing an additional package to fix it. And, you are done!
The default username in Kali Linux used to be root and the default password was toor. But since January 2020, Kali Linux is not using the root account. Now, the default account and password both are kali. You should be able to login to the system with it.
Do note that you should update Kali Linux before trying to install new applications or trying to hack your neighbor’s WiFi.
The VirtualBox Guest Addition is pre-installed in the Live image since Kali Linux 2021.3.
Of course, Kali Linux has a lot of useful tools in it for penetration testing – so you can explore those after installation.
Both Kali Linux and Ubuntu are Debian-based. If you face any issues or error with Kali Linux, you may follow the tutorials intended for Ubuntu or Debian on the internet.
Suggested Read
How to install Kali Linux on VirtualBox using VDI
While you can always follow the instructions recommended above, there’s also another way of installing Kali Linux. You will notice a VDI file when extracting the 7z file of Kali Linux. You can use this VDI file to create a Kali Linux Virtual Machine. Open VirtualBox and select New option.
Now, go to expert mode on Virtual box.
This is nothing but a comprehensive view of all the tweaks that we can do. From there, set all the things like below:
- Name of VM: Kali Linux
- Type: Linux
- Version: Debian 64-bit
- Under Hardware, Base Memory (RAM): 4GB (Recommended)
- Processors: More than one, as per availability
Now, for the Hard Disk part, select Use an existing Virtual Hard Disk File and browse for the extracted .vdi file of Kali Linux.

On the new dialog box, click on Add and search for the VDI file in resulting file browser. Once you find the file, select it and then press choose.

You can now press the Finish button.

The VM created will have several settings like Display Memory, Network etc set to default. You should give the Display memory as 128 MB and choose to enable 3D acceleration.

3D Acceleration may result in some issues.
You can now start the VM, and use username and password «kali» once asked to log in.
You can always install Kali Linux using the ISO file, which has same process like any other Linux distribution.
Bonus: Free Kali Linux Guide
If you are just starting with Kali Linux, it will be a good idea to know how to use Kali Linux.
Offensive Security, the company behind Kali Linux, has created courses that explains the basics of Kali Linux, configuration, and more. It also has a few chapters on penetration testing and security tools.
Basically, it has everything you need to get started with Kali Linux. And the best thing is that the course is available for free. You can go to the portal to explore courses and certification exams, and learn them there.
Let us know in the comments below if you face an issue or simply share your experience with Kali Linux on VirtualBox. If you are curious, you can also try Kali Linux on Windows using WSL.
How to Install Kali Linux on VirtualBox
The Linux operating system Based on Debian, Kali Linux is developed for penetration testing. One of the best operating systems for security testing, it comes with over 600 preloaded penetration-testing apps. Kali works best when set up on VirtualBox as a virtual computer for security testing.
Kali uses a rolling release methodology to ensure that you have the most up-to-date tools on your machine. In addition, there is an active user community that provides continuing assistance.
This guide will teach you how to install Kali Linux on VirtualBox step by step.
Prerequisites
- At least 20 GB of disk space
- At least 1 GB of RAM (preferably 2) for i386 and amd64 architectures
- VirtualBox (or alternative virtualization software)
Steps For Installing Kali Linux on VirtualBox
You must have a virtual environment set up on your PC because these instructions take you through the installation procedure in one. We’ll be utilizing VirtualBox in this tutorial since it’s an easy-to-use, open-source virtualization solution.
So, how to install Kali Linux in Virtualbox?
Step 1: Download Kali Linux ISO Image
Kali Linux.iso images may be found in the downloads section of the official Kali Linux website. Every few months, these photos are updated to reflect the most recent official releases.
Find the packages available for download on the Kali Linux Downloads page. Download the 64-Bit or 32-Bit version, depending on your setup.
![]()
Step 2: Create Container for Kali Linux in Virtual Machine
The next step of Kali Linux installation Virtualbox is to create a new virtual machine and import Kali as the operating system after downloading the.iso image.
- 1. Open VirtualBox Manager and select New from the menu.
- 2. Your name and the operating system you’re using. A pop-up box displays with instructions for building a new virtual machine. Give the file a name and a location. Based on the name you enter, the Type and Version update automatically. Click Next after double-checking that the information matches the package you downloaded.
![]()
- 3. The amount of memory. Select the amount of RAM to provide the virtual machine and then click Next. For Linux, the default option is 1024 MB. This, however, varies based on your specific requirements.
- 4. A hard drive. For the new VM, the default choice is to construct a virtual hard disk. To continue, click Create. You may also choose to use an existing virtual hard drive file or not add one at all.
- 5. The type of file on a hard drive. For the new virtual hard disk, VDI, stick to the default file type (VirtualBox Disk Image). To continue, click Next.
- 6. Physical hard disk storage. Choose between Dynamically allocated and Fixed size allocations. The first option permits the new hard drive to expand and fill the available space. The second, fixed size, starts with the maximum capacity. Next should be selected.
- 7. File size and placement. Give the virtual hard drive a name and a location to save it. Set the maximum amount of file data that the VM can store on the hard drive. We recommend providing it at least 8 GB of space. To complete, click Create.
Now you created a new VM. The VM appears on the list in the VirtualBox Manager.
![]()
Step 3: Configure Kali Linux Mirtual Machines Settings
The default virtual machine parameters must be adjusted next.
- 1. Click the Settings button next to a virtual machine. Make sure you’ve selected the correct VM and that the Kali Linux information are displayed on the right-hand side.
![]()
- 2. Go to the General > Advanced tab in the Kali Linux – Settings box. Change the settings for the Shared Clipboard and Drag’n’Drop to Bidirectional. You may copy and paste between the host and guest machines using this capability.
![]()
- 3. Select Motherboard from the System menu. Set the boot order to Optical, Hard Disk, Optical, Hard Disk, Optical, Hard Disk, Optical, Hard Disk, Optical, Floppy should be unchecked since it isn’t required.
![]()
- 4. In the same window, go to the Processor tab. To improve performance, increase the number of processors to two (2).
![]()
- 5. Finally, go to the Storage settings page. Under Controller: IDE, save the downloaded Kali image to a storage device. To find the image, click the disk symbol. Close the Settings window when you’re done.
![]()
- 6. Click the Start icon to begin installing Kali.
![]()
Step 4: Installing and Setting Up Kali Linux
A new VM VirtualBox window with the Kali welcome screen displays after you launched the installation menu by selecting Start.
To install Kali Linux in VirtualBox, choose the Graphical install option and follow the installation procedures below.
![]()
1. Decide on a language to use. Select the system’s default language (which will also be the language used during the installation process).
2. Decide on a site. Choose your nation from the drop-down menu (or «other»).
3. Set up the keyboard. Choose a keymap to use. In most circumstances, choosing American English is the best option.
4. Set up the network. To begin, give the system a name and click Continue.
5. Create a domain name next (the part of your internet address after your hostname). The most common domain endings are.com,.net,.edu, and so forth. Ensure that all of your machines have the same domain name.
6. Create user accounts and passwords. For the system administrator account, create a strong root password.
![]()
7. Set up the clock. Choose your time zone from the drop-down menu.
8. Disk partitions Choose how you want to partition the hard drive. Unless there’s a compelling need to do it manually, choose Guided –use whole disk.
![]()
9. After that, choose the disk you wish to partition. You don’t have to worry about data loss because you constructed a single virtual hard disk in Step 3: Adjust VM Settings. SCSI3 (0,0,0) (sda) – 68.7 GB ATA VBOK HARDDISK is the only choice available (the details after the dash vary depending on your virtualization software).
10. Next, choose a partitioning strategy. Choose All files in one partition if you are a new user.
11. The wizard displays a summary of the partitions that have been set. Navigate to Finish partitioning and write changes to disk to continue. Click Continue and then Yes to confirm.
12. The wizard begins the installation of Kali. Additional setup settings show while the installation bar loads.
13. Set up your package management. Choose whether or not to utilize a network mirror, then click Next. If you’re using an HTTP proxy, fill in the proxy information. Otherwise, click Continue and leave the entry blank.
14. Download and install the GRUB boot loader on a hard drive. Continue by selecting Yes. Then, to confirm that the newly installed system can be booted, choose a boot loader device.
15. When you get the message, When the installation is finished, click Continue to reboot your virtual machine.
You’ve now completed the installation of Kali Linux on VirtualBox. The Kali login screen displays after restarting. Fill in your username (root) and password from the previous stages.
![]()
Finally, the Kali Linux interface displays on your screen. This is how to install Kali Linux in VMware.
Need to install Kali Linux VMware? Use VMFS Recovery for VM data safety
The application immediately recovers VMFS disks stored on damaged or inaccessible hard drives. Every step of the process is supported by the Recovery Wizard, so it’s unrealistic to make a mistake when recovering data. Virtual disks can be mounted as local disks, and are accessible from Windows Explorer. All Windows restrictions are bypassed by the recovery process. When you view the recovered data for free and make sure it is in place, purchase a license to access files or export selected files. It doesn’t take long, and the result will pleasantly surprise you.
In addition, by purchasing a license, you receive not only the ability to do unlimited exports, but also round-the-clock and year-round technical assistance from the company.
Conclusion
You’ve now learned how to install Kali Linux in VirtualBox using this method. We also went through how to get started with penetration and security testing by setting up and configuring everything.
Как установить Kali Linux на VirtualBox
Kali Linux — это дистрибутив Linux построенный на базе Debian. Выпущенный 13 марта 2013 года как полная переделка BackTrack Linux. Kali считается одним из лучших дистрибутивов Linux для взлома и тестирования безопасности. Данный дистрибутив поставляется с огромным количеством инструментов для тестирования проникновения в различные области компьютерных сетей. Так же может быть использован для определения различных лазеек для взлома компьютера, роутера или иного устройства.
Главной особенностью Kali Linux является то, что дистрибутив может работать на любом типе устройств, включая 32-битные, 64-битные процессоры Intel и AMD, а также Raspberry Pi.
В этой инструкции я покажу как установить Kali Linux на виртуальную машину и как использовать ее в системе Windows.
Требования для установки Kali на виртуальную машину:
- Должен быть установлен VirtualBox
- Требуется не менее 4 ГБ оперативной памяти
- От 30 до 40 ГБ свободного дискового пространства
- Функция виртуализации должна быть включена на процессоре
Шаги По Установке Кали Линукса на виртуальную машину:
Шаг 1: Загрузите файл ISO-образа Kali Linux
Вы можете найти его на официальной странице загрузки: https://www.kali.org/downloads/
Выберите дистрибутив основываясь на ваших требованиях.

Шаг 2: Создайте гостевую ОС на VirtualBox
После загрузки файла ISO откройте VirtualBox

Выберите тип как Linux, версия Debian (64-разрядная). Так как вы не сможете найти Kali Linux в опциях. Затем введите любое имя по вашему выбору в строке имени
Возможно вам будет интересно: Подключение из Linux к Windows RDP

Выберите объем оперативной памяти. Рекомендуемая память составляет не менее 1 ГБ но вы можете выбрать ее в зависимости от ресурсов вашей системы

Мы собираемся создать виртуальный жесткий диск, поэтому выберите второй вариант, который говорит: “создайте виртуальный жесткий диск сейчас”

Далее установщик спросит как тип файла жесткого диска вам требуется. Оставьте его по умолчанию так как мы хотим сделать файл VDI

Теперь установщик спросит как хранить виртуальный жесткий диск на физическом жестком диске. Выберите параметр в зависимости от ваших требований. Но лучше всего выбрать по умолчанию, то есть “динамически распределенный”

Выделите память для вашей машины по мере необходимости, минимальное требование для Kali Linux 20 ГБ. Если вы выберете менее 20 ГБ, то при установке вым будут показаны ошибки. После выделения памяти нажмите кнопку “Создать” (Create).

Ваша виртуальная машина будет создана

Шаг 3: Выберите файл образа и установите Kali Linux
Теперь выберите VM Kali и перейдите в настройки для редактирования конфигурации.
Перейдите на вкладку Система и выберите процессор, здесь вы можете выбрать количество процессоров в зависимости от того, сколько процессоров вы хотите дать своей виртуальной машине. Выберите пункт 2 на правой боковой панели.

Перейдите на вкладку Storage и выберите Controller: IDE, выберите Empty, в самом правом углу нажмите на крошечный значок CD. Оттуда вы можете выбрать ISO-файл, загруженный на ваш компьютер.

Теперь давайте запустим виртуальную машину, для этого нажмите кнопку START

Шаг 3: Установка Kali Linux на VirtualBox
После запуска начнется установка Kali Linux на виртуальную машину VirtualBox. Выберите опцию графической установки, так как нам нужно установить Кали Линукс на основе графического интерфейса.
Возможно вам будет интересно: Защита от вируса шифровальщика

Выберите язык по вашему усмотрению. Я выберу Английский, так как большинство инструкций написано на Английском языке.

Далее потребуется выбрать свое местоположение

Настройка конфигурации клавиатуры на ваше усмотрение.

Установите имя хоста, я назову «Kali», но вы можете выбрать любое имя.

Установите доменное имя, если компьютер находится в домене, в нашем случае мы оставим его пустым.

Установите пароль для своей системы Kali

Далее установщик спросит вас о разделах диска. Самый простой вариант для вас – использовать «Guided-Use Whole Disk». Разбивать диск мы не будем так что оставьте все по умолчанию. Мы будем делать конфигурацию, используя весь диск без разбития.

Нажмите кнопку «Продолжить» (Continue) и продолжите установку. И имейте немного терпения дождитесь следующего окна.

После этого установщик запросит сетевое зеркало для настройки диспетчера пакетов, но в нашем случае мы его не используем, поэтому выберите «Нет».

Установите информацию о прокси-сервере, если он у вас есть, в противном случае оставьте ее пустым.

Теперь установщик попросит установить загрузчик GRUB, выберите да и продолжайте

Далее появится сообщение о завершения установки Kali Linux. Нажмите кнопку Продолжить

Шаг 4: Вход в систему Kali Linux
Войдите в систему как пользователь root, введя имя пользователя и пароль.

Теперь изучите различные инструменты безопасности такие как:
Проведите тесты с помощью этого графического интерфейса

Заключение
Вот и все. На этом установка Kali Linux на VirtualBox завершена. Надеюсь что эти инструменты помогут вам найти уязвимости вашей системы. И вы сделаете свою сеть или домен неприступной стеной для злоумышленников. Если у вас во время установки возникли проблемы. Посмотрите Видео как можно установить Kali на VirtualBox.