LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 10-13-2007, 04:58 PM   #1
boudoirius
LQ Newbie
 
Registered: Jul 2004
Location: Athens, Greece
Distribution: Slackware 12, OpenSuse 10.2, Mandriva 2008, Debian
Posts: 8

Rep: Reputation: 0
kernel source needed for vmware-config.pl is missing in Mandriva 2008


I am having a problem while trying vmware to work in Mandriva One 2008.
The system I am working on is a laptop with a amd turion X2 processor and 512mb memory. I have downloaded and installed the 1.04 verion of Vmware server and everything went fine. The problems began when vmware's configuration script searches for the kernel source so as to build the modules necessary for Vmware to work. I use the defaukt kernel of Mandriva 2008 which is 2.6.22.9-desktop586-1mdv. I installed the source package 2.6.22.9-1mdvcustom. The message I receive is :
"The directory of kernel headers (version 2.6.22.9-1mdvcustom) does not match
your running kernel (version 2.6.22.9-desktop586-1mdv). Even if the module
were to compile successfully, it would not load into the running kernel."

The problem is I can't seem to find any closer match for a kernel source package for my running kernel in the list I get from rpmdrake. Is it possible that there isn't a source package at all?

Thanks in advance
 
Old 10-13-2007, 06:16 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Install this package: kernel-desktop586-devel-latest. That will not only install the matching kernel-source for you current kernel, it will also ensure that you always have the latest kernel-source, even if you add a newer kernel.
 
Old 10-14-2007, 04:01 AM   #3
pilatus666
Member
 
Registered: Mar 2006
Location: cyprus
Distribution: Mandriva 2009.0;
Posts: 263

Rep: Reputation: 30
Quote:
Originally Posted by {BBI}Nexus{BBI} View Post
Install this package: kernel-desktop586-devel-latest. That will not only install the matching kernel-source for you current kernel, it will also ensure that you always have the latest kernel-source, even if you add a newer kernel.
I tryed that with the nvidia driver but did'nt work...
 
Old 10-14-2007, 02:59 PM   #4
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
Originally Posted by pilatus666 View Post
I tryed that with the nvidia driver but did'nt work...
Have you used your package manager to confirm if the kernel-desktop586-devel-2.6.22.9-1mdv package is installed?
 
Old 10-14-2007, 04:31 PM   #5
pilatus666
Member
 
Registered: Mar 2006
Location: cyprus
Distribution: Mandriva 2009.0;
Posts: 263

Rep: Reputation: 30
Quote:
Originally Posted by {BBI}Nexus{BBI} View Post
Have you used your package manager to confirm if the kernel-desktop586-devel-2.6.22.9-1mdv package is installed?
Yes I double checked it, because the first time I tought that I indtalled the wrong ones... the driver did compile with the full kerel source but could not load... but with the desktop source it didn't even compile...
 
Old 10-15-2007, 04:32 AM   #6
boudoirius
LQ Newbie
 
Registered: Jul 2004
Location: Athens, Greece
Distribution: Slackware 12, OpenSuse 10.2, Mandriva 2008, Debian
Posts: 8

Original Poster
Rep: Reputation: 0
Source missing even if kernel-desktop586-devel-latest is installed

This package : kernel-desktop586-devel-latest is installed as I checked it with rpmdrake. Kernel source isn't there at all (o rat least the correct version...)

Thanks again
 
Old 10-15-2007, 09:21 AM   #7
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 6, KDE Neon
Posts: 4,313

Rep: Reputation: 212Reputation: 212Reputation: 212
Quote:
Originally Posted by boudoirius View Post
This package : kernel-desktop586-devel-latest is installed as I checked it with rpmdrake. Kernel source isn't there at all (o rat least the correct version...)

Thanks again
This package should also be there: kernel-desktop586-devel-2.6.22.9-1mdv which is the kernel source for your current kernel. I suspect the vmware script is not aware of the name change. You can download the alternative kernel-source you seek from here: http://rpmfind.net/linux/RPM/Development_Kernel.html. It's named kernel-source-2.6.22.9-1mdv-1-1mdv2008.0, it's located roughly 3/4 of the way down the page.

Read this:
Quote:
Kernel changes

The kernel package has now adopted the kernel-tmb spec file, which means that the kernel packages have been renamed. The old kernel is now kernel-desktop. The old kernel-enterprise is now kernel-server. The old kernel-legacy is now kernel-desktop586. A kernel-laptop package is now introduced, which contains several customizations useful to laptops in terms of reducing power usage.

This also means that the official kernel packages now adopt the kernel-tmb style for source and headers. Each kernel package now has its own -devel package - e.g. kernel-desktop586-devel - which contains the source and headers necessary for building external kernel modules. This is the package you should install if you need to compile external kernel modules. The single kernel-source package is of interest only to those who need to build an application against a complete copy of the kernel source, or those interested in building their own kernels.
Source: http://wiki.mandriva.com/en/Releases...evelopment/RC1

Last edited by {BBI}Nexus{BBI}; 10-15-2007 at 09:50 AM. Reason: Additional info added
 
Old 10-15-2007, 06:17 PM   #8
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
You shouldn't need to install the kernel source - just the headers are enough. As for the nvidia driver, you don't really need to compile those yourself. You can just install it from the repositories. Select, Apply, restart X, done.

Of course, the problem may be the VMware package rather than the kernel source/headers. VM does have trouble keeping abreast of kernel development at times. Tried 2.0 on Fedora 7 and it didn't work. 2.0.1 works fine, though.

Last edited by jay73; 10-15-2007 at 06:19 PM.
 
Old 10-18-2007, 03:11 PM   #9
boudoirius
LQ Newbie
 
Registered: Jul 2004
Location: Athens, Greece
Distribution: Slackware 12, OpenSuse 10.2, Mandriva 2008, Debian
Posts: 8

Original Poster
Rep: Reputation: 0
kernel source

Quote:
Originally Posted by {BBI}Nexus{BBI} View Post
This package should also be there: kernel-desktop586-devel-2.6.22.9-1mdv which is the kernel source for your current kernel. I suspect the vmware script is not aware of the name change. You can download the alternative kernel-source you seek from here: http://rpmfind.net/linux/RPM/Development_Kernel.html. It's named kernel-source-2.6.22.9-1mdv-1-1mdv2008.0, it's located roughly 3/4 of the way down the page.

Read this:

Source: http://wiki.mandriva.com/en/Releases...evelopment/RC1
You were right, after installing this package you suggested I was able to compile the kernel modules. Vmware is up and running.

Thank you all very much for your help!
 
Old 04-21-2008, 05:30 PM   #10
Cat-in-hat
LQ Newbie
 
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by boudoirius View Post
You were right, after installing this package you suggested I was able to compile the kernel modules. Vmware is up and running.

Thank you all very much for your help!
I also ran into the same problem, I installed this package, but still get the same error message as above. How do I compile the kernel modules though...sorry kinda newbie...

Last edited by Cat-in-hat; 04-21-2008 at 05:32 PM.
 
Old 04-21-2008, 09:55 PM   #11
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Quote:
Originally Posted by Cat-in-hat View Post
I also ran into the same problem, I installed this package, but still get the same error message as above. How do I compile the kernel modules though...sorry kinda newbie...

Hi, this is what I do in this situation. (where the kernel and kernel-source are the same version, ONLY!)

type uname -a to get the version number you are using.

I go to /usr/src/linux and open the makefile as root.

in the top of the file you see the version lines, the last line is usually a joke of some sort, you can put any name here.

Here is my standard top part....

VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 22
EXTRAVERSION = .9-1mdvcustom #this line does not match
NAME = Holy Dancing Manatees, Batman!

Here is my modified top part....

VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 22
EXTRAVERSION = .9-desktop-1mdv #this is the line to edit
NAME = GlennsPref

Now your source will become the same version you have running,

to build your kernel, just backup your .config file from /boot then,

at the same address as above call make to process the modified makefile on your source.

make all
make modules
make modules_install
make install
and reboot

or on one line,

make all && make modules && make modules_install && make install && shutdown -r now

Last edited by GlennsPref; 04-21-2008 at 10:08 PM. Reason: relativity and finality
 
Old 04-21-2008, 10:11 PM   #12
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
I found this method to be useful with installing graphics drivers (ati, nVidia) and VirtualBox, in particular.

regards, Glenn

ps. I should add, this method is only useful if you are happy with the modules installed by the kernel at boot.

Because this method bypasses the config stage it compiles a standard kernel, or a copy of the kernel you are running.

to be sure, you could add, before make all, make oldconfig. That will use your .config file from /boot.

Hope this helps, Glenn

Last edited by GlennsPref; 04-21-2008 at 10:19 PM.
 
  


Reply

Tags
vmware



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
Mandriva Linux 2008 now available AdamWill Mandriva 6 10-26-2007 06:28 AM
I am using mandriva 2008 fireblade_spark Linux - Newbie 4 10-14-2007 02:17 PM
LXer: The Perfect Server - Mandriva 2008 Free (Mandriva 2008.0) LXer Syndicated Linux News 0 10-11-2007 09:41 PM
Mandriva 2008 release date? Richie55 Mandriva 21 10-10-2007 03:52 PM
LXer: First Look at Mandriva 2008 Beta 2 LXer Syndicated Linux News 0 09-03-2007 11:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 03:06 AM.

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