How to install virtualbox on kali linux
How to install virtualbox on kali linux
How to install virtualbox on kali linux
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
“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.
For the “Hard disk file type”, we select VDI (VirtualBox Disk Image) (and its the default option).
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.
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: 2022-Aug-10
Author: g0tmi1k
How to install virtualbox on kali linux
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 bear 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.
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: 2022-Jul-16
Author: g0tmi1k
How to Install VirtualBox 6.1 on Kali Linux 2022
In this article, we will examine how to set up the Oracle VM VirtualBox 6.1 (6.1.32) virtualization program, which allows you to run Windows, Linux, or macOS operating systems virtually on a computer with Kali Linux 2022 (2022.1), and how to create a new virtual machine.
How to Set Up Oracle VM VirtualBox 6.1.32 to Create a Virtual Machine on Kali Linux 2022.1
Kali Linux is a Debian-based Linux distribution developed by Offensive Security that includes multiple free tools for system and networking. Using this distribution, you can perform system audits and test your network security through free programs.
Oracle VM VirtualBox software is a free virtualization application that can be installed on computers with Intel and AMD processors. Using this software, you can run one or more of Windows, Linux, Solaris, or macOS systems virtually without dual-boot on your physical computer.
So you can install Oracle software on your system for free to create a virtual machine on your Kali Linux PC and install and run a guest operating system on it. In order to use devices such as USB and webcam of your host computer, you need to install the Extension Pack after installing the program.
How to Download and Install VirtualBox
The installation of a program on Windows systems usually consists of simple steps and you do not need to take any additional action. However, in order for a program to work properly in Linux distributions, you must also install dependent packages during the installation phase.
Step 1
To download Oracle VM VirtualBox to your Linux system, visit the official website https://www.virtualbox.org/ and click on the Download VirtualBox 6.1 image on the homepage.
Step 2
Click Linux Distributions under the VirtualBox 6.1.32 Platform Packages heading to download the Oracle software to your Linux computer.
Step 3
You can see more than one Linux distribution version under the VirtualBox 6.1.32 for Linux title on the opened webpage. You need to select the relevant distribution from whichever system’s code structure the Linux distribution installed on your computer is derived from.
Since Kali distro is derived from the Debian code structure, click on the latest version, Debian 11, and then in the window that opens, select the Save File option to save the deb package to your computer and click OK.
Step 4
Before installing the VirtualBox.deb package on your system, execute the “sudo apt update” command in the terminal to update the list of packages installed on your Linux system.
Step 5
To install additional packages required for VirtualBox to work properly, execute the “sudo apt install build-essential dkms” command in the terminal.
Step 6
Now, to install VirtualBox on your Linux computer, navigate to the location where you downloaded the deb package with the “cd
While installing VirtualBox, you may find that the dependent packages libqt5opengl5, libsdl1.2debian, and libvpx6 are not installed on your system. In order to install these packages, you need to add the Debian Repository address to your system.
Step 7
Add the Debian Bullseye repo address by executing the command below in the sources.list configuration file so that your Kali system can access the resources where the software packages and applications are located.
Step 8
After downloading and installing additional packages, this time you may get Linux-headers-5.15.0-kali3-amd64 kernel error for VirtualBox as in the image below.
To fix this problem, you need to install the Linux-headers-5.15.0-kali3-amd64 package and its dependent packages.
Step 9
To download and install the Linux-headers-5.15.0-kali3-amd64.deb package, run the commands below in the terminal, and this time you can see that you need to install the dependent packages of this package.
Step 10
To download and install the first of the dependent packages, Linux-headers-5.15.0-kali3-common.deb, download the deb package using the wget command in the terminal and install it with the sudo dpkg command.
Step 11
Download and install the other dependent package, Linux-kbuild-5.15.deb.
Step 12
After installing the necessary additional packages for the Linux-headers-5.15.0-kali3-amd64 package, when you try to install it again this time, you will see that the installation was successful.
Step 13
After installing the necessary packages for Oracle virtualization software, when you try to open the program again by using the “virtualbox” command in the terminal, you may encounter the error vboxdrv kernel module is not installed.
To solve this problem, execute the “sudo /sbin/vboxconfig” command in the terminal to recompile the Linux kernel.
Step 14
When you run VirtualBox from the terminal after compiling the Linux kernel, you will not get any errors this time.
How to Install Extension Pack
Step 1
After running the Oracle VM VirtualBox Manager, click File / Preferences from the tool menu and click Extensions from the left panel of the window that opens and check if there is an existing Extension Pack.
Step 2
If the extension package is not installed in your program, visit the Oracle website again and download the vbox-extpack package to your computer by clicking All Supported Platforms.
Step 3
Open the Downloads folder and double-click the Oracle_VM_VirtualBox_Extension_Pack-6.1.32.vbox-extpack package to start the installation.
Step 4
Click Install in the window that states the Extension Pack description.
Step 5
To read the full text of the extension package’s license agreement, scroll down the page and click I Agree.
Step 6
After you have successfully installed the Extension Package on your Kali system, click OK to close the information window.
Step 7
When you check the Extensions section from Preferences again, you can see that the extension package is installed.
How to Create a New Virtual Machine
After successfully installing Oracle virtualization software on your Kali Linux PC, you can now install a Windows 10 or one of the other systems so that you can use Windows software on your physical computer.
Step 1
After opening the Oracle VM VirtualBox software, click the New button from the large icons section to start the virtual machine wizard.
After the wizard is opened, firstly type the name of the guest operating system to be installed in the Name field, and then check that the Microsoft platform and operating system version are correct in the Type and Version settings and click Next.
Step 2
Configure the virtual memory size of the Windows 10 guest operating system according to the capacity of your host computer.
Step 3
Tick Create a Virtual Hard Disk Now to install a clean system and click Next.
Step 4
If you are not going to use the disk of your virtual machine with other virtualization software, select the VDI (VirtualBox Disk Image) disk type and click Next.
Step 5
In order to ensure that the virtual disk of your Windows 10 virtual computer grows as much as the area used and not to fill your host disk unnecessarily, select the Dynamically Allocated storage type and click Next.
Step 6
Do not change the File Location if you agree to back up the virtual disk file to the default location determined by the Oracle software. In this window, just select an appropriate virtual disk size based on the size of the programs you will install on your Windows 10 VM and click Next.
Step 7
After preparing your Windows 10 virtual system, click Settings to view more advanced hardware settings.
Step 8
In the General / Advanced settings of the virtual machine, first, change the relevant properties to Bidirectional as in the image below, so that you can transfer files between your host system and your VM using drag-drop and copy-paste features.
Step 9
Since the floppy device is an old technology, delete it from the Boot Order devices in the System / Motherboard settings.
Step 10
Configure the number of virtual processor cores as 2 or higher according to the power of your host CPU so that your virtual PC can work more efficiently and do your work more comfortably.
Step 11
If you are going to use applications that require high GPU power such as Photoshop in your Windows 10 virtual operating system, enable the 3D Acceleration feature in the Display settings and configure the Video Memory size to 256 or higher.
Step 12
You can speed up your VM a little more by enabling the Host I/O Cache feature for the SATA controller of the virtual disk from the Storage device settings.
Step 13
Likewise, change the working principle of the Windows 10.vdi virtual disk file to Solid-State Drive (SSD).
Step 14
To add the installation media of Windows 10 or another operating system to the VM you have prepared, select the Empty optical drive and click the CD/DVD icon, then click Choose a disk file.
Step 15
When the Please Choose a Virtual Optical Disk File window opens, select the Windows 10 ISO file from your host computer and click Open.
Step 16
In order to transfer large files from your Kali computer to your virtual machine faster, enable the USB 3.x (xHCI) Controller in the USB hardware settings.
Step 17
After making all the settings of your Windows 10 guest machine correctly, click Start and run it.
Step 18
When your virtual computer is turned on, press any key and start the Windows 10 setup wizard.
How to Delete the Virtual Machine
When you decide to delete the Windows or other guest operating systems that you created using Oracle VM VirtualBox, you can easily do this.
Step 1
Right-click on the virtual machine you have installed on the left panel of Oracle VM VirtualBox, then click Remove and click the Delete All Files button in the window that opens to confirm the deletion of all files from your PC.
Step 2
After completely deleting the virtual machine from your system, go to the VirtualBox VMs location and check if there are any folders or files.
How to Uninstall VirtualBox
If you want to completely remove the Oracle virtualization software from your Kali PC, you can quickly do this using the terminal.
Step 1
Open the terminal and execute the “sudo apt remove –purge *VirtualBox*” command to uninstall VirtualBox and then type your user account password and press Enter.
Step 2
After this process, press Y and Enter to confirm the packages to be removed from your system.
Step 3
After removing all applications related to Oracle VM VirtualBox from your system, execute the commands below in the terminal and delete the residual files.
Step 4
You can use the “sudo apt autoremove && sudo apt autoclean” command to delete additional packages installed when you remove VirtualBox or any other program from your computer.
Video
How to Install VirtualBox via Oracle Repository
After manually installing the VirtualBox software on your computer, you have to do this manually when a new update is released. If the new version of the program is released, you can update your Linux system by using the sudo apt update and sudo apt upgrade commands.
Как установить VirtualBox 6.0 на Kali Linux / Linux Mint
Добро пожаловать в наше руководство по виртуализации о том, как установить VirtualBox 6.0 на Kali Linux / Linux Mint 19.
VirtualBox – это высокопроизводительное решение для виртуализации с открытым исходным кодом, разрабатываемое корпорацией Oracle.
VirtualBox 6.0 Новые возможности
Были добавлены следующие основные новые функции:
Установка VirtualBox 6.0 на Kali Linux / Linux Mint 19
Ниже приведены шаги, необходимые для установки VirtualBox 6.0 на Kali Linux / Linux Mint 19.
Шаг 1: Обновите вашу систему
Убедитесь, что ваша система обновлена.
Шаг 2: Импортируйте подходящее хранилище
Добавить ключ хранилища
Шаг 3: Добавьте репозиторий VirtualBox
После обновления системы и импорта ключа репозитория вы можете добавить репозиторий VirtualBox.
Шаг 4. Установите VirtualBox и пакет расширений.
Наконец, установите VirtualBox 6.0 в систему Kali Linux / Linux Mint, выполнив команды:
Скачайте пакет расширений
Вы также можете скачать его вручную https://www.virtualbox.org/wiki/Downloads
Как только файл загружен, установите пакет расширений, нажав на Скачанный файл.
Нажмите «Install» и дождитесь завершения установки.
Шаг 5: Запуск VirtualBox 6.0
После того, как VirtualBox установлен, вы можете запустить его с помощью терминала или поиска в приложениях.
Из терминала используйте:
Новый пользовательский интерфейс для VirtualBox 6.0 выглядит следующим образом:
Install Kali Linux on Virtualbox in 3 Easy Steps
How to install Kali Linux on Virtualbox? In this tutorial, we’ll walk you through the easiest way in which you can install Kali Linux on your VirtualBox. Ready to roll? Let’s go!
Table of Contents
What is Kali Linux and Why Do People Use It?
Kali Linux is one of the best Linux distributions created for penetration testers. All the tools that a network security tester or a hacker might ever need, are pre-installed and set-up perfectly in this distribution making things really easy. This is not just limited to the software, even the hardware is perfectly integrated by using the right drivers to improve hardware functionality.
What’s VirtualBox and Where Can I Get it?
VirtualBox is a virtualization software used to test different operating systems on simulated hardware. It allows you to run multiple operating systems independently without affecting your primary OS.
Difficult to understand? It really isn’t! Your operating system makes use of the physical hardware that’s allocated to it when the system is booted. VirtualBox takes a part of that hardware from the Operating system and allocates it to a VirtualMachine. The OS that’s installed inside a virtual machine works and runs exactly as it would run on regular hardware.
Basic terminology to note:
You can download VirtualBox from the official website (link to the website). The installation is very straightforward and you should have no difficulty in getting Virtualbox set up.
How To Install Kali Linux on VirtualBox?
If you’re installing Kali Linux on your computer as a secondary OS, you can go about installing it the same way you’d do for any other operating system. Download the ISO file from the official website (link to website), burn it to a USB or a CD, and boot from it.
We can follow similar steps while installing Kali Linux on Virtualbox too. But because of the popularity of virtual machines, there’s an option to directly load up a pre-configured Kali system on Virtualbox! So without wasting more time, let’s download the VirtualBox image and boot it up.
Install Kali Linux on VirtualBox Using the VirtualBox Image
This is the simplest way to go about installing Kali on Virtualbox. The virtual machine image files can be found right on the official website.
1. Download Kali Linux VirtualBox Image
Visit the Kali Linux official website and go to the download page.
On the downloads page, you can scroll down to find Kali Linux images for VMware and Virtualbox. For this tutorial, we’ll download the 64-bit Virtual Box image.
2. Import the OVA File to Install Kali Linux on VirtualBox
Once downloaded, you’ll have a .ova file which contains the complete data for the operating system to boot! Yes, it’s all set up and ready to start. All you need to do is import the “appliance” to install Kali Linux on Virtualbox.
To import the ova file:
A new window will pop up as shown in the below screenshot where you need to select the ova file.
I’ve selected the kali-linux-2020.1 VirtualBox file and then click “Next”. The immediate next screen will display the default settings for the virtual machine. You can choose to go with the defaults or edit them based on your requirements.
When you click on the import button, you’ll see a “Software License Agreement” pop-up like the one in the screenshot below. Simply agree and move ahead.
Once you’ve agreed to the terms and conditions, the process to install Kali Linux on VirtualBox will begin. You’ll see the importing progress bar like the one below. This can take several minutes depending on the speed of your host system.
3. Boot Kali Linux on VirtualBox
The importing will take some time depending on the host system hardware that you have. For me, it took around 15 minutes. Once that’s done, you’ll see the operating system added to the list of Virtual Machines as shown in the screenshot below.
Select the operating system, and click on the start button on the top. This will boot the Virtual machine right away and will take you to the login screen like below:
The username and password are both kali . Once you’re logged in, you can change the password using the passwd command in Linux.
That’s it! If you’ve read through till here, you should know how to install Kali Linux on Virtualbox. If you followed along, you will also have the Kali Linux system installed on your VirtualBox.
Here’s what the default setup looks like:
The best part is since the image comes pre-configured, you don’t even have to set up VirtualBox Guest Additions on it. Everything is already set up and you can start working right away!
Who Should Install Kali Linux on VirtualBox?
This is a choice that you’ll have to make based on the requirements that you have from the installed operating system. There are a few pros and cons when you install Kali Linux on Virtualbox. Let’s discuss these pros and cons below and you can decide if it’s something that you should consider for yourself instead of installing Kali as a secondary OS.
Pros of installing Kali Linux on VirtualBox
Cons of installing Kali Linux on VirtualBox
Finally…
So we’re done with setting up and installing Kali Linux 2020 on VirtualBox! The OS is made to be very fast and efficient even for Virtualbox and you’ll notice that as soon as you’re done installing it.
You can obviously download and install Kali using the Kali Linux ISO file if you want to learn the complete setup process from scratch. That entire process is very straightforward too and the Kali Linux installer does most of the work for you. But for the purpose of getting an up and running Kali Linux installed on VirtualBox, the Vbox image is the perfect way to go.
We hope this tutorial proved useful to you. Make sure you bookmark our website for more awesome tutorials like these in the future!
Источники информации:
- http://www.kali.org/docs/virtualization/install-virtualbox-host/
- http://www.sysnettechsolutions.com/en/install-virtualbox-kali-linux/
- http://itsecforu.ru/2019/01/09/%D0%BA%D0%B0%D0%BA-%D1%83%D1%81%D1%82%D0%B0%D0%BD%D0%BE%D0%B2%D0%B8%D1%82%D1%8C-virtualbox-6-0-%D0%BD%D0%B0-kali-linux-linux-mint/
- http://www.linuxfordevices.com/tutorials/kali-linux/install-kali-linux-on-virtualbox