Where can I find linux-kernel-headers-x.x.x.x for SUSE?

5

I'm installing VMware Workstation on a SLED 11 SP1, and the installation is blocked by an error message "Kernel headers for version 2.6.32.27-0.2-default were not found". If you installed them in a non-default path you can specify the path below. Otherwise refer to your distribution's documentation for installation instructions and click Refresh to search again in default locations.

The output of rpm -qa | grep kernel is

kernel-default-2.6.32.27-0.2.2
kernel-default-base-2.6.32.27-0.2.2
linux-kernel-headers-2.6.32-1.4.13
kernel-default-extra-2.6.32.27-0.2.2
nfs-kernel-server-1.2.1-2.10.1

I had met this issue in Ubuntu and I installed the required linux header via apt-get then the issue disappeared. But in SLED, I didn't find the rpm package in SUSE's software repository, and I also google "linux-kernel-headers-2.6.32.27" but did not match any documents.

Any suggestion will be highly appreciated. Thanks.

The output result of zypper se kernel | grep kernel is

i | linux-kernel-headers | Linux Kernel Headers                                            | package   
  | linux-kernel-headers | Linux Kernel Headers                                            | srcpackage

Landy

Posted 2011-02-14T05:40:00.087

Reputation: 773

Good question! Still without straightforward answer – Maciej Haj – 2020-01-20T06:43:48.107

Answers

6

The kernel-header error is misleading - you have to install kernel-source. (After you do that, you might have to update the kernel itself, so check that afterwards.)

Karla B

Posted 2011-02-14T05:40:00.087

Reputation: 61

Actually isn't it kernel-devel? – Simon Sheehan – 2012-02-21T22:12:40.767

Well, where I saw the issue discussed, it said to install kernel-source, and that worked. one of the places: one vmtools discussion I can't speak to kernel-devel. Color me clueless.

– Karla B – 2012-02-23T18:01:34.037

3

You can use:

yast2 -i kernel-source

Celudor

Posted 2011-02-14T05:40:00.087

Reputation: 31

OP just wants the headers, presumably (I'm not familiar with SUSE) the command is yast2 -i kernel-headers-x.x.x.x (including the version is critical, otherwise they just get the latest). – vonbrand – 2014-03-04T13:03:27.893

0

For me, after install "kernel-source", restart vmware, then vmware will auto detect the headers location.

BaiJiFeiLong

Posted 2011-02-14T05:40:00.087

Reputation: 101

0

Can you provide output result from zypper se kernel | grep header

Problem here is that your SUSE installed kernel headers is linux-kernel-headers-2.6.32-1.4.13 which doesn't match your current kernel 2.6.32.27

First, uninstalling package linux-kernel-headers-2.6.32-1.4.13 #rpm -e linux-kernel-headers-2.6.32-1.4.13

Update repositories with #zypper ref

Check for kernel headers package Version, #zypper if linux-kernel-headers | grep Version

if it match 2.6.32.27, so just go ahead.

Hope this help,

Hieu

Posted 2011-02-14T05:40:00.087

Reputation: 593

sudo zypper if linux-kernel-headers | grep Version Version: 2.6.32-1.4.13 it doesn't match 2.6.32.27, it looks like I should downgrade the 2.6.32.27 kernel to 2.6.32-1.4, right? – Landy – 2011-02-14T06:59:28.240

I tried to use "zypper udpate linux-kernel-headers" to update the headers, but got "No update candidate for 'linux-kernel-headers'." – Landy – 2011-02-14T07:05:30.960

0

This worked for me:

cd /lib/modules/`uname -r`/build/include
ln -s   generated/uapi/linux/ .

Apparently version.h is not quite where VMWare expects it. VMWare finds it via the softlink.

MukilteoGuy

Posted 2011-02-14T05:40:00.087

Reputation: 1

0

With Opensuse 12.3, I had to run it has a root user.

I right click on the start button ( like if it were the Windows Start Menu ) then clicked "Edit Applications and under Systems > More Programs Selected VMware Workstation then went to "Advance"tab and checked the box run as a different user and wrote root.

Then do this on a terminal [CODE] cd /lib/modules/uname -r/build/include ln -s generated/uapi/linux/ [/CODE]

user159922

Posted 2011-02-14T05:40:00.087

Reputation: 1