How to install kali linux on virtualbox

How to install kali linux on 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-Sep-27
Author: g0tmi1k

Источник

How to install kali linux on 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-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) .

Читайте также:  Webstorm для windows 10

“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

Источник

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.

Читайте также:  All media server mac os

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.

Источник

Читайте также:  Перезагрузка сетевых интерфейсов линукс

How to Install Kali Linux on Virtualbox (with Pictures)

Kali Linux know as BackTrack in the past is a Debian-based system for network security, forensic analysis, and penetration testing. A good way to try a new system is to virtualize it with virtualization tool such as VirtualBox.

This tutorial will show you how to install the latest version of Kali Linux 2018 on VirtualBox in your Linux system.

If you using a Windows 10 Desktop, the only difference would be to download the ‘exe’ file from Oracle VM VirtualBox and proceed with standard installation steps to have VirtualBox on windows.

Pre-requisites

In order to virtualize Kali Linux and have a minimum average working environment, you need to have

  • virtualbox installed in your Linux system
  • the image of Kali Linux present in your system
  • at least 4GB of RAM
  • at least 20-30GB of free disk space
  • network to have a system updated
  • a processor with the virtualization features enabled (often activated by default)

In this tutorial, we will use the actual latest version Kali Linux 2018.3a available in the official site and virtualbox 5.1.34

Step 1: Download and install VirtualBox

Virtualbox is present in the official repositories of Ubuntu

Then you can install the virtualbox extension

You can also download the latest version and install it directly from the official website

Then install it with dpkg command

If you encounter any dependency error, use the command

then reinstall again with the dpkg command.

Step 2: Download Kali Linux ISO and Create guest on virtualbox

In virtualization, the guest OS is the virtualized system (so our Kali Linux) and the host OS is our Linux system. To create it, you need to run virtualbox and choose New

Then choose the platform and the OS to create. We will choose Debian (64 bits) because Kali is a Debian-based system and we have the x64 platform

Set the memory size. In our case we choose 2GB

Then create a new virtual HD drive

  • hard disk file type: VDI
  • storage on physical hard disk: Dynamically allocated
  • file location: leave by default
  • size: 20GB

Now we need to edit some parameter of our guest by going to Settings

We will allow the bidirectional shared and data transfer between the Linux host and guest Kali.

You can edit the motherboard option such as the boot order and the EFI mode

Now we will need to add the image of Kali for the installation process. at step 3 choose the option for the Optical disk file, then go to the image location

Now you can see that kali appears

After, you can go through the others features to see which ones you can activate. Now we can launch the installation process.

Step 3: Install Kali Linux on virtualbox

Now that you have edited settings, you can see a summarize of the configuration, then launch the installation

Choose Start Installer

When you will click with the cursor, a message will appear informing that the mouse will be captured. To release it and manipulate your host normally, you will need to use the right Ctrl key

Let’s define the system language

Then define your exact location. if you don’t see your county, go to other and choose

You must define your locales preferences and keyboard language

Now you can configure the hostname of the guest

You need to configure your domain name but in our case, this information will be blank

then configure the password of the root account.

In this step, we need to partition the disk. But in our case, we will do a configuration as a beginner by using the entire disk without partitioning

validate the changes and continue the process.

To configure the package manager, you will be asked for a network mirror but we will not use it

now you can enter the proxy information if you have one

Then continue the process installation

You will see a message when the installation will be completed

Now that you can reboot. You can see the grub

You can now log in the system as root user and the password used during the installation

You can see the interface of your new system

You can now discover Kali by going through the different menu available. You can see the detail information

Give it a try and let us know if you encounter any issues. Good luck!!

Источник

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