I know this is a common problem, but I haven't found any valid solution online. Virtualbox guest additions won't install in my Kali machine. This is the log in /var/log/vbox-install.log: "Makefile:181: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.". Any reply will be greatly appreciated!
I almost forgot to mention that dkms is in fact installed
Kali guest additions installation problem
-
linuxuser89765467890
- Posts: 7
- Joined: 15. Jul 2016, 16:20
-
Perryg
- Site Moderator
- Posts: 34369
- Joined: 6. Sep 2008, 22:55
- Primary OS: Linux other
- VBox Version: OSE self-compiled
- Guest OSses: *NIX
Re: Kali guest additions installation problem
You need to install the kernel-headers that match your running kernel.
You may also need to install build-essential.
You may also need to install build-essential.
-
linuxuser89765467890
- Posts: 7
- Joined: 15. Jul 2016, 16:20
Re: Kali guest additions installation problem
how do I do those two things?
-
linuxuser89765467890
- Posts: 7
- Joined: 15. Jul 2016, 16:20
Re: Kali guest additions installation problem
actually I did both
apt-get install linux-headers-$(uname -r)
and
apt-get install build-essential
no changes, it still won't install guest additions
apt-get install linux-headers-$(uname -r)
and
apt-get install build-essential
no changes, it still won't install guest additions
-
GnstheGrain
- Posts: 5
- Joined: 22. Jul 2016, 06:07
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: ...
Re: Kali guest additions installation problem
What version of the Guest Addition pack are you trying to install on kali ?
Also what version of Virtualbox are you running on host ?
(I, myself, wonder what is the latest supported version of Guest Addition Pack for Kali on Vbox 5.1.2)
Also what version of Virtualbox are you running on host ?
(I, myself, wonder what is the latest supported version of Guest Addition Pack for Kali on Vbox 5.1.2)
-
If it aint broke
- Posts: 12
- Joined: 29. Jul 2016, 19:30
Re: Kali guest additions installation problem
apt-get install linux-headers-$(uname -r)
When I ran the script, no error messages this time.
./VBoxLinuxAdditions.run
-
GnstheGrain
- Posts: 5
- Joined: 22. Jul 2016, 06:07
- Primary OS: MS Windows 7
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: ...
Re: Kali guest additions installation problem
As per Kali's own instruction (http://docs.kali.org/general-use/kali-l ... -box-guest), vbox 4.2.xx and higher have new cmd for this process..linuxuser89765467890 wrote:actually I did both
apt-get install linux-headers-$(uname -r)
and
apt-get install build-essential
no changes, it still won't install guest additions
we shouldn't play with the header, nor manually insert the guess addition anymore. read that page.