Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
When compiling software I get the following notice :
Quote:
You do not appear to have the sources for the 2.6.31.5xls-domU kernel installed
.
Yum says :
Quote:
Package kernel-headers-2.6.18-164.11.1.el5.x86_64 already installed and latest version
Package kernel-devel-2.6.18-164.11.1.el5.x86_64 already installed and latest version
But uname says :
Code:
-bash-3.2# ls /usr/src/kernels/
2.6.18-164.11.1.el5-x86_64
-bash-3.2# uname -a
Linux vds.hosting.net 2.6.31.5xls-domU #4 SMP Fri Dec 4 12:17:04 CET 2009 x86_64 x86_64 x86_64 GNU/Linux
Install the sources from the same place you installed the binary kernel, same exact version, and I mean "exact".
Install a new kernel and a new source package using the CentOS official package manager and repositories. Probably the easiest and sanest solution unless you are using a custom kernel for a real reason.
Compile your own. That way you ensure that your sources and your kernel binary image are in sync.
You do not appear to have the sources for the 2.6.18-164.11.1.el5xen kernel installed.
make[1]: *** [modules] Error 1
-bash-3.2# uname -a
Linux vds.hosting.net 2.6.18-164.11.1.el5xen #1 SMP Wed Jan 20 08:06:04 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
-bash-3.2# ls /usr/src/kernels/
2.6.18-164.11.1.el5-x86_64
Isn't the kernel the same this time ???
Code:
Package kernel-devel-2.6.18-164.11.1.el5.x86_64 already installed and latest version
Package kernel-headers-2.6.18-164.11.1.el5.x86_64 already installed and latest version
Last edited by jonaskellens; 02-25-2010 at 09:27 AM.
You do not appear to have the sources for the 2.6.18-164.11.1.el5xen kernel installed.
make[1]: *** [modules] Error 1
-bash-3.2# uname -a
Linux vds.hosting.net 2.6.18-164.11.1.el5xen #1 SMP Wed Jan 20 08:06:04 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
-bash-3.2# ls /usr/src/kernels/
2.6.18-164.11.1.el5-x86_64
Isn't the kernel the same this time ???
Code:
Package kernel-devel-2.6.18-164.11.1.el5.x86_64 already installed and latest version
Package kernel-headers-2.6.18-164.11.1.el5.x86_64 already installed and latest version
This:
Quote:
2.6.18-164.11.1.el5xen
isn't the same as this:
Quote:
kernel-devel-2.6.18-164.11.1.el5
Notice the missing "xen" at the end??? And if this is a hosted server, tell the hosting company to install the missing source. You're paying them for support.
dunno if you know but a Xen domU does not need to have the kernel inside it's own realm. It only is needed for the dom0 to start it up..
I doubt in this case that you could easily create your own kernel and start it up.
Like TBone sad get the hosting company to provide you the source. Or check out your yum repository. (also i dunno how to query yum for available packages)
The 2.6.31.5xls-domU seems to be coming from a central server. It is setup that way that there is always a kernel to boot, even if I install my own and mess up.
Got my custom kernel now.
Got the right sources by doing "yum install kernel-xen-devel".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.