So, I have been trying to install the virtualbox guest additions onto my Kali Linux VM for the past couple of days now and I am at a loss for why it's not working.
For starters, the host machine is running Windows 10. I am running VirtualBox version 5.1.18. In addition, I have been using Kali Linux version 2016.2 for a 64 bit OS.
I have tried several different methods for installing the guest additions. The first method was inserting the guest cd under the devices menu for my VM. I was able to see the disk on the desktop of the vm but when I tried to launch the software inside it errored with the message: Cannot find program.
I then tried the official way on the kali docs found here. Those commands worked fine and things were installed. However, upon reboot the seamless mode and auto-resize guest option for my vm were still greyed out.
I tried doing those two methods twice, each with a brand new VM.
My final method came from SuperUser as found here. I followed the comment talking about editing /etc/apt/sources.list. The commands below it worked until the apt-get install linux-headers-$(uname -r) command. The vm errored saying:
E: Unable to locate package linux-headers-4.6.0-kali-amd64 E: Couldn't find any package by glob 'linux-headers-4.6.0-kali-amd64' E: Couldn't find any package by regex 'linux-headers-4.6.0-kali-amd64'
If any of you know what I can do to try and get this to work please let me know. Thank you so much in advance for your help.