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.
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.
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.
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.
Now you will see the VirtualBox manager screen with the VM created.
Step 5 – Change Virtual machine settings
Now we will have to change the virtual machine settings. Click on the settings.
In the settings dialog box make the following changes:
- Go to General -> Advanced tab – Change Shared clipboard and Drag’n’Drop to bidirectional.
- Go to System -> Motherboard tab – Uncheck floppy.
- 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.
- 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.
- 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.
- 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.
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.
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.
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.
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.
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.
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.
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
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.
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.
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.
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.
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.
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.
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.
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.
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.
Step 18 – Disk partition Confirmation
In this dialog you are asked to confirm Write changes to disk. Select yes and click continue.
Step 19 – Installation starts
Now the actual installation starts. Wait for Configure the Package Manager Dialog box to appear.
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.
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.
Installation process will continue. Wait for sometime and let the process continue.
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.
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.
Installation will continue. Wait for the process to complete.
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.
Process will begin again. Its just finishing up the installation process and then the VM will reboot.
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.
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.
Step 26 – To Install VirtualBox Guest Editions tool please follow the below steps:
- Insert Guest Edition CD Image
From the menu bar go to – Devices -> Insert Guest Edition CD Image.
- Software installation warning
Now you will see a warning, click cancel.
- Open Guest Editions folder
Go to Places-> VBox_GA_6.0.6, This will open the folder
- 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.
- Run the file
Open terminal, and run the following commands:
Wait for the process to complete and you will see the below warning. It just means that you have to restart the VM.
Reboot the VM by executing the command
rebootin terminal. Once the system reboots, you can switch Kali VM to full screen mode by going to View->Full Screen mode.
You are done, You can start working on Kali Linux 2019. Thanks for Visiting my blog.