Installing VirtualBox Guest Addition (Guest Tools)
Installing “Guest Addition”, gives a better user experience with VirtualBox VMs (e.g. proper mouse and screen integration, as well as folder sharing). This is why since Kali Linux 2019.3, during the setup process it should detect if Kali Linux is inside a VM. If it is, then automatically install any additional tools (in VirtualBox’s case,
virtualbox-guest-x11). The Guest Addition is also pre-installed in the Live image since Kali Linux 2021.3.
You must use VirtualBox 4.2.xx or higher in order to take advantage of the improvements, including compatibility updates, and enhanced stability of both the core application and the Guest Additions.
Should you decide to create your own VirtualBox installation of Kali Linux (rather than using our pre-made VirtualBox images), and you want to force a manual reinstall of
virtualbox-guest-x11 (as something has gone wrong), first make sure you are fully updated, then enter the following.
[email protected]:~$ sudo apt update [...] [email protected]:~$ [email protected]:~$ sudo apt install -y --reinstall virtualbox-guest-x11 [...] [email protected]:~$ [email protected]:~$ sudo reboot -f [email protected]:~$
For older versions of Kali Linux, here is our previous guide.
Updated on: 2022-Jul-26