Page 1 of 2

Kali-Linux headers updated to 3.18

Posted: 11. Feb 2015, 01:28
by piratestatic
I have Kali Linux installed on my Mac Host. The installation of the Guest Additions keeps failing because the headers for Kali (and assuming most linux distros) have been updated to 3.18 and the Guest Additions is looking for 3.14. Is there a work around for getting Virtual Box to accept 3.18 linux headers? Or does Virtual Box have an update in the works for Guest Additions to accept 3.18?

Re: Kali-Linux headers updated to 3.18

Posted: 11. Feb 2015, 01:33
by Perryg
What version of VirtualBox are you using?

Re: Kali-Linux headers updated to 3.18

Posted: 11. Feb 2015, 02:15
by loukingjr
I have several guests with 3.18 kernels and the guest additions build just fine with VirtualBox 4.3.20.

Re: Kali-Linux headers updated to 3.18

Posted: 11. Feb 2015, 06:11
by piratestatic
loukingjr wrote:I have several guests with 3.18 kernels and the guest additions build just fine with VirtualBox 4.3.20.
well I am not sure where things are going wrong then. I am using the most current version of VirtualBox 4.3.20 and the latest version of Kali Linux 1.1.0.

Re: Kali-Linux headers updated to 3.18

Posted: 11. Feb 2015, 06:22
by piratestatic
Perryg wrote:What version of VirtualBox are you using?

Would the fact that Kali is 1.1.0 instead of 1.0.9 have anything to do with it? Same virtual box but newer Kali Linux? I have had this work before on the same Virtualbox release...the only thing that has changed is Kali, so if it isn't the headers changing then could it be Kali?

I know the stock answer is going to be "logs will help" but just trying to trouble shooting the issue before getting the logs involved.

Re: Kali-Linux headers updated to 3.18

Posted: 11. Feb 2015, 08:56
by loukingjr
I installed Kali Linux 1.1.0 (64bit). The guest additions installed without a problem. They are not looking for 3.14.
Make sure to install the dkms build-essential and linux-header-amd64 packages. Or the 32bit headers if running 32bit Kali.

Re: Kali-Linux headers updated to 3.18

Posted: 11. Feb 2015, 16:44
by Perryg
piratestatic wrote:
Perryg wrote:What version of VirtualBox are you using?
Would the fact that Kali is 1.1.0 instead of 1.0.9 have anything to do with it? Same virtual box but newer Kali Linux? I have had this work before on the same Virtualbox release...the only thing that has changed is Kali, so if it isn't the headers changing then could it be Kali?
I know the stock answer is going to be "logs will help" but just trying to trouble shooting the issue before getting the logs involved.
I suspect the real reason for this issue, your kernel and headers do not match, which they must.

Re: Kali-Linux headers updated to 3.18

Posted: 11. Feb 2015, 17:06
by loukingjr
Just to add to what PerryG said, linux-headers-amd64 is a meta-package and in my case installed the correct headers for the running kernel. YRMV.

But yes, as Perry said, they need to match.

Re: Kali-Linux headers updated to 3.18

Posted: 11. Feb 2015, 17:10
by Perryg
Use the following to save space and install the proper headers.

Code: Select all

sudo apt-get install linux-headers-$(uname -r)

Re: Kali-Linux headers updated to 3.18

Posted: 11. Feb 2015, 17:53
by piratestatic
Perryg wrote:Use the following to save space and install the proper headers.

Code: Select all

sudo apt-get install linux-headers-$(uname -r)
I have used the apt-get install linux-headers-$(uname -r) to get my headers (3.18) but I am still getting errors.

(forgive me I cant move this from guest to host at the moment)

Code: Select all

Uninstalling modules from DKMS
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxguest/4.3.20/source ->
                 /usr/src/vboxguest-4.3.20

DKMS: add completed.
Error! echo
Your kernel headers for kernel 3.14-kali1-amd64 cannot be found at
/lib/modules/3.14-kali1-amd64/build or /lib/modules/3.14-kali1-amd64/source.
Failed to install using DKMS, attempting to install without
/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources o$
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.

Re: Kali-Linux headers updated to 3.18

Posted: 11. Feb 2015, 17:54
by piratestatic
when I try to install guest additions this is the first error I get...the post above this is that log file referenced in the error.

Code: Select all

root@virtualboxkali:/media/cdrom# sh VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.20 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 4.3.20 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.

Building the main Guest Additions module ...fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions ...done.
Installing the Window System drivers
Installing X.Org Server 1.12 modules ...done.
Setting up the Window System to use the Guest Additions ...done.
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Re: Kali-Linux headers updated to 3.18

Posted: 11. Feb 2015, 18:05
by Perryg
What does the following report in the guests terminal?

uname -r

Re: Kali-Linux headers updated to 3.18

Posted: 11. Feb 2015, 18:33
by piratestatic
Perryg wrote:What does the following report in the guests terminal?

uname -r

Code: Select all

 # uname -r
3.14-kali1-amd64

Re: Kali-Linux headers updated to 3.18

Posted: 11. Feb 2015, 18:35
by loukingjr
FWIW, 3.14 headers and images aren't even listed as an option in Kali 1.1.0.

Re: Kali-Linux headers updated to 3.18

Posted: 11. Feb 2015, 18:37
by piratestatic
my 3.18 headers have the build and source files in them but my 3.14 are lacking