LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 08-16-2011, 12:25 PM   #1
sax
LQ Newbie
 
Registered: Aug 2011
Posts: 5

Rep: Reputation: Disabled
Multiple kernel in one RHEL 5 Linux


Hi

I am new to Linux, and have seen on few linux servers and workstations that they have more then just one kernel.
During boot, they state few kernels, and they boot just one (configured in grub.conf)

The question is, is there some HOW TO guide on how to set multiple kernels in single machine, but without using internet connection and RHN.

There workstations are off the internet (closed network), and I am interested into setting another kernel beside already existing.

Existing is 2.6.18-164.el5, and I want the same one, but PAE, since I want more then 4G on her (it's a VM, so adding memory is an easy task)

thank you
 
Old 08-16-2011, 12:51 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Well there is nothing interesting about this. Just install the appropriate RPM and it'll sort it out for you.
 
Old 08-17-2011, 03:08 AM   #3
sax
LQ Newbie
 
Registered: Aug 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
hmm, not so

I've taken rpm from rhel's ftp site and placed it in /tmp/kernel folder:

#ls -l /tmp/kernel
total 273212
-rw-r--r-- 1 root root 75420211 Aug 17 08:35 kernel-2.6.18-164.el5.src.rpm
-rw-r--r-- 1 root root 29979401 Aug 17 08:35 kernel-debuginfo-common-2.6.18-164.el5.i686.rpm
-rw-r--r-- 1 root root 174065358 Aug 17 08:36 kernel-PAE-debuginfo-2.6.18-164.el5.i686.rpm
drwxr-xr-x 2 root root 4096 Aug 17 08:39 repodata
#createrepo /tmp/kernel
#yum udate kernel
#reboot

and it shows :

#uname -r
2.6.18-164.el5

I've tried finding some vmlinuz files on file sistem, but all it dound was on /boot, and that is
vmlinuz-2.6.18-164.el5

So, I am doing someting wrong....

I've tried even
# rpm -ivh kernel-debuginfo-common-2.6.18-164.el5.i686.rpm
# rpm -ivh kernel-PAE-debuginfo-2.6.18-164.el5.i686.rpm
#reboot

but that did not do the trick either.

hmmm.....
 
Old 08-17-2011, 03:19 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you've shown any output of those yum commands so I've not a clue what they did, nor how your system is configured. Just installed the RPM directly with the rpm command and that will install it. you'll need to choose the right kernel on boot from the grub menu or change it in /boot/grub/grub.conf if it is not set as the default.
 
Old 08-17-2011, 06:45 AM   #5
sax
LQ Newbie
 
Registered: Aug 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
herre it is

reverted snapshot, and did it again

here is some output:

# ls -l /tmp/kernel/
total 199476
-rw-r--r-- 1 root root 29979401 Aug 17 12:24 kernel-debuginfo-common-2.6.18-164.el5.i686.rpm
-rw-r--r-- 1 root root 174065358 Aug 17 12:24 kernel-PAE-debuginfo-2.6.18-164.el5.i686.rpm

# createrepo /tmp/kernel
2/2 - kernel-debuginfo-common-2.6.18-164.el5.i686.rpm
Saving Primary metadata
Saving file lists metadata
Saving other metadata

# ls -l /tmp/kernel/
total 199480
-rw-r--r-- 1 root root 29979401 Aug 17 12:24 kernel-debuginfo-common-2.6.18-164.el5.i686.rpm
-rw-r--r-- 1 root root 174065358 Aug 17 12:24 kernel-PAE-debuginfo-2.6.18-164.el5.i686.rpm
drwxr-xr-x 2 root root 4096 Aug 17 12:25 repodata


with system-config-packages, created kernel repo

# cat kernel.repo
[kernel]
enabled = 1
name = kernel
baseurl = file:///tmp/kernel

# yum update kernel
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
kernel | 951 B 00:00
kernel/primary | 1.0 kB 00:00
kernel 2/2
Skipping security plugin, no data
Setting up Update Process
No Packages marked for Update

# yum install kernel
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Package kernel-2.6.18-164.el5.i686 already installed and latest version
Nothing to do

#rpm -ivh /tmp/kernel/kernel-debuginfo-common-2.6.18-164.el5.i686.rpm
warning: kernel-debuginfo-common-2.6.18-164.el5.i686.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:kernel-debuginfo-common########################################### [100%]

rpm -ivh kernel-PAE-debuginfo-2.6.18-164.el5.i686.rpm
warning: kernel-PAE-debuginfo-2.6.18-164.el5.i686.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:kernel-PAE-debuginfo ########################################### [100%]

Reboot, and nothing


Am I installing what I should, or am I doing the rong way?
 
Old 08-17-2011, 06:47 AM   #6
sax
LQ Newbie
 
Registered: Aug 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
Just to add, there is no vmlinuz other then the one started, and nothing new in grub.conf
 
Old 08-17-2011, 06:52 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
debuginfo is debug information, not a kernel. uninstall that and install the proper kernel rpm. There is no need to revert snapshots and the likes, this is pretty trivial stuff.

The PAE rpm is on the installation media. just get it off of the DVD.

Last edited by acid_kewpie; 08-17-2011 at 06:54 AM.
 
1 members found this post helpful.
Old 08-17-2011, 07:22 AM   #8
sax
LQ Newbie
 
Registered: Aug 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
that is it.

I did not know where to look

thank you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Multiple instances of Fetchmail on RHEL Kumud Kumar Singh Linux - Enterprise 9 08-16-2013 03:58 AM
64 bit linux kernel upgradation- RHEL-5 saraswat Linux - Enterprise 1 11-07-2009 02:02 AM
Sound Problem in Linux (RHEL 4, 2.6 kernel) ankurcse Linux - Newbie 3 04-22-2006 04:53 AM
Running multiple x servers in RHEL 4.0 exitsfunnel Linux - General 2 05-12-2005 12:56 PM


All times are GMT -5. The time now is 02:30 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration