Установка ОС на виртуальную машину
В меню “File -> Preferences” (Ctrl+G) можно настроить папку по умолчанию для расположения виртуальных машин “Default Machine Folder” во вкладке General:
В том же меню во вкладке Extensions следует установить “Oracle VM VirtualBox Extension Pack”, предварительно скачав его с официального сайта Oracle VM VirtualBox Extension Pack.
Рассмотрим два варианта установки Kali Linux на виртуальную машину:
- С использованием готового образа для виртуальной машины
- Создание виртуальной машины и ручная установка в ней Kali Linux
Готовый образ для виртуальной машины
Скачиваем с официального сайта готовый образ Kali Linux для VirtualBox Kali Linux VirtualBox Images
После чего остаётся импортировать данный образ, открыв меню “File -> Import Appliance…” (Ctrl+I) и выбрав скаченный образ Kali Linux.
Виртуальная машина готова к работе. Остаётся только запустить её. Данные для входа по умолчанию:
- Username: root
- Password: toor
Ручная установка
Скачиваем с официального сайта образ Kali Linux Download Kali Linux Images, выбрав, например, “Kali Linux 64 bit”.
Создание виртуальной машины VirtualBox
Создаём виртуальную машину со следующими настройками, нажав на “New” (Ctrl+N):
Создаём виртуальный жёсткий диск для виртуальной машины:
Настраиваем созданную виртуальную машину, выбрав её и нажав на “Settings” (Ctrl+S):
VMware
Полезные команды после установки ОС
Добавить права администратора пользователю в Debian GNOME
Открываем System Settings -> Administration -> Users (Параметры -> Пользователи), выбираем нашего пользователя и даём права администратора, изменив параметр «Account Type» («Тип учётной записи») на «Administrator» («Администратор»). В GNOME предварительно нужно нажать «Разблокировать» и ввести пароль администратора. Чтобы изменения вступили в силу необходимо перезапустить сеанс, для этого выходим из система, а затем вновь в неё входим.
Устанавка обновления для Debian
- apt-get update — обновление индекса пакетов
- apt-get upgrade — обновление пакетов
Устанавка дополнительных пакетов и ядра
- build-essential — информационный список пакетов необходимых для сборки пакетов Debian
- dkms — инфраструктура для поддержки динамически загружаемых модулей ядра, позволяющая обновлять модули ядра без изменения всего ядра. Также позволяет легко пересобирать модули при обновлении ядра.
- linux-headers-$(uname -r) — заголовочный файл ядра, где uname -r — команда для получения версии ядра
Горячая комбинация клавиш для запуска терминала
Параметры -> Клавиатура -> Комбинации клавиш -> Дополнительные комбинации, нажимаем “+” (Добавить). Далее указываем название комбинации, оно может быть любое, и указываем команду /usr/bin/gnome-terminal ( gnome-terminal ), которая будет выполняться при нажатии заданной комбинации. Нажимаем Добавить. После чего нажимаем на появившуюся запись с нашей комбинацией и нажимаем клавиши на клавиатуре, которые будут вызывать её. Удобно установить Ctrl + Alt + t.
Утилиту терминала можно найти, например, с помощью поиска, если заранее не знать, что команда gnome-terminal :
Возможные проблемы
Проблема с Bridge Network в VirtualBox в Windows 7
Ошибка при подключении Bridge Network в VirtualBox:
Разделы: OS
Дата изменения: 25 января 2017
Поделиться
Оставить комментарий
Вам также может понравиться
Avito BI contest
11 мин на чтение
Разбор первой задачи из Avito BI contest
Snort: Часть 9. Примеры правил
11 мин на чтение
Snort: Часть 8. Создание собственных правил для Snort. Синтаксис правил.
18 мин на чтение
В данной статье рассмотрим синтаксис правил для Snort. А также возможные значения полей заголовка и опций правила.
Как установить 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.2-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.
Как установить Kali Linux на VirtualBox
Kali Linux представляет собой операционную систему для Линукс, ее главное назначение — поиск слабых мест в Ай-Ти-структуре домашнего ПК или целой офисной системы. Иногда программу называют приложением хакеров, поскольку злоумышленники могут использовать ее в корыстных целях — поиск уязвимых точек в чужой ОС. Установку Kali Linux на физический ПК практически не проводят, вместо него используют виртуальную машину. Инсталляция Кали Линукс на Виртуал Бокс не займет много времени, справится с ней даже начинающий пользователь.
Подготовка к установке
По сути, установка Кали Линукс на виртуальную машину предусматривает три этапа:
- подготовка;
- установка системы на виртуальную машину;
- установка дополнений.
Два важных шага подготовки — скачивание двух программ — Кали Линукс и ВиртуалБокс. Первая доступна в интернете в виде образа.
Скачать Kali Linux можно по ссылке — www.kali.org
Создание виртуального ПК в VirtualBox
Для того чтобы ощутить полноценную работу Kali Linux, следует для начала создать виртуальную машину, которая станет площадкой для системы.
1. Открыть Виртуал Бокс и нажать Создать.
2. В результате откроется отдельное окно, где вам нужно ввести некоторые данные — имя будущей виртуальной машины (к примеру, Kali Linux), тип операционной системы и ее версию. Поскольку Kali Linux — дистрибутив Линукса, соответственно, ОС может быть только такой, главное — подобрать оптимальную под версию Кали архитектуру (2.6/3.х/4.х).
3. Выбор объема оперативной памяти будущего ПК, тут важно учитывать возможности ОЗУ реального компьютера, чтобы производительность системы не падала. Оптимально выбирать значения из зеленого поля.
4. Важный этап — создание виртуального жесткого диска. На выбор предлагаются 3 диска, если вы не обладаете достаточными знаниями в этой области, то лучше выбрать VDI. Это собственный формат ВиртуалБокс без наворотов и лишнего функционала.
5. Формат хранения — динамический или фиксированный. Если оперативная память реального ПК не слишком велика, лучше выбрать второй вариант.
6. Объем диска. Определяется в зависимости от задач, оптимально сделать выбор в пользу 100 Гб.
На этом первый этап установки заканчивается. ПК теперь доступен в реестре программы VirtualBox, что дает возможность перейти к следующему этапу.
Установка Кали Линукс
Этапы инсталляции системы Кали Линукс на созданный виртуальный ПК:
1. В утилите VirtualBox выбрать созданную виртуальную машину Kali Linux и нажать Запустить.
2. В появившемся окошке появится запрос на выбор загрузочного диска. Тут следует выбрать образ Kali Linux, который был скачен на этапе подготовки.
3. Начинается установка системы, в ходе которой появляется меню инсталляции. В списке следует выбрать Graphics install.
4. Теперь вам нужно выбрать язык. Следом пойдут запросы на местоположение, горячие клавиши на клавиатуре и т. д.
5. Имя компьютера, а также домен сети. Если последний вариант не требуется, шаг можно пропустить.
6. Следующий момент — весьма важный, он предусматривает создание пароля учетной записи.
7. После загрузки следует выбрать разметку диска. Поскольку Кали будет на виртуальном носителе, то подойдет все пространство целиком.
8. Как таковая разметка диска служит для продвинутых пользователей, которые могут, к примеру, хранить временные файлы на /tpm. Если вы к таким не относитесь, можно все поместить на одно пространство.
9. Последним этапом следует подтвердить список полученных томов.
10. Теперь следует выбор зеркал для дополнительного ПО при условии наличия интернета. Если он отсутствует, можно провести инсталляцию в самой системе.
11. Последним этапом следует подтвердить установку Grub — это системный загрузчик.
Система установлена и готова к использованию, останется лишь ввести имя и пароль, которые были заданы при инсталляции.
Инсталляция дополнений
Этот этап поможет получить дополнительный функционал для успешной защиты системы от взлома. Смысл его заключается в установке файла VBoxLinuxAdditions.iso.
1. В созданной виртуальной машине зайти во вкладку настроек, выбрать пункт Носитель и добавить образ дополнений Кали Линукс из корневой папки.
2. Запустить саму виртуальную машину и зайти в терминал. Прописать в нем команду «$ sudo –i». Затем прописать команды, которые помогут загрузить установочный диск — «# cp /media/cdrom0/VBoxLinuxAdditions.run /root», «# chmod 755 /root/VBoxLinuxAdditions.run», «# cd /root/, # ./VBoxLinuxAdditions.run».
Установка Kali Linux позволит защитить систему от попыток взлома, а также укажет на ее слабые места, доступные для хакеров. Процесс инсталляции не займет много времени, он понятен даже новичку.
Install Kali Linux in Oracle's Virtual Box
The thought of having to install and setup your Kali Linux operating system using Virtualization software might seem daunting at first, especially when you are new to the use of Linux in a virtual system. If this your first time, you will need a clear and simple guide, because any mistake in the installation and setup might cause the software to malfunction.
This blog covers the step by step guide on how to download and install Kali Linux Operating System in your Oracle VirtualBox.
Introduction to Linux
Linux is an open source Operating System (OS). An OS is a system software that manages all of the software and hardware on the computer. Most of the time, several different computer programs could be running at the same time, and they all need to access your computer’s central processing unit (CPU), memory, and storage. The operating system coordinates all of this to make sure each program gets what it needs.
The term open source means that the source code is available to anyone and can be modified and distributed by anyone around the world. So this makes the Linux Operating system available in different versions. These versions are called distributions (or, in the short form, “distros»). You get to choose a distro depending on what you want to achieve.
Nearly every distribution of Linux can be downloaded for free, burned onto disk (or USB thumb drive), and installed (on as many machines as you like).
Popular Linux distributions include:
- LINUX MINT
- MANJARO
- DEBIAN
- UBUNTU
- ANTERGOS
- SOLUS
Kali Linux is a Debian-derived Linux distribution designed for digital forensics and penetration testing. It is maintained and funded by Offensive Security.
Kali Linux is mainly used for advanced Penetration Testing and Security Auditing. Kali contains several hundred tools which are geared towards various information security tasks, such as Penetration Testing, Security research, Computer Forensics and Reverse Engineering.
Download Kali Linux Image
First, you will need to download Kali Linux to your computer. You can download Kali from here
On the home page, click the Downloads link at the top section of the page. On the downloads page get to the Installer Images section. You can choose between the options of Kali for 64bit or 32bit processor.
To determine the processor type on your computer go to Control Panel > System and Security > System
You have the choice of downloading directly or via torrent. If you click the download icon, Kali will download directly to your system , and will be placed on your download folder. The torrent download option is the peer-to-peer download used by many file-sharing sites. You will need BitTorrent for this. The Kali file will then be downloaded to the folder that the torrent application stores its downloads.
What is Virtual Machine
A Virtual Machine is a software that allows you to run multiple operating systems on your computer without affecting your computer’s operating system. This means that you can have a Windows or Mac OS computer and still be able to run a virtual machine of Kali Linux inside that operating system. You don’t need to overwrite your existing OS.
Many virtual machine options are available, but here you will get to see how to download and install Oracle’s free VirtualBox
Download & Installation of VirtualBox
You can download VirtualBox here
Then click Downloads on the Downloads page and select the VirtualBox package for your current operating system, make sure you download the latest version.
When the download is completed, click the setup file and it opens up to the setup wizard. Click Next and you should see a Custom Setup Screen. From this Screen, simply click Next. Keep clicking Next until you get to the network interfaces screen warning and then click Yes.
Click install to begin the process. When the installation is complete, click Finish.
Setup of VirtualBox
Your VirtualBox should be open once it’s installed. If not, open it and you should see the VirtualBox Manager. Since you will be creating a new virtual machine with Kali Linux.
- Click New in the upper right corner. This opens a Create a Virtual Machine dialog. Give your machine a name, You can call it “Kali”.
- Select Linux from the Type drop-down menu. Then select Debian(64-bit) from the Version on the menu unless you are using the 32-bit version of Kali, then you will need to select Debian(32-bit).
- Click on Next, You will see a small screen where you will need to select how much RAM you want to allocate to this virtual machine.
It is advisable to use just 25% of your total system’s RAM. That means if you have 4GB on your physical system then select just 1GB for your virtual machine. If you have 16GB on your physical system then select 4GB for your virtual machine and so on.
- Click on Next and you will get to the Hard Disk Screen. Choose create Virtual HardDisk and click Create, then on the next Screen select Virtual HardDisk (VHD) out of the other options.
- On the next screen select Dynamically Allocated as you want the space on the virtual hard drive to be available until it’s needed. Click on Next and you will choose the amount of hard drive space to allocate to the VM and the location of the VM. The default is 8GB, but it’s recommended that you allocate 20 — 25GB at least.
Remember if you choose to dynamically allocate hard drive space, it won’t use the space until needed. This is better than having to expand your hard drive after it has already been allocated.
Click on Create and you’re ready to go!
Installing Kali on the Virtual Box
At this time, you should see a screen like this and the indication that the Kali VM is powered off.
- To install the Kali, first click the Start button (The green icon). The VirtualBox will ask where to find the startup disk. You should have already downloaded the Kali Linux disk image with the extension .iso following the steps outlined above. It should be located in your Downloads folder, unless you used torrent to download then it should be in the downloads folder of your torrent application. Click the folder icon to the right, navigate to the downloads folder and select the Kali image file. Then click Start.
Congratulations, you have just installed Kali Linux on a virtual machine!
If you get an error while installing Kali into your VirtualBox, then it’s likely because you don’t have virtualization enabled in your system’s BIOS. Each system and its BIOS is slightly different so it’s best you make a quick search online to get virtualization enabled in your system or to shut down any other competing virtualization software.
Setting Up Kali
Kali will now open a screen showing you several startup choices. Graphical Install is ideal for beginners, because it gives you Desktop access instead of just the terminal. You should select graphical install, use your keyboard keys to navigate the menu.
- You will be asked to select Language, ensure you select a language that you will be comfortable working with then click Continue. Next select your location and click Continue and then select the keyboard layout based on your preference.
- The setup will now probe your network interfaces, and next the screen prompts you to enter a hostname for your system. You can name it anything you want or leave the default “kali”
- Next you will be asked to provide a Domain name, this is optional, so you can click Continue to skip.
- Next you will need to create the user account for the system (Full name, username and a strong password).
- Next you will need to set your Time Zone.
- After this, you will need to choose from the partition disks options. Choose Guided — use entire disk, and Kali will detect your hard drives and set up a partitioner automatically.
- Next click Continue to select the disk to be partitioned and ignore the warning from Kali that states that all the data on the disk will be erased because the disk is new and empty, so it won’t erase anything.
- Depending on your needs, you can choose to keep all your files in a single partition or to have separate partitions for one or more of the top-level directories. For beginners it’s recommended that you choose a single partition, so simply select All files in one partition.
- Next you will have the chance to go through your options on disk configuration once again, once satisfied, click Yes and Continue.
Kali will now begin installing the operating system, this could take a while.
- Once completely installed, you will be prompted to enter proxy information, you can leave it blank and click Continue.
- Next, on the software selection screen, click Continue as the default selections have already been made.
- Next confirm to install the GRUB boot loader, you will be prompted to choose whether you want to install the GRUB bootloader automatically or manually, select Enter Device Manually then select the available hard drive for the installation and click Continue.
- Click to the next screen and you should see that the installation is completed.
Congratulations you have successfully installed and completed the set up of Kali Linux on your Virtual Machine!
Kali will attempt to reboot and after a little while you should see Kali’s login screen, enter your Username and Password.
After logging in you should see the Kali Linux Desktop screen!
Conclusion
Now, you have a virtual machine running a Linux OS within your host OS. You can now choose to learn the basic commands in Linux and play around with it a bit.
I hope you found this article helpful. Kindly let me know what you think as this is my first tech article.