0

I am using a full fresh installed Kali Linux rolling edition. And please be specific to me while explaining the matter because I am very new-be in the world of Linux. My host OS is Ubuntu 15.10.

apt-get install virtualbox-guest-x11 apt-cache apt-cache

David Foerster
  • 36,264
  • 56
  • 94
  • 147

2 Answers2

1

Simple and easy answer:

First install the needed dependencies you need to build the modules:

apt-get install linux-headers-amd64 dkms

Then install the gues additions with:

sh /media/cdrom/VBoxLinuxAdditions.run

this will take care of everything normally. The VirtualBox Guest additions are not within the Kali repository so you cannot install them with apt-get, but since you mounted the additions CD anyways (as seen in your screenshot) this above command will take care of everything.

Videonauth
  • 33,355
  • 17
  • 105
  • 120
  • I tried that too, but it said.. : "Building the main Guest Additions Module fail! (Look at /var/log/vboxadd-install.log to find out what went wrong) But what do I d –  Jun 02 '16 at 07:49
  • Sorry..But It says Unable to find package linux-headers-generic. Actually what's the problem? :( –  Jun 02 '16 at 08:26
  • @ Videonauth Look...I added a new photo as an answer. –  Jun 02 '16 at 08:39
  • @FarhanUzumakiTahmid Updated my answer. – Videonauth Jun 02 '16 at 08:51
0

Looks like your guest is missing DKMS support , this would allow it to easily build the modules for the virtualbox guest. On ubuntu you can install guest tools from these packages, not sure if Kali does this the same way.

sudo apt-get update      
sudo apt-get install dkms virtualbox-guest-dkms
Amias
  • 5,246