0

This question already has an answer here:

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

marked as duplicate by David Foerster, Videonauth, Rinzwind, terdon, Mark Kirby Jun 2 '16 at 11:26

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Which version of VirtualBox you are using? Can you please edit your question and add the output of `apt-cache policy virtualbox – Videonauth Jun 2 '16 at 3:48
  • That would be version 5. – user551311 Jun 2 '16 at 4:01
  • Please post text files and program output listings as text, not as images (see How do I save terminal output to a file?). – David Foerster Jun 2 '16 at 9:27
  • "Kali Linux rolling edition" = off topic. We only support official Ubuntu releases. – Rinzwind Jun 2 '16 at 10:10
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.

  • 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 – user551311 Jun 2 '16 at 7:49
  • Sorry..But It says Unable to find package linux-headers-generic. Actually what's the problem? :( – user551311 Jun 2 '16 at 8:26
  • @ Videonauth Look...I added a new photo as an answer. – user551311 Jun 2 '16 at 8:39
  • @FarhanUzumakiTahmid Updated my answer. – Videonauth Jun 2 '16 at 8: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