LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Kernel Upgrade on Centos 5.6 (https://www.linuxquestions.org/questions/linux-general-1/kernel-upgrade-on-centos-5-6-a-4175446216/)

domz 01-18-2013 01:41 PM

Kernel Upgrade on Centos 5.6
 
I need to upgrade kernel

uname -r
2.6.18-238.19.1.el5.028stab092.2

to something 2.6.24 or later.

My question is, do I need to upgrade to centos 6+ or can I do something such as this tutorial: http://blog.csdn.net/appletreesujie/...etails/6718691

adambot 01-18-2013 01:50 PM

you should just be able to do as root a
Code:

yum update
and that will update everything. if you just want the kernel, they you can do
Code:

yum update kernel

domz 01-18-2013 02:00 PM

Quote:

Originally Posted by adambot (Post 4873081)
you should just be able to do as root a
Code:

yum update
and that will update everything. if you just want the kernel, they you can do
Code:

yum update kernel

It doesn't upgrade to kernel 2.6.24 or later. It still at 2.6.18.

unSpawn 01-18-2013 02:15 PM

What's bad is that you're running an OpenVZ kernel from 2011 and the one you want to upgrade to isn't a support or maintained version either. If you can use Yum to upgrade your kernel, great, else see the "For the latest RHEL5 kernel" link at http://wiki.openvz.org/Download/kernel/rhel5. That web log post "instructs" you to compile and install a vanilla kernel. You do not want that. When you use RHEL or CentOS then consult the RHEL or CentOS documentation! Also you're running CentOS 5.6 so you're two major upgrades behind schedule. Please upgrade RSN.

domz 01-18-2013 06:28 PM

Quote:

Originally Posted by unSpawn (Post 4873097)
What's bad is that you're running an OpenVZ kernel from 2011 and the one you want to upgrade to isn't a support or maintained version either. If you can use Yum to upgrade your kernel, great, else see the "For the latest RHEL5 kernel" link at http://wiki.openvz.org/Download/kernel/rhel5. That web log post "instructs" you to compile and install a vanilla kernel. You do not want that. When you use RHEL or CentOS then consult the RHEL or CentOS documentation! Also you're running CentOS 5.6 so you're two major upgrades behind schedule. Please upgrade RSN.

Thanks, I upgraded to centos 5.9 which installed ovzkernel-2.6.18-308.8.2.el5.028stab101.1.x86_64.
But any way possible I can install 2.6.24 or later?

unSpawn 01-18-2013 06:58 PM

As I posted above: ...else see the "For the latest RHEL5 kernel" link at http://wiki.openvz.org/Download/kernel/rhel5?

domz 01-18-2013 11:11 PM

Quote:

Originally Posted by unSpawn (Post 4873229)
As I posted above: ...else see the "For the latest RHEL5 kernel" link at http://wiki.openvz.org/Download/kernel/rhel5?

Sorry for my ignorance, but I am total noob when it comes to kernels. I have never installed one before, I know this one says out of date, but can I install it and it will work on centos 5.9?
http://wiki.openvz.org/Download/kern...2-feoktistov.1

John VV 01-19-2013 12:56 AM

The CentOS team ( and red hat devs) backport all the security patches from the latest 2.6 kernel to the one used in CentOS 5

but you are not using a CentOS kernel .
You are using one built by OpenVZ

so to update that one , you need to build it ( and that is not really an easy task )
At least for the first few times you build a kernel

or do not use the OpenVZ kernel ( but that might not be an option )

I would start with studying the OpenVZ wiki
http://wiki.openvz.org/Main_Page

and really learn the container os that it is
and study up on building a kernel and all that needs to go into it
take a week or so and study up first

non main stream OS's are -- shall we say " fun "

unSpawn 01-19-2013 07:05 AM

Quote:

Originally Posted by John VV (Post 4873320)
but you are not using a CentOS kernel . You are using one built by OpenVZ
so to update that one , you need to build it

Why? Didn't you see http://wiki.openvz.org/Download/kernel/rhel5 ?

unSpawn 01-19-2013 07:19 AM

Quote:

Originally Posted by domz (Post 4873299)
I know this one says out of date, but can I install it and it will work on centos 5.9?
http://wiki.openvz.org/Download/kernel/2.6.32/2.6.32-feoktistov.1

CentOS 5.9 was released quite recently so the OpenVZ people may not have had the time to build a kernel for it already. I would have upgraded from CentOS 5.6 to CentOS 5.8 also because it's been around for a while. Ask them what's the most recent OpenVZ kernel version they will support for CentOS 5.8?

John VV 01-19-2013 08:17 AM

re
 
i did , the op wants something newer than "2.6.18-308.8.2"

unSpawn 01-19-2013 08:33 AM

Hmm, OK. Then you may not have realized the link he posted was for a 2.6.32 kernel...


All times are GMT -5. The time now is 04:26 AM.