In this tutorial I will show how to install the Virtual Box guest additions in KALI Linux distribution. This step is a must for nearly every fresh OS. Guest additions allows to have a smooth interaction with your virtual machine in terms of customizing the window resolution and mouse compatibility/smoothness.
Step One:
apt-get update && apt-get install -y linux-headers-$(uname -r)
Step Two:
Insert the virtual box additions by going to the Devices menu then choose Insert Guest Additions CD image.
Step Three:
Create a folder using mkdir command anywhere you want (preferably Desktop for easy access).
Step Four:
Copy the VBoxLinuxAdditions.run file to the folder you created using the following command.
cp /media/cdrom/VBoxLinuxAdditions.run /root/Desktop/'yourFolderName'
Step Five:
go the directory folder you have created and display its content
wich will be VBoxLinuxAdditions.run. When you see that do the following command: chmod 755 VBoxLinuxAdditions.rum
Step Six:
./VBoxLinuxAdditions.run 'This will run the package and install the necessary files.
Step Seven:
Restart your Kali and you should be good to go.