kernel source needed for vmware-config.pl is missing in Mandriva 2008
MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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...
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...
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...)
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.
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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.