1

Good evening.

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.

Cheers!

-Smalls

0

Try this procedure:

  1. install linux headers

    sudo apt-get install build-essential linux-headers-`uname -r` dkms
    
  2. mount CD VBoxGuestAdditions

  3. get into that cd and run

    sudo ./VBoxLinuxAdditions.run
    

Wait until it installs and reboot the VM

0

This worked for me:

apt-get purge virtualbox-guest-x11
apt-get autoremove --purge
reboot
apt-get update
apt-get dist-upgrade
reboot
apt-get update
apt-get install -y virtualbox-guest-x11
reboot
0

This worked for me on Linux kali 4.14.0-kali3-amd64

apt-get remove && apt-get update && apt-get upgrade -y && apt-get dist-upgrade -y
reboot
apt-get install -y virtualbox-guest-x11
reboot

Then

apt-get install virtualbox-guest-additions-iso
mount /usr/share/virtualbox/VBoxGuestAdditions.iso /mnt
cd /mnt
./VBoxLinuxAdditions.run
reboot

or

Virtual Box Menu: Devices -> Insert Guest Additions CD..

mkdir VBox
cp -Rv /media/cdrom0/* ~/Vbox/
cd Vbox/
./VBoxLinuxAdditions.run
reboot

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.