Install Kali Linux on VirtualBox with Guest Additions 2019!
I just happen to need to do a re-install of my Kali VM so it’s just the right time for a step-by-step tutorial on how to Install Kali Linux on VirtualBox with Guest Additions! I always run Kali on a VM. Even on my Hackbook. Why? Because you can always use a snapshot to revert the VM’s state back to a freshly installed period when you mess something up badly – and trust me, it happens.
Corrupted databases, weird errors when trying to modify configs and things along those lines are mostly responsible for my Kali install to stop working, if that happens I simply go back to a working state with a snapshot, within 2 mouse clicks and a few seconds.
You can use this exact same procedure for Windows and Linux.
Let’s dive right in.
Step 1– Downloading Kali
Head over to the Kali Website and choose your flavor. Scroll down and download the Kali Linux 64bit VirtualBox Image.
Step 2– Importing the Image
To install Kali Linux on VirtualBox with Guest Additions, we need to import the downloaded OVA file now. Open VirtualBox and click on File -> Import Appliance and choose the .OVA file you have downloaded. Click on Next and in Import.
Step 3– Installing the VirtualBox Extension Pack
For good measure, we are going to install the VirtualBox Extension Pack, which enables you to use some additional features like Shared Clipboard and so on. Head to the VirtualBox Website and download & install the VirtualBox Oracle VM VirtualBox Extension Pack.
Step 4– Configuring the Virtual Machine
Right-click your Kali Virtual Machine in VirtualBox and select Settings. In some cases, or if you didn’t install the VirtualBox Extension Pack, VirtualBox throws an “Invalid Settings Detected” warning.
To fix that, either make sure you have the VirtualBox Extension Pack installed correctly or, navigate to USB and change from USB 2.0 to USB 1.1.
When you are done with this, click on Start to start up Kali.
Step 5– Final Steps
Login with the default credentials:
- Username: root
- Password: toor
Open a Terminal next to change the default password.
passwd
Next, update your system.
apt-get update -y && apt-get dist-upgrade -y
Confirm all eventually following prompts with their default values.
Shutdown your Virtual Machine.
shutdown now
Step 6– Taking a Snapshot
In VirtualBox select your Kali VM, click on Snapshots in the upper right corner and click on the small “Take” Camera Symbol.
Give it a descriptive name and hit OK. Voíla, you are set and done.
The next thing I usually do now is to install Guake Terminal, can’t and won’t work without it anymore. I highly recommend following my Top Things to do after Installing Kali Linux Article next!
This concludes the Install Kali Linux on VirtualBox with Guest Additions tutorial.
Pingback: How to hack a WordPress Website – La Opinión de Poza Rica
Everything Up to Date and Guest Additions working now 🙂
Thanks for the job.
Just my 2 cents concerning the update about the Guest additions : “This only applies for Kali Linux Version 4.2.xx or higher” should be “This only applies for VirtualBox Version 4.2.xx or higher” instead…
Hi Alain,
thanks for pointing that out! Fixed!
no luck using the latest method april 2018
Thank you so much, you are a legend.
The documentation on the actual Kali website to do this is plain rubbish.
Thank you!
Haha, that honors me. Thank you! Glad it was helpful!
nice job!
Thank you!
i’ve installed past kali versions into virtualbox and always had success. now trying with Kali 2017.3 on the most recent virtualbox, and not a single attempt at installing guest additions has worked.
-After fresh install into the VB, ‚update‘ ‚upgrade‘ and ‚dist-upgrade‘ finish with 0 results.
-Trying the „new and easy“ way with ‚apt-get install -y virtualbox-guest-x11‘ spits out ‚E: Unable to locate package virtualbox-guest-x11‘
-Trying ‚apt-get install linux-headers-$(uname -r)‘ spits out three errors, starting with ‚Unable to locate package linux-headers-4.13.0-kali1-amd64‘
-Trying the cdrom step and running ‚./VBoxLinuxAdditions.run‘ spits out a message saying ‚This system is currently not set up to build kernel modules.‘
I’m no stranger to this installation, and yet this time I’m stumped. Any thoughts?
On this twitter account might be solutuion tuo this… I had to reloadsecurity key to get apt-get working : Twit is from February 2nd.
https://twitter.com/kalilinux?ref_src=twsrc%5Etfw&ref_url=https%3A%2F%2Fwww.offensive-security.com%2Foffensive-security-solutions%2Fpenetration-testing-services%2F
Amazing! Thanks for leaving this here @Jukka.
@Chris let us know if that worked for you. Also, if it doesn’t, did you consider trying ParrotSec? It’s amazing and works really well on VirtualBox. I got a tutorial for it here: https://www.ceos3c.com/2018/02/05/install-parrotsec-virtualbox/
thank you very much
You are most welcome 🙂