Kali-Linux headers updated to 3.18
-
piratestatic
- Posts: 16
- Joined: 11. Jan 2015, 21:13
Kali-Linux headers updated to 3.18
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?
-
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-Linux headers updated to 3.18
What version of VirtualBox are you using?
-
loukingjr
- Volunteer
- Posts: 8851
- Joined: 30. Apr 2009, 09:45
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: just about all that run
Re: Kali-Linux headers updated to 3.18
I have several guests with 3.18 kernels and the guest additions build just fine with VirtualBox 4.3.20.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
There are three groups of people. Those that can count and those that can't.
-
piratestatic
- Posts: 16
- Joined: 11. Jan 2015, 21:13
Re: Kali-Linux headers updated to 3.18
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.loukingjr wrote:I have several guests with 3.18 kernels and the guest additions build just fine with VirtualBox 4.3.20.
-
piratestatic
- Posts: 16
- Joined: 11. Jan 2015, 21:13
Re: Kali-Linux headers updated to 3.18
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.
-
loukingjr
- Volunteer
- Posts: 8851
- Joined: 30. Apr 2009, 09:45
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: just about all that run
Re: Kali-Linux headers updated to 3.18
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.
Make sure to install the dkms build-essential and linux-header-amd64 packages. Or the 32bit headers if running 32bit Kali.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
There are three groups of people. Those that can count and those that can't.
-
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-Linux headers updated to 3.18
I suspect the real reason for this issue, your kernel and headers do not match, which they must.piratestatic wrote: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?Perryg wrote:What version of VirtualBox are you using?
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.
-
loukingjr
- Volunteer
- Posts: 8851
- Joined: 30. Apr 2009, 09:45
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: just about all that run
Re: Kali-Linux headers updated to 3.18
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.
But yes, as Perry said, they need to match.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
There are three groups of people. Those that can count and those that can't.
-
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-Linux headers updated to 3.18
Use the following to save space and install the proper headers.
Code: Select all
sudo apt-get install linux-headers-$(uname -r)-
piratestatic
- Posts: 16
- Joined: 11. Jan 2015, 21:13
Re: Kali-Linux headers updated to 3.18
I have used the apt-get install linux-headers-$(uname -r) to get my headers (3.18) but I am still getting errors.Perryg wrote:Use the following to save space and install the proper headers.
Code: Select all
sudo apt-get install linux-headers-$(uname -r)
(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.
Last edited by piratestatic on 11. Feb 2015, 18:30, edited 1 time in total.
-
piratestatic
- Posts: 16
- Joined: 11. Jan 2015, 21:13
Re: Kali-Linux headers updated to 3.18
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.
Last edited by piratestatic on 11. Feb 2015, 18:31, edited 1 time in total.
-
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-Linux headers updated to 3.18
What does the following report in the guests terminal?
uname -r
uname -r
-
piratestatic
- Posts: 16
- Joined: 11. Jan 2015, 21:13
Re: Kali-Linux headers updated to 3.18
Perryg wrote:What does the following report in the guests terminal?
uname -r
Code: Select all
# uname -r
3.14-kali1-amd64
-
loukingjr
- Volunteer
- Posts: 8851
- Joined: 30. Apr 2009, 09:45
- Primary OS: Mac OS X other
- VBox Version: VirtualBox+Oracle ExtPack
- Guest OSses: just about all that run
Re: Kali-Linux headers updated to 3.18
FWIW, 3.14 headers and images aren't even listed as an option in Kali 1.1.0.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
There are three groups of people. Those that can count and those that can't.
-
piratestatic
- Posts: 16
- Joined: 11. Jan 2015, 21:13
Re: Kali-Linux headers updated to 3.18
my 3.18 headers have the build and source files in them but my 3.14 are lacking