Kali linux virtualbox machine

Kali linux virtualbox machine

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-Sep-27
Author: g0tmi1k

Источник

Kali linux virtualbox machine

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-2021.3-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: 2021-Sep-27
Author: g0tmi1k

Источник

Установка виртуальной Кали Линукс на VirtualBox.

Установка виртуальной Кали Линукс на VirtualBox в Windows 10. В статье я сделаю упор на несколько главных моментов, которые интересуют пользователя. Как то:

Ссылки, которые вам пригодятся чуть позже:

Скачивание виртуальной Кали Линукс: ISO или OVA?

Все мы перед установкой стоим перед небольшим выбором: на виртуальную машину можно поставить образ для физических машин или готовый образ для виртуальных. Установка виртуальной Кали Линукс с помощью ISO (CD формат) пригодиться вам, если вы собираетесь попрактиковаться с подготовкой жёсткого диска к установке Grub, разбиением на разделы, прохождением процедуры установки языковых и прочих настроек и т.п. Т.е. установкой Кали Линукс так, словно бы вы ставили её на реальную машину. Файл готовой виртуальной машины нам предлагается для упрощения процедуры установки. Функционал будет тем же, что и в предыдущем случае, но диск с системным содержимым, файл манифеста, OVF XML (спецификация аппаратного обеспечения) уже влючены в сборку и ставить ничего не нужно. Так что выбор в пользу OVA очевиден. Отправляемся по официальному адресу с выбором загрузок

Пролистываем верхнюю таблицу Download Kali Linux Images вниз до строки Kali Linux 64-bit VirtualBox и переходим по ссылке загрузок со страницы Offensive Security VM Download Page . По крайней мере, структура ссылок на странице загрузок в 2020 г. такая.

На следующей странице нас ждёт всегда свежий файл диска, готовый для скачивания. Скорость обмена с сервером неплохая, так что можете выбрать любой вариант загрузки: через браузер или торрентом. И ждать закачки:

Скачанную папку лучше переместить из папки Загрузок на отдельный диск или другое место, откуда вы его по ошибке не удалите.

Читайте также:  Рябь после запуска windows

Установка виртуальной Кали Линукс.

Самый быстрый этап. В открытом первоначальном окне Virtual Box выбираем ФайлИмпорт конфигураций… и указываем на папку с файлом виртуальной машины. Наш — рыжий значок с именем типа kali-linux-2020.2a-vbox-amd64 . Не ошибётесь:

Жмём Открыть и оставляем настройки виртуальной машины пока как есть, запуская процедуру установки, щёлкнув по Импорт:

Соглашаемся с окнами, если вылезут и ждём:

После завершения установки в левой части окна VirtualBox жмём Настроить для выбранной виртуальной Кали Линукс. Скорректируем настройки виртуальной машины для улучшения производительности. Я обычно делю «возможности» хозяйской Windows 10 пополам в части процессора и RAM и присваиваю их таким образом виртуальной машине. В любой момент вы сможете эти характеристики изменить:

Первый запуск виртуальной Кали Линукс.

Пароль и логин для виртуальной Кали Линукс kali и kali. Система встречает нас неверным временем и английским языком:

В соответствии с обновлёнными требованиями безопасности Кали сейчас также поставляется с автоматически активированной учётной записью Кали без root-прав. Так что любым командам в терминале должна предшествовать команда sudo с вводом пароля (в нашем случае kali). Усложнять пока процедуру знакомства регистрацией ещё одного пользователя мы не будем. А пока обновимся через терминал:

Перезагружаемся командой sudo reboot и готовим систему к установке дополнений.

Настройка Дополнений гостевой ОС

Для начала ISO дополнений VBoxGuest Additions нужно скачать. Он находится на странице загрузок версий, откуда вам его нужно скачать в виде образа переходом на страницу. Я качаю в виде ISO последней версии:

После загрузки укажем его в качестве диска (он должен появиться на Рабочем столе Кали):

Однако при попытке его закрепить в чистом виде (Подключить образ диска Дополнений гостевой ОС…) вылезет ошибка:

Входим в Кали Линукс, открываем терминал и вводим поочерёдно:

Последняя команда покажет содержимое диска Дополнений. Запускаем файл VBoxLinuxAdditions.run от имени root:

По окончании команды окно виртуальной машины развернётся во весь (или почти) экран. Перезагружаемся. Проверяем, настроены ли общий с хозяйской Windows 10 буфер обмена и общие папки:

Проверьте: скопируйте из Windows 10 что-нибудь и вставьте в терминал Кали скопированное сочетанием CTRL + Shift + V. Если содержимое буфера в терминале виртуальной машины отобразилось, всё настроено верно.

5 thoughts on “ Установка виртуальной Кали Линукс на VirtualBox. ”

Добрый день. В Кали Линукс виртуальной во время запуска на короткое время появляется в правом углу надпись vboxclient: failed to register resizing support. Не то чтобы очень мешает, но как убрать?

Речь, видимо. вот об этом:

В настройках графического контроллера поставьте VBoxVGA или VBoxSVGA. VirtualBox укажет на неправильные настройки, однако ошибки больше не будет.

Здравствуйте. При попытке установить Кали я вижу сообщение в углу
vboxclient: failed to get dis…
И ничего не происодит. Могу только выключить. Как настройками VirtualBox не играл, дальше этого окна уйти не могу. Что делать?

Обновитесь до последнего релиза Virtual Box (или поставьте предыдущую версию виртуальной Кали Линукс) и должно прийти счастье )). Вы, скорее всего, ставите последний OVA от Кали Линукс на довольно подустаревую версию VBox. Для виртуалок Кали идёт с интегрированным guest edition, этот факт немного сбивает машину с толку.

Источник

Installing Kali Linux on VirtualBox: Quickest & Safest Way

Last updated September 16, 2021 By Ankush Das 106 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

VirtualBox 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.

Читайте также:  Hp photosmart 7150 драйвер windows 10

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.

Источник

Оцените статью