- Kali linux windows virtualbox
- Preparation
- Download
- Setup
- Installing Kali Linux on VirtualBox: Quickest & Safest Way
- How to install Kali Linux on VirtualBox
- Step by Step Guide to install Kali Linux on VirtualBox
- 1. Download and install VirtualBox
- 2. Download ready-to-use virtual image of Kali Linux
- 3. Install Kali Linux on Virtual Box
- Bonus: Free Kali Linux Guide Book
- Самый быстрый способ установить Kali Linux на VirtualBox
- Какой метод мы собираемся использовать?
- Установка VirtualBox
- Загрузим образ Kali Linux OVA
- Импорт OVA образа в VirtualBox
- Запускаем виртуальную машину Kali VM
- Ошибка: USB 2.0
- Вход с именем пользователя и паролем по умолчанию
- Установка Kali Linux на Virtualbox.
- Виртуальная машина для Kali Linux
- Настройка виртуальной машины
- Установка Kali Linux
Kali linux windows virtualbox
You can install VirtualBox on Kali Linux, allowing you to use virtual machines (VMs) inside of Kali Linux. However if you are wanting to install Kali Linux as a VM, you want our Kali Linux Guest VirtualBox guide.
VMs are great. There are many upsides with using them. One of the being, able to run multiple Operating Systems (OSs) at the same time. You can have your host machine “untouched”, and then only interact with the guest VMs. Another is when something is going right, take a snapshot. When something goes wrong, revert back.
VirtualBox is free and open source. There are a few other software such as QEMU, KVM/Xen with virt-manager. Then there is also VMware Workstation & Fusion, which is a commercial software (there is VMware Player which is free but it is limited in features).
Preparation
Before trying to install VirtualBox, please make sure your version of Kali Linux is up-to-date, and if required, reboot the machine.
Download
The first thing we are going to do is import VirtualBox’s repository key.
We then move onto adding VirtualBox’s repository. We add this to a separate file, so it does not interfere with Kali Linux’s main repository. We also will be making sure to state where the keyring is at so the files can be properly signed. Our CPU architecture is amd64. You may need to alter the example below if yours is different.
One thing to bare in mind, Kali Linux is based on Debian, so we need to use Debian’s current stable version (even though Kali Linux is a rolling distribution). At the time of writing, its “buster”:
As we have altered our network repository, we need to re-build the cache.
As VirtualBox has various kernel modules (e.g. vboxdrv , vboxnetflt and vboxnetadp ), we need to make sure they are kept up-to-date when Kali Linux’s kernel gets updated. This can be achieved using dkms.
Setup
Now its time to install VirtualBox itself (along with its Extension Pack to expand VirtualBox’s advanced features).
When prompted, read and accept the license.
You can now find VirtualBox in the menu or start it via the command line.
If you now wish, you are able to install Kali Linux in a VirtualBox VM (on Kali Linux).
Updated on: 2021-Apr-14
Author: g0tmi1k
Installing Kali Linux on VirtualBox: Quickest & Safest Way
Last updated February 2, 2020 By Ankush Das 98 Comments
This tutorial shows you how to install Kali Linux on Virtual Box in Windows and Linux in the quickest way possible.
Since it deals with a sensitive topic like hacking, it’s like a double-edged sword. We have discussed it in the detailed Kali Linux review in the past 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 Virtual Box, 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. It is a wonderful open source virtualization solution for just about anyone (professional or personal use). It’s available free of cost.
In this tutorial, we will talk about Kali Linux in particular but you can install almost any other OS whose ISO file exists or a pre-built virtual machine save file is available.
Note: 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 10 installed (don’t hate me!) where I try to install Kali Linux in VirtualBox step by step.
And, the best part is – even if you happen to use a Linux distro as your primary OS, the same steps will be applicable!
Wondering, how? Let’s see…
Step by Step Guide to install Kali Linux on VirtualBox
We are going to use a custom Kali Linux image made for VirtualBox specifically. You can also download the ISO file for Kali Linux and create a new virtual machine – but why do that when you have an easy alternative?
1. Download and install VirtualBox
The first thing you need to do is to download and install VirtualBox from Oracle’s official website.
Once you download the installer, just double click on it to install VirtualBox. It’s the same for installing VirtualBox on Ubuntu/Fedora Linux as well.
2. Download ready-to-use virtual image of Kali Linux
After installing it successfully, head to Offensive Security’s download page to download the VM image for VirtualBox. If you change your mind to utilize VMware, that is available too.
As you can see the file size is well over 3 GB, you should either use the torrent option or download it using a download manager.
3. Install Kali Linux on Virtual Box
Once you have installed VirtualBox and downloaded the Kali Linux image, you just need to import it to VirtualBox in order to make it work.
Here’s how to import the VirtualBox image for Kali Linux:
Step 1: Launch VirtualBox. You will notice an Import button – click on it
Step 2: Next, browse the file you just downloaded and choose it to be imported (as you can see in the image below). The file name should start with ‘kali linux ‘ and end with . ova extension.
SOnce selected, proceed by clicking on Next.
Step 3: Now, you will be shown the settings for the virtual machine you are about to import. So, you can customize them or not – that is your choice. It is okay if you go with the default settings.
You need to select a path where you have sufficient storage available. I would never recommend the C: drive on Windows.
Here, the hard drives as VDI refer to virtually mount the hard drives by allocating the storage space set.
After you are done with the settings, hit Import and wait for a while.
Step 4: You will now see it listed. So, just hit Start to launch it.
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 a new applications or trying to hack your neighbor’s WiFi.
I hope this guide helps you easily install Kali Linux on Virtual Box. Of course, Kali Linux has a lot of useful tools in it for penetration testing – good luck with that!
Tip: 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.
Bonus: Free Kali Linux Guide Book
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 a guide book that explains the basics of Linux, basics of Kali Linux, configuration, setups. 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 book is available to download for free.
Let us know in the comments below if you face an issue or simply share your experience with Kali Linux on VirtualBox.
Like what you read? Please share it with others.
Самый быстрый способ установить Kali Linux на VirtualBox
В большинстве случаев, когда дело доходит до установки Kali Linux на VirtualBox, пользователи испытывают затруднения с установкой из ISO образа. И если при установке возникает какая-то ошибка, уровень разочарования начинает расти. Поэтому сегодня рассмотрим самый быстрый и простой способ установить последнюю версию Kali Linux 2.0 на VirtualBox.
Какой метод мы собираемся использовать?
Обычно для установки дистрибутива Kali в VirtualBox нам требуется ISO образ. Для тестирования на проникновение Linux на виртуальных машинах, лучше использовать предварительно созданные образы OVA. Они специально созданы для работы на таких платформах, как VirtualBox, Hyper-V или VMware.
Итак, начнем…
Установка VirtualBox
Для начала нам потребуется VirtualBox. Однако, если он еще не установлен в системе, то перейдите на virtualbox.org и загрузите тот, который соответствует вашей ОС. Это кроссплатформенное программное обеспечение для виртуализации, доступно для Windows, Linux, macOS и FreeBSD.
Загрузим образ Kali Linux OVA
Вместо использования ISO мы загрузим образ Kali VirtualBox, доступный на официальном сайте. Вы можете получить 64-битную или 32-битную версию в зависимости от вашей системы. Загрузить по ссылке.
Импорт OVA образа в VirtualBox
- Откроем VirtualBox
- Клик на -Файл -Импорт конфигураций
- Выбираем загруженный ранее образ Kali Linux OVA и нажимаем кнопку -Импорт.
Соглашаемся с лицензионным соглашением и ждем окончания процесса импорта.
Запускаем виртуальную машину Kali VM
После завершения процесса импорта вы увидите виртуальную машину Kali Linux на левой панели VirtualBox, где по умолчанию будут перечислены все виртуальные машины.
Дважды щелкните по нему, и наш Linux начнет загружаться, далее появится экран приветствия системы. Да это оно. Нам вообще ничего не нужно устанавливать, все предварительно скомпилировано и готово к использованию из коробки.
Ошибка: USB 2.0
Если вы получили сообщение об ошибке: «Implementation of the USB 2.0 controller not found!» т.е виртуальная машина не может быть загружена из-за USB 2.0, закройте окно ошибки. После этого в настройках виртуальной машины выберите «USB», затем измените параметр «USB 2.0» на «Контроллер USB 1.1 (OHCI)». После этого примените изменения, нажав кнопку ОК.
Вход с именем пользователя и паролем по умолчанию
На экране входа в систему используется имя пользователя по умолчанию — kali и пароль — kali. Кроме того, нет необходимости устанавливать гостевые дополнения VirtualBox, они уже будут в системе, поэтому с этим не возникнет никаких проблем.
Просто начинайте тестировать требуемые приложения и системы безопасности.
Установка Kali Linux на Virtualbox.
Сегодня я опишу процесс установки операционной системы Kali Linux на виртуальную машину Virtualbox. Kali Linux это ОС на основе Debian, предназначенная для проведения тестов на безопасность. В дистрибутив системы включены почти все известные инструменты для программно-технической экспертизы.
Kali является незаменимым инструментом любого администратора заботящегося о безопасности своего сервера или сайта. Более подробно о Kali Linux можно почитать на официальном сайте.
Установочный образ Kali можно скачать здесь. Обычные образы самые первые в списке. Все остальное это или облегченные версии, или версии с различными средами рабочих столов (KDE, Mate, Xfce, LXDE), также доступны образы для ARM архитектуры.
Виртуальная машина для Kali Linux
Запускаем Virtualbox-менеджер, нажимаем Ctrl+N для создания новой виртуальной машины.
- Выбираем тип и версию операционной системы, назначаем машине имя.
- Указываем объем оперативной памяти. Рекомендуемый объем памяти равен 1024 мегабайтам, его можно увеличить исходя из возможностей своего железа.
- Выбираем — Создать новый виртуальный жесткий диск.
- Тип диска, он же формат, оставляем по умолчанию VDI (VirtualBox Disk Image).
- В формате хранения выбираем — Фиксированный виртуальный жесткий диск.
- Выбираем размер виртуального диска, 20 гигабайт хватает за глаза. При необходимости изменяем место хранения файла диска и его имя. Нажимаем «Создать».
Настройка виртуальной машины
Как только процесс создания виртуальной машины завершится, открываем Virtualbox-менеджер, выбираем Kali Linux и нажимаем «Настроить».
В разделе общих настроек на вкладке «Дополнительно» выбираем папку для снимков состояния виртуальной машины.
В разделе системных настроек на вкладке «Материнская плата» снимаем галочку с гибкого диска. Оптический диск не трогаем, иначе не установим систему. Жесткий диск перемещаем на верхнюю позицию в порядке загрузки. Проверяем чтобы стояла галочка — Часы в системе UTC. В манипуляторе курсора выбираем — PS/2 мышь, чтобы иметь возможность отключить USB контроллер. Переходим на вкладку «Процессор» и отмечаем галочкой — Включить PAE/NX.
Переходим в раздел носителей. В контроллере IDE добавляем скачанный ранее установочный образ Kali Linux.
В разделе сетевых настроек назначаем два сетевых адаптера, первый для связи с сетью, второй для ssh подключения. Чтобы назначить сетевой адаптер достаточно отметить галочкой — Включить сетевой адаптер.
Первый адаптер должен работать или в режиме сетевого моста, или в режиме Nat. Он будет обеспечивать соединение с сетью интернет.
Второй сетевой адаптер будет работать в режиме виртуального адаптера хоста.
О сетевых режимах программы Virtualbox более подробно описано здесь. Завершаем настройку виртуальной машины, в USB разделе снимаем галочку — Включить контроллер USB.
Установка Kali Linux
Запускаем виртуальную машину, выбираем строку Install.
Основываясь на выбранном языке, будет предложено выбрать свое местонахождение.
Выбираем клавиатурную раскладку.
Выбираем сочетание клавиш для переключения языков.
Далее будет предложено выбрать один из двух сетевых интерфейсов. Выбираем первый, который работает в режиме Сетевого моста или Nat.
Если сетевой адаптер работает в Nat режиме, то настройка сети произойдет автоматически. В случае с сетевым мостом автоматическая настройка пройдет если на маршрутизаторе включен DHCP сервер. Если DHCP отключен, то будет следующее предупреждение и сеть придется настраивать вручную.
Ручная настройка сети. Выбираем настроить сеть вручную.
Далее вводим все необходимое, естественно исходя из своих параметров сети.
Вводим имя компьютера. Это то, что в консоли отображается после знака «@». Далее будет предложено ввести имя домена (можно не указывать).
Задаем пароль для root пользователя и подтверждаем его.
Выбираем часовой пояс.
После загрузки дополнительных компонентов выбираем метод разметки жесткого диска — Авто — использовать весь диск.
Выбираем диск для разметки, просто жмем Enter.
Выбираем схему разметки — все файлы в одном разделе.
Выбираем — Закончить разметку и записать изменения на диск.
Выбираем «Да» для подтверждения изменений в разделах.
Во время установки будет предложено использовать зеркало архива из сети, соглашаемся с предложением.
Для «черных» делишек мы будем использовать сеть Tor, прокси не потребуются, поэтому просто нажимаем .
Соглашаемся с установкой системного загрузчика в главную загрузочную запись жесткого диска.
Выбираем устройство для установки загрузчика, в нашем случае это образ виртуального жесткого диска.
После завершения установки перезагружаем виртуальную машину, ждем полной загрузки системы, входим от имени root пользователя и приступаем к начальной настройке.