Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 04-29-2014, 05:16 AM   #16
Registered: Apr 2012
Distribution: Debian, Ubuntu, Slackware
Posts: 211

Rep: Reputation: 113Reputation: 113

The kernel-headers package is there primarily to ensure that /usr/include/linux/* exists, regardless of what current kernel is installed (be it from Slackware's, or from the local sysadmin.) It is not necessary in a running system (hence out of the A fileset,) but essential if you're building anything Linux specific (hence the package being in the D fileset.)

For OP's original problem, chances are that while you installed the kernel vmlinuz, you didn't install/update /lib/modules/3.10.17-smp , which would have the 'build' and 'source' symlinks to your custom kernel source; VMware is most likely using your `uname -r` to determine your source path, IIRC.
Old 05-01-2014, 07:16 PM   #17
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 14.1
Posts: 161

Original Poster
Rep: Reputation: 15
I got tired to try to find the Kernel-Headers suitable for VMware. I recompiled my kernel with -smp off, etc... 1 day lost in vain.
Now I tried VirtualBox (
1 hour full blown installation!
What a nice surprise!
Good bye VMwa...
For me it is the solution to "where are the Kernel Headers?"

Old 02-06-2015, 02:22 PM   #18
LQ Newbie
Registered: Feb 2015
Posts: 3

Rep: Reputation: Disabled

I have a very similar issue, not sure if I should open another thread. I
installed stock Slakware 4.1 (latest) on a VirtualBox 4.3.20 (latest) and its
corresponding Extension Pack running on Win 7. That worked flawless. I'm
trying to install the Guest Additions now. To this end, I mounted
VBoxGuestAdditions.iso onto /mnt/cdrom, and run sh ./
from within that directory.
This gave some errors that pointed me in the direction of installing DMKS,
which I did by downloading it from SlackBuilds and installing it. Now still complained about missing kernel headers. I then
installed kernel-headers-3.10.17-x86-3.txz with installpkg. Just for your
information, uname -a gives

Linux slack 3.10.17 #2 SMP Fri Feb 14 16:45:28 CST
2014 x86_64 Intel(R) Core(TM) i5-3340 CPU @ 2.70GHz GenuineItel GNU/Linux

Now, the log file that results from running says:

Error! echo
Your kernel headers for kernel 3.10.17 cannot be found at
/lib/modules/3.10.17/build or /lib/modules/3.10.17/source.
Failed to install using DKMS, attempting to install without
/tmp/vbox.0/Makefile.include.headers:97: *** Error: unable to find the sources of your current linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.

The interesting part is that both
/lib/modules/3.10.17/build and
are symlinks to /usr/src/linux-3.10.17, but the latter does not exist, even if the installation of kernel-headers.3.10.17-x86-3.txz finished with a success message.

So my question is, where are the installed kernel headers?
And why are they not showing up were expected?

Thanks in advance
Old 02-06-2015, 03:11 PM   #19
Senior Member
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,099
Blog Entries: 4

Rep: Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468Reputation: 1468
Hi linesque and welcome to LQ,

You need the kernel-source package.

Every Linux distribution actually has two sets of kernel headers. One set is for general use, and is matched to glibc, and on Slackware this set is provided by the kernel-headers package. The other set is the kernel's own private internal headers, they are a small part of the kernel source, and on Slackware this set is provided by the kernel-source package.

Despite the messages Virtualbox does not need DKMS (which is not very useful on Slackware). However, for technical reasons, Virtualbox needs the kernel's private headers.
Old 02-06-2015, 03:17 PM   #20
LQ Newbie
Registered: Feb 2015
Posts: 3

Rep: Reputation: Disabled
Thanks for the prompt answer. I'm aware of the two sets of kernel headers but I thought that kernel-source was actually the whole kernel source, not another set of headers. I'll try installing this and come back with the result.
Old 02-06-2015, 03:22 PM   #21
Senior Member
Registered: Nov 2003
Location: Newport News, VA
Distribution: Slackware
Posts: 4,223

Rep: Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181Reputation: 2181
Originally Posted by linesque View Post
I then installed kernel-headers-3.10.17-x86-3.txz with installpkg.
Did you not do a full Slackware install? I don't think I've ever run into issues with installing the guest additions with 14.1, and I am pretty sure I never had to install anything extra (including DMKS).

EDIT: Guess 55020 beat me to it.
Old 02-06-2015, 03:34 PM   #22
LQ Newbie
Registered: Feb 2015
Posts: 3

Rep: Reputation: Disabled
No, I didn't do a full install, since I'm sure I don't need all that stuff. In particular I deselected kernel source and headers during first installation.
Following the 5502's advice I installed kernel-source, which turned out to be (as one might expect!) the complete kernel source, not only the headers. But that did the trick. After the installation of the kernel source VBoxLinuxAdditions run without issues. I only wish I had not to download 73 MB of code when all I needed were some few KB of header files.
Anyway, thanks for your support!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[kernel-headers-3.2.45-x86-3] OR [kernel-headers-3.2.45_smp-x86-3]? Sefid par Slackware 3 07-24-2013 09:59 AM
[SOLVED] After upgrading to kernel 3.8 module-assistant can't find kernel headers (Debian Sid) odiseo77 Debian 9 05-16-2013 07:59 PM
Trying to install ethernet adapter driver, not finding kernel-devel or kernel-headers oneFishtwoFish Red Hat 5 08-31-2010 06:24 PM
Zypper wants to dl the wrong kernel headers... YaST doesnt have current headers zorb SUSE / openSUSE 2 11-28-2009 11:12 AM
Automatic removal of kernel headers package when kernel packages are removed bgoodr Debian 3 12-30-2008 08:14 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration