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.
I'm running a Xen VDS from a hosting company.
I'm trying to update the kernel, because the one that is running is rather "old" :
Code:
bash-3.2# uname -a
Linux vps.hosting.net 2.6.18-128.4.1.el5xen #1 SMP Tue Aug 4 20:51:12 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
I try to update the kernel with yum, but fail :
Code:
bash-3.2# yum update
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: centos.mirror.transip.nl
* base: centos.mirror.transip.nl
* extras: centos.mirror.transip.nl
* rpmforge: fr2.rpmfind.net
* updates: centos.mirror.transip.nl
Setting up Update Process
No Packages marked for Update
Code:
bash-3.2# yum update kernel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: centos.mirror.transip.nl
* base: centos.mirror.transip.nl
* extras: centos.mirror.transip.nl
* rpmforge: fr2.rpmfind.net
* updates: centos.mirror.transip.nl
Setting up Update Process
No Packages marked for Update
Code:
bash-3.2# yum search kernel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: centos.mirror.transip.nl
* base: centos.mirror.transip.nl
* extras: centos.mirror.transip.nl
* rpmforge: fr2.rpmfind.net
* updates: centos.mirror.transip.nl
<snip>
kernel.x86_64 : The Linux kernel (the core of the Linux operating system)
kernel-debug.x86_64 : The Linux kernel compiled with extra debugging enabled.
kernel-debug-devel.x86_64 : Development package for building kernel modules to match the kernel.
kernel-devel.x86_64 : Development package for building kernel modules to match the kernel.
kernel-doc.noarch : Various documentation bits found in the kernel source.
kernel-headers.x86_64 : Header files for the Linux kernel for use by glibc
kernel-xen.x86_64 : The Linux kernel compiled for Xen VM operations
kernel-xen-devel.x86_64 : Development package for building kernel modules to match the kernel.
kerneloops.x86_64 : Tool to automatically collect and submit kernel crash signatures
<snip>
So where to get a more up to date kernel ??
Last edited by jonaskellens; 06-26-2010 at 03:27 AM.
You won't get one through yum. RHEL5 only uses 2.6.18 by default. See this post and also bear in mind that RH update the kernel with patches, but you usually only get minor change in the version number.
Quote:
On the other hand in terms of the distribution's basic software – such as the Linux kernel or the glibc – Red Hat tends to avoid major jumps to new versions. The RHEL 5.5 kernel, like that of RHEL 5.0, is therefore based on the rather dusted-down kernel version 2.6.18. However, the Red Hat kernel does differ in many ways from the Linux kernel 2.6.18 available at kernel.org, because the Red Hat developers have already integrated a vast number of advancements from current versions of the Linux kernel. This includes many drivers for recent hardware, as the drivers included in Linux 2.6.18 are unsuitable or insufficient for many modern systems.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Quote:
bash-3.2# uname -a
Linux vps.hosting.net
This indicates a "special" from your provider. ?
Kernel updates might be blocked. ( For good reasons.)
Did you ask the provider ? ?
Kernel updates can be excluded in /etc/yum.conf :
exclude=kernel*
... which excludes all packages starting with : "kernel".
By the way, the latest is : kernel-xen-2.6.18-194.el5.x86_64
Lots of updates from 2.6.2x.x and 2.6.3x.x are included in these
2.6.18 el5 kernels, also in the version, you have installed.
Please read %changelog in the file kernel.spec
...
This indicates a "special" from your provider. ?
Kernel updates might be blocked. ( For good reasons.)
Did you ask the provider ? ?
???
That's the default hostname. It implies nothing about the kernel version. If it was a shared server it might be relevant, but on a vps anything should be possible within the hardware limits for the virtualisation software.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
@ smoker post # 4 : Sorry, I wasn't that alert.
There may be another reason for no updating to "build 194".
As you can see, the naming has changed ...
kernel-2.6.18-128.4.1.el5xen ( CentOS 5.4 name )
kernel-xen-2.6.18-194.el5 ( CentOS 5.5 name )
bash-3.2# yum install kernel-xen
<snip>
Package kernel-xen-2.6.18-194.3.1.el5.x86_64 already installed and latest version
Nothing to do
bash-3.2# uname -a
Linux vps2301.xlshosting.net 2.6.18-128.4.1.el5xen #1 SMP Tue Aug 4 20:51:12 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
I guess the ones with the same version numbers. You could put them all into the grub menu, making sure to match the versions for each then you can try booting the xen or non-xen and see which performs better. Of course, if it's a remote server, I would suggest changing the default to whichever kernel you want to boot.
The first in the list is 0, then 1, then 2 etc etc.
I have a sort of remote view of the VDS so I can see the grub splash menu to select a kernel to boot.
That's ok if you are there to choose it. If for whatever reason the box goes down, you want your chosen default to come back up. So specify it in the grub menu.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.