kernel sources needed

Suse 11.1

I went ahead and allowed Suse Updater to install the new kernel (2.6.29-6-default). Now I would like to recreate the Virtualbox modules, but am having trouble getting the sources. Can anyone help ?

Install the kernel-sources package.

For some reason Yast only offers Kernel-source 2.6.27.21. Not sure what I am doing wrong.

Looks like you got 2.6.29-6-default from a non-standard repo. You will then have to find the source repo corresponding to that. That’s the price for following the bleeding edge. The kernel from the standard repo is 2.6.27.

According to Yast it is

download.opensuse.org/update/11.1/

Still looking.

No, you would have got 2.6.29 from another repo, possibly an experimental one. The official kernel for 11.1 is still at 2.6.27. Do:

rpm -qi kernel-default

and you will see details of who built it, etc.

cabernet wrote:
> For some reason Yast only offers Kernel-source 2.6.27.21. Not sure what
> I am doing wrong.

If you cannot find those sources on a repo, get them from www.kernel.org.

Further info.

linux:/home/me # rpm -qi kernel-default
Name : kernel-default Relocations: (not relocatable)
Version : 2.6.29 Vendor: openSUSE
Release : 6.3 Build Date: Fri 03 Apr 2009 16:20:27 CST
Install Date: Fri 24 Apr 2009 08:36:59 CST Build Host: build20
Group : System/Kernel Source RPM: kernel-default-2.6.29-6.3.nosrc.rpm
Size : 59024048 License: GPL v2 only
Signature : RSA/8, Fri 03 Apr 2009 16:37:12 CST, Key ID b88b2fd43dbdc284
Packager : Submitting Bug Reports - openSUSE
URL : The Linux Kernel Archives
Summary : The Standard Kernel
Description :
The standard kernel for both uniprocessor and multiprocessor systems.

Source Timestamp: 2009-03-24 15:38:18 +0100
GIT Revision: 4bf28205c0f7e5acf2f5690f0515b74f3460a7db
GIT Branch: master
Distribution: openSUSE Factory
linux:/home/me #

As the info shows, you got it from Factory. So you would have to look in Factory for the corresponding kernel-sources package.

BTW, I’ve seen reports on the Virtualbox forums about problems building with 2.6.29. So unless you badly needed to use 2.6.29, I would recommend disabling the Factory repo and reverting to a 2.6.27 kernel from the OSS repo.

Thanks for the feedback.
I dropped back to kernel 2.6.27.21-0.1-default. All is well.

Re openSUSE Factory. Will I miss anything by disabling it ? Can it cause problems ?

It’s what caused your problem and should only really be used if you understand the answer to the question you are asking. Nicely sorted @KY

The “Factory” repo is stuff in testing mode. It is not necessarily unsafe, but it is also not as thoroughly tested as things that made it to the “ready” repos. Even things that go through testing have issues. The Factory is usually for people who are understanding they are using things in an unfinished state.