LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 08-04-2015, 01:59 PM   #1
tezarin
Member
 
Registered: Nov 2007
Posts: 133

Rep: Reputation: 0
Upgrade the kernel with no internet?


Hi,

I have a machine with an old kernel, this machine is not connected to the internet and I would like to upgrade the kernel so I can install docker on it later.

This is the output of uname -a:
Linux hostname.com 2.6.32-431.29.2.el6.x86_64 #1 SMP Sun Jul 27 15:55:46 EDT 2014 x86_64 x86_64 x86_64 GNU/Linux

I have another machine with Ubuntu 14.04 which I can use to download stuff and SCP to the first machine. Can you please let me know what is the best approach to upgrade the kernel?

Thanks in advance
 
Old 08-04-2015, 02:46 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
What kernel do you want to install? If you just want a more recent CentOS 6 kernel, you can download and install the rpm. If you want a 3.x kernel, you can build it from source. Be sure to copy the existing config file and run 'make oldconfig' so you start from RedHat's config settings. I've never had a problem running 3.10.14 on top of CentOS 6.
 
Old 08-04-2015, 02:51 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Docker needs at least a 3.1 kernel. Make sure you read and understand the notes.

http://elrepo.org/tiki/kernel-ml
 
Old 08-04-2015, 02:57 PM   #4
wagscat123
Member
 
Registered: Jan 2009
Location: Maryland-Pennsylvania border, USA
Distribution: openSUSE 15.2/15.3, Tumbleweed, Kubuntu 18.04/21.04, macOS 10.15, antiX 19, and Linux Mint 19.3
Posts: 860
Blog Entries: 45

Rep: Reputation: 120Reputation: 120
http://wiki.centos.org/HowTos/Custom_Kernel

Here' a guide on building your own kernel.

I know in openSUSE a few years back I've gotten away with installing RPMs of kernels from different versions of openSUSE or even from Fedora. While it was probably a bad Middle School idea, it didn't seem to result in anything going majorly wrong.

Note that a distro is built so all of the components, including the kernel, play nicely. If you change a major component such as the kernel, be understand that things may act weird or break. I'd keep a backup of your current kernel installed.

After typing this I saw the other responses that just came up - sorry answering an already better answered question.

Last edited by wagscat123; 08-04-2015 at 03:00 PM.
 
Old 08-04-2015, 03:06 PM   #5
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Quote:
Originally Posted by wagscat123 View Post
http://wiki.centos.org/HowTos/Custom_Kernel

After typing this I saw the other responses that just came up - sorry answering an already better answered question.
Taking the time to give a careful answer is not a fault.

Also good point that you can keep the old kernel when installing a new one so that you can always go back.
 
1 members found this post helpful.
Old 08-04-2015, 03:37 PM   #6
tezarin
Member
 
Registered: Nov 2007
Posts: 133

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by smallpond View Post
What kernel do you want to install? If you just want a more recent CentOS 6 kernel, you can download and install the rpm. If you want a 3.x kernel, you can build it from source. Be sure to copy the existing config file and run 'make oldconfig' so you start from RedHat's config settings. I've never had a problem running 3.10.14 on top of CentOS 6.
Thanks all. Since I need to install Docker on that machine the kernel should at least be 3.10. I've asked the sysadmin to put this machine on the internet so I can install something. Can you please tell me where/how to get the latest rpm and install it?
 
Old 08-04-2015, 09:04 PM   #7
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
There is a supported kernel-3.18.17-13.el6.x86_64 available in the Xen4CentOS repo. To set up for that repo, "yum install centos-release-xen" from the CentOS extras repo. You'll want to enable that repo and install just the kernel and related packages (kernel-firmware, kernel-doc, kernel-headers, kernel-devel), not the whole "xen" group. I've been using that 3.18 kernel for hardware reasons not related to virtualization, and have had no problems with it.
 
Old 08-05-2015, 10:04 AM   #8
tezarin
Member
 
Registered: Nov 2007
Posts: 133

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rknichols View Post
There is a supported kernel-3.18.17-13.el6.x86_64 available in the Xen4CentOS repo. To set up for that repo, "yum install centos-release-xen" from the CentOS extras repo. You'll want to enable that repo and install just the kernel and related packages (kernel-firmware, kernel-doc, kernel-headers, kernel-devel), not the whole "xen" group. I've been using that 3.18 kernel for hardware reasons not related to virtualization, and have had no problems with it.

Thanks much for your answer. I found out that I have RHEL6 and any kernels > 3.10 would only come with RHEL 7. Is that true? That means we can get Docker installed on RHEL6.

Thanks
 
Old 08-05-2015, 04:29 PM   #9
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,779

Rep: Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212Reputation: 2212
That 3.18 kernel was built for CentOS 6 because the virt-sig people needed it to support Xen 4.4. It's from the 3.x LTS branch at kernel.org and so continues to receive security updates and bug fixes. http://permalink.gmane.org/gmane.lin...alization/2959

I would expect it to install and run just fine on RHEL 6.

Last edited by rknichols; 08-05-2015 at 04:32 PM.
 
Old 08-05-2015, 07:44 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
but if you install a non redhat kernel on a rhel os
your paid for support contract becomes null and void


contact redhat
or migrate to CentOS
or
try using a Frankensteined mix of OS's
it is not a good idea to mix rhel and cent BASE rpm's
 
1 members found this post helpful.
Old 08-06-2015, 09:43 AM   #11
tezarin
Member
 
Registered: Nov 2007
Posts: 133

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by John VV View Post
but if you install a non redhat kernel on a rhel os
your paid for support contract becomes null and void


contact redhat
or migrate to CentOS
or
try using a Frankensteined mix of OS's
it is not a good idea to mix rhel and cent BASE rpm's
You're right, I would probably just go with something else like Ubuntu...Less trouble
 
  


Reply



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
Need to Upgrade Kernel -- No Internet Access reyoutiao Slackware 8 04-03-2012 07:45 AM
How to upgrade kernel in rhel6/centos6 with internet. manually download and upgrade. Gil@LQ Linux - Kernel 3 03-12-2012 05:07 PM
How to get the Internet working on a 2.6 kernel upgrade? CaptainKirk Linux - Networking 9 03-07-2006 10:47 PM
no internet connection after kernel upgrade from 2.4 to 2.6.5 cademeijere Linux - Networking 5 05-27-2004 03:56 PM
No network/internet after Kernel upgrade Thomas M. Slackware 3 02-09-2004 01:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 07:46 PM.

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