How to install Kali Linux 2019 in VirtualBox 6



In this blog post I will show you how to install Kali Linux 2019 in Virtual Box 6.

There are issues in getting the Kali Linux to display in full screen mode, most notably in getting the 1920×1080 resolution. Will fix that also.

To Install Kali Linux using Kali Linux official Image, please follow my post How to use Kali Linux Official Image to install Kali Linux in VMware 15 and VirtualBox 6

Lets get started

Step 1 – Download Kali Linux ISO image

To install the Kali Linux, we will have to first get the installer ISO image file. You can get it by visiting the official download page. Please download the 64 bit or 32 bit image depending on the system you have. Dont get confused by the many options available such as Kali Linux 64 bit Mate or Kali Linux 64 bit Xfce. They are all the same except for the desktop environment. LXDE, Mate, Xfce are various open source desktop environments. I use Kali Linux 64 bit, but the choice is yours. It does not really matter.

Just remember that Kali Linux 64 bit Light is the minimal distribution which will not contain all the features. You will have to install the tools you want later on. There is also an option to download the VMware image directly. But I prefer to create my own Virtual Machine which has all the tools installed, which this blog is all about. Since the file size is large, around 3.3 GB, I prefer to download via torrent because it is fast and flexible.

Kali Linux Official Download Page

Kali Linux Official Download Page

Step 2 – Locate the downloaded file

You can find the downloaded image file in the downloads folder, if you have not changed the default settings. The filename would be something like kali-linux-2019.1a-amd64.iso. If you have downloaded through torrent, the ISO file will be downloaded in a folder, folder name would be something like kali-linux-2019-1a-amd64-iso.

Step 3 – Open VirtualBox

Lets start the installation process. Open VirtualBox. If you don’t have it installed already, please visit my page.

Virtual Box Home Screen

Virtual Box Home Screen

Step 4 – Launch VirtualBox Create Virtual Machine installation wizard.

You can launch this by clicking gear symbol highlighted in Red. The keyboard shortcut is Ctrl + N on Windows.

VirtualBox Manager - Create new VM

VirtualBox Manager – Create new VM

In the Create Virtual machine dialog box, enter a Name for the Virtual machine. This can be anything you want. VirtaulBox will also create a folder by this name in your computer to store the virtual machine files, path to which is your users folders which typically is something like “C:\Users\User name\VirtualBox VMs” by default. User name is the name of the user you are logged in as in windows which will vary for all of us. Specify the memory to be allocated to the VM. I generally feel that 1 GB is not sufficient and increase the memory to 2 GB.

Select Type: Linux
Version: Debian(64 bit)

Select Click create to continue.

Now you will have to specify the disk space to allocate. I specify 60 GB. Leave the rest as default. Click Create to continue.

VirtualBox - Create new VM - Specify disk space

VirtualBox – Create new VM – Specify disk space

Now you will see the VirtualBox manager screen with the VM created.

VirtualBox Manger - Virtual machine

VirtualBox Manager – Virtual machine

Step 5 – Change Virtual machine settings

Now we will have to change the virtual machine settings. Click on the settings.

VirtualBox Manager - VM Settings

VirtualBox Manager – VM Settings


In the settings dialog box make the following changes:

  1. Go to General -> Advanced tab – Change Shared clipboard and Drag’n’Drop to bidirectional.

    VirtualBox - VM General Settings

    VirtualBox – VM General Settings

  2. Go to System -> Motherboard tab – Uncheck floppy.
    VirtualBox - VM Motherboard Settings

    VirtualBox – VM Motherboard Settings

  3. Go to System -> Processor tab – Increase number of processors to 2 have better performance. You can leave it as it is if you want. leave rest of the settings as it is.

    VirtualBox - VM Processor Settings

    VirtualBox – VM Processor Settings

  4. Go to System -> Acceleration tab – Default settings are Enable VT-x/AMD-V checked and Enable nested paging checked.
    leave them as it is. If you dont want to use VT-x/AMD-V, you can uncheck it, but there is no harm in using it if your CPU supports Intel VT-x or AMD-V.
    VirtualBox - VM system acceleration settings

    VirtualBox – VM system acceleration settings

  5. Go to Storage-> Optical Drive attribute – Click on the disk Icon and select Choose Virtual optical Disk file and navigate to the ISO image that you have downloaded.
    VirtualBox - VM Storage settings

    VirtualBox – VM Storage settings

  6. Click OK to exit settings and return to VirtualBox Manager screen.

Step 6 – Click on the Start Icon to start the virtual machine

This will power on the virtual machine and the installation process will start.

VirtualBox - Start VM

VirtualBox – Start VM

Step 7 – Select Graphical Install from Boot Menu

Here you will see many options. Select Graphical Install using the down arrow key and click continue.

Kali linux installation boot menu screenshot

Kali linux installation boot menu screenshot

Step 8 – Select a Language

In this dialog box you will be asked to select a language. Please select a language and continue. This option sets your language in the Kali Linux Operating system. Default is English.

Install Kali Linux 2019 - Select a Language Screenshot

Install Kali Linux 2019 – Select a Language Screenshot

Step 9 – Select Location

In this dialog box you will be asked to select a Location. Please select a location and continue. This option sets your Location in the Kali Linux Operating system. later on, you will be able to set the time zone based on the location you choose here.

Install Kali Linux 2019 - Select Location Screenshot

Install Kali Linux 2019 – Select Location Screenshot

Step 10 – Configure the Keyboard

In this dialog box you will be asked to select the keyboard layout. Please select a Keyboard layout using the arrow keys and click continue. This option sets your Keyboard in the Kali Linux Operating system. By default it is set to American English.

Install Kali Linux 2019 - Configure keyboard Screenshot

Install Kali Linux 2019 – Configure keyboard Screenshot

After you click continue, you will see the installation progresses for some them you see the Network Configuration dialog box, which is the next step.

Install Kali Linux 2019 - Installation progress Screenshot

Install Kali Linux 2019 – Installation progress Screenshot

Step 11 – Configure the Network – Enter Hostname

In this dialog box you will be asked to enter the hostname for your system. This being a home network, we can set anything. Enter any anything and click continue.

Install Kali Linux 2019 - Configure the Network Screenshot

Install Kali Linux 2019 – Configure the Network Screenshot

Step 12 – Configure the Network – Enter domain name

In this dialog box you will be asked to enter the domain name for your system. This being a home network, we can set anything like example.com

Install Kali Linux 2019 - Configure the Network- Enter Domain Name Screenshot

Install Kali Linux 2019 – Configure the Network- Enter Domain Name Screenshot

Step 13 – Set User and password

In this dialog box you will be asked to enter the password for the root user account. Please enter a password of your choice and click continue. This is the password for user root with which you will login when the installation completes.

Install Kali Linux 2019 - Set up Users and Password Screenshot

Install Kali Linux 2019 – Set up Users and Password Screenshot

You will be asked to setup a user only if you leave the root password as blank in the above screen. if you setup an password, you will not see the below screens. In that case you will have to login as root and the password you setup above.

In this screen you have to enter username of the account, in all small letters. This account should be used for general non administrative activities. Click on continue.
In this screen you have to enter Full name of the user other than root. This account should be used for general non administrative activities. Click on continue.

Kali Linux Installation - setup user

Kali Linux Installation – setup user

In this screen you have to enter username of the account, in all small letters. This will be used to login as a user other than root.This account should be used for general non administrative activities. Click on continue.

Kali Linux installation - setup user account

Kali Linux installation – setup user account

Here you will have to enter the password for the newly created user. Remember, this is not the root password. Enter password and Click continue.

Kali Linux Installation - setup user password

Kali Linux Installation – setup user password

Step 14 – Configure Clock

In this dialog box you will be asked to time zone based on the location you selected earlier. Please enter a time zone of your choice and click continue.

Install Kali Linux 2019 - Configure Clock Screenshot

Install Kali Linux 2019 – Configure Clock Screenshot

Step 15 – Partition Disk

In this dialog box you are asked how you would like to partition your disk. Select Guided – Use entire disk and click continue. This is the default option.

Install Kali Linux 2019 - Partition Disk Screenshot

Install Kali Linux 2019 – Partition Disk Screenshot

In this dialog box you are asked to select a disk to partition. Select sda, VMware Virtual disk. There should be only one option. Click Continue.

Install Kali Linux 2019 - Select Disk to Partition Screenshot

Install Kali Linux 2019 – Select Disk to Partition Screenshot

Step 16 – Select partition scheme

In this dialog box you are asked to select a scheme for disk partition. Select the default, All files in one partition and click Continue.

Install Kali Linux 2019 - Disk Partitioning Scheme Screenshot

Install Kali Linux 2019 – Disk Partitioning Scheme Screenshot

Step 17 – Disk partition Overview

In this dialog box you are see the summary of your disk partition. Select the Finish Partitioning and Write changes to disk which should be selected by default. All you have to do is to click continue.

Install Kali Linux 2019 - Disk Partition Overview Screenshot

Install Kali Linux 2019 – Disk Partition Overview Screenshot

Step 18 – Disk partition Confirmation

In this dialog you are asked to confirm Write changes to disk. Select yes and click continue.

Install Kali Linux 2019 - Disk Partition Confirmation Screenshot

Install Kali Linux 2019 – Disk Partition Confirmation Screenshot

Step 19 – Installation starts

Now the actual installation starts. Wait for Configure the Package Manager Dialog box to appear.

Kali Linux - Installation begins

Kali Linux – Installation begins

Step 20 – Configure the package manager

In this dialog box you will ask if you wish to configure network mirror for Package manager. Choose yes and continue. You can skip this by selecting NO. But the default option Yes is better. I will go with Yes.

Install Kali Linux 2019 - Configure the Package Manager Screenshot

Install Kali Linux 2019 – Configure the Package Manager Screenshot

Step 21 – Configure the package manager – HTTP Proxy

In this dialog box you will ask if you wish to HTTP proxy. Leave it blank and click continue.

Install Kali Linux 2019 - Configure the Package Manager - HTTP proxy Screenshot

Install Kali Linux 2019 – Configure the Package Manager – HTTP proxy Screenshot

Installation process will continue. Wait for sometime and let the process continue.

Kali Linux Installation

Kali Linux Installation

Step 22 – Install GRUB boot loader

In this dialog box you will be asked if you would like to install the GRUB boot loader. Select Yes and click Continue.

Install Kali Linux 2019 - Install GRUB Boot Loader Screenshot

Install Kali Linux 2019 – Install GRUB Boot Loader Screenshot

Step 23 – Select device for GRUB boot loader Installation

In this dialog box you will be asked to select boot loader device for GRUB installation. Select /dev/sda and click Continue.

Install Kali Linux 2019 - Select GRUB Boot Loader Device Screenshot

Install Kali Linux 2019 – Select GRUB Boot Loader Device Screenshot

Installation will continue. Wait for the process to complete.

Kali Linux Installation

Kali Linux Installation

Step 24 – Installation Complete

Installation will continue and now you will see Installation complete dialog box. Click continue to finalize the installation and wait for the VM to reboot. After reboot you will see the login screen. Login with your username or root user and provide your password. You will then see the Kali Linux desktop.

Install Kali Linux 2019 - Installation Complete Screenshot

Install Kali Linux 2019 – Installation Complete Screenshot

Process will begin again. Its just finishing up the installation process and then the VM will reboot.

Kali Linux Installation

Kali Linux Installation

Once the VM reboots, you will see the Kali Linux login screen.

Login with username: root, Password: what you entered during the installation process earlier.

Kali Linux login screen dialog box screenshot

Kali Linux login screen dialog box screenshot

Step 25 – Switching to Full screen mode

After login, if you want to switch to full screen mode, you wont be able to. What you will see is the resolution of 800×600 which is the default resolution. This is because, VMware tools are not installed. Please follow the below steps to install VirtualBox Guest Editions. After the installation and reboot, you will be able to see the desktop with resolution same as your computer.

Kali Linux desktop VMware no full screen - Resolution 800x600

Kali Linux desktop – no full screen – Resolution 800×600

Step 26 – To Install VirtualBox Guest Editions tool please follow the below steps:

  1. Insert Guest Edition CD Image

    From the menu bar go to – Devices -> Insert Guest Edition CD Image.

    VirtualBox - Guest Editions CD Image

    VirtualBox – Guest Editions CD Image

  2. Software installation warning

    Now you will see a warning, click cancel.

    VirtualBox - Guest Editions installation warning

    VirtualBox – Guest Editions installation warning

  3. Open Guest Editions folder

    Go to Places-> VBox_GA_6.0.6, This will open the folder

    VirtualBox - Guest Editions folder

    VirtualBox – Guest Editions folder

  4. Copy File VBoxLinuxEditions.run to desktop
    VBoxLinuxEditions.run is the file that will install the required tools. Copy the file to the desktop. You can use the standard GUI ways of doing it, which is, right click on the file copy and paste in the desktop folder.
    VirtualBox Guest Editions folder and files

    VirtualBox Guest Editions folder and files

  5. Run the file

    Open terminal, and run the following commands:
    cd Desktop/
    sudo ./VBoxLinuxAdditions.run

    VirtualBox - Guest Editions Installations

    VirtualBox – Guest Editions Installation

    Wait for the process to complete and you will see the below warning. It just means that you have to restart the VM.

    VirtualBox Guest Editions Installation - reboot required

    VirtualBox Guest Editions Installation – reboot required

    Reboot

    Reboot the VM by executing the command reboot in terminal. Once the system reboots, you can switch Kali VM to full screen mode by going to View->Full Screen mode.

  6. Process Complete

    You are done, You can start working on Kali Linux 2019. Thanks for Visiting my blog.

    Kali Linux

    Kali Liunx

Previous Post:

Next Post:

In Category: Virtualization




Latest Posts

Underneath a boring IT professional lies a passionate student of computer science. I love computers and this blog is about everyday computer issues that a common man faces. Through this blog I try to reconnect with my long forgotten self.

Show 11 Comments
  • Mohsin Manzoor Bhat August 16, 2017, 9:21 pm Link Reply

    Plz mail me i need ur help in installing Kali and learning it.

  • Talita October 31, 2017, 2:58 pm Link Reply

    Hi there! Thanks for your tutorial, however, I’m stuck in step 13. When I clicked “graphic install”, those following windows to choose language, location, etc., haven’t appeared. I now have a black window saying Kali Linux is running. But it’s been like that for almost 24 hours! Any ideas of why this is happening and how to solve it? Thanks in advance.

  • Alex November 23, 2017, 12:58 pm Link Reply

    What if it doesn’t give me the option to use more then one processor or allow me to access Acceleration?

    • Shailesh Jha November 24, 2017, 2:48 pm Link Reply

      In that case the performance will slow down. But still you will be able to work. But these days all the systems have multi core CPU, I don’t see a reason why you should not be able to do it.

  • Frances November 24, 2017, 8:35 pm Link Reply

    Hi – thanks for very helpful tutorial. Everything worked except for step 3 for me – so I still can’t get Kali running in full screen mode. I tried twice typing the apt-get command, but I get a message saying “unable to locate package”. Has the name changed since you wrote this? Sorry, I’m new to this and don’t know how to check for myself.

    • Shailesh Jha November 24, 2017, 8:59 pm Link Reply

      Hi Frances,

      Can you try to run the below command, your virtualbox should be connected to the internet.

      apt-get update && apt-get upgrade && apt-get dist-upgrade

      Restart Kali in Virtualbox

      and then rerun the steps.

  • VIKAS January 23, 2018, 12:00 am Link Reply

    Hello
    I just wanted to ask Which Image I have to Download on official Page of Kali /Downloads I have to install in Virtual Box And I have 32 bit Os
    So I have to install the Vbox 32bit or only 32bit one??

    • Shailesh Jha January 23, 2018, 9:11 am Link Reply

      There is no separate version of 32 or 64 bit VirtualBox. Download the version for Vbox available for download. If you have 64 bit OS, it will allow you to install 64 bit OS, else you will see only 32 bit OS option.

      For 32 bit, you have to download 32 bit Kali Image.

      For 64 bit, you need Intel VT enabled in Bios. If you don’t have 64 bit system, don’t bother about it. 32 Bit will work just fine.

  • Chris April 1, 2018, 10:41 pm Link Reply

    A very big thank you for this tutorial , I have been using kali for months, I was introduced to kali Linux by a friend of mine, who is a pen tester, but the issue I have here is switching to full screen I have followed your tutorial and I do as you say, but still am still finding it difficult to enjoy full mode, am just pissed off, I envy you for knowing all these issues and fixing them, but I don’t know why it didn’t work for me, am using the latest version of Kali, I left parrot OS because I wanted to try kali Linux, but right now am sucked, can I share my screen team view with you? so you can help me fix this prob please, am wanna be able to enjoy the full screen mode, bro help me

  • nitesh kumar September 19, 2018, 10:16 pm Link Reply

    “apt-get install linux-headers-amd64”
    it shows that “unable to locate package linux-headers-amd64 “

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.