How to install VirtualBox GuestAdditions on Kali Linux

Update the system and install the headers

# apt update
# apt upgrade
# apt dist-upgrade
# reboot now
# install linux-headers-$(uname -r)

In VirtualBox go to Devices -> “Insert Guest Additions CD Image…”

$ cp /media/cdrom/VBoxLinuxAdditions.run /tmp
$ cd /tmp
$ chmod +x ./VBoxLinuxAdditions.run
$ sudo ./VBoxLinuxAdditions.run