WHY & How do I fix this??????????

cowboy47

Joined
Jun 14, 2007
Messages
276
Likes
0
Points
0
#1
It seems that the main reason that yum update is screwing up everything is that I noticed that every server that I have, after I have done a yum update, the default image to load is XEN. Why did this happen, before, xen was the second option, not the first, so with an unattended reboot, my system boot up in xen, not the normal image. I do not recall how to fix this so if anyone can give me the steps, it would be appreciated.

C
 

elastixguy

Joined
Mar 1, 2008
Messages
36
Likes
0
Points
0
#2
I'm facing the same issue.

I can't install the Sangoma drivers because the xen image is being loaded by default
 

elastixguy

Joined
Mar 1, 2008
Messages
36
Likes
0
Points
0
#3
Re:WHY & How do I fix this??????????

Have just changed it in /boot/grub/grub.conf

Seems to be working again, but... Why is there so many images on the boot menu? Why can't delete the old ones?<br><br>Post edited by: elastixguy, at: 2008/07/08 21:47
 

cowboy47

Joined
Jun 14, 2007
Messages
276
Likes
0
Points
0
#4
ok, here is how I solved it. Now I am not sure if this will remain stable though.

I went into:

cd /boot/grub

in that directory is a file called grub.conf.

I changed the order. My grub.conf file looks like this now and is coming up in the normal mode of centos not xen.

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/sda2
# initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
title CentOS (2.6.18-53.1.19.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-53.1.19.el5 ro root=LABEL=/1
initrd /initrd-2.6.18-53.1.19.el5.img
title CentOS (2.6.18-53.1.19.el5xen)
root (hd0,0)
kernel /xen.gz-2.6.18-53.1.19.el5
module /vmlinuz-2.6.18-53.1.19.el5xen ro root=LABEL=/1
module /initrd-2.6.18-53.1.19.el5xen.img
title CentOS-base (2.6.18-8.el5)
root (hd0,0)
kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/1
initrd /initrd-2.6.18-8.el5.img
title CentOS (2.6.18-8.el5xen)
root (hd0,0)
kernel /xen.gz-2.6.18-8.el5
module /vmlinuz-2.6.18-8.el5xen ro root=LABEL=/1
module /initrd-2.6.18-8.el5xen.img


I used WinSCP to edit the file and saved it, then did a reboot. You can verify if it worked by typing uname -a at the prompt and if it was successful, you will see:

Linux mirror.sercompanama.com 2.6.18-53.1.19.el5 #1 SMP Wed May 7 08:20:19 EDT 2008 i686 athlon i386 GNU/Linux


note the 2.6.18-53.1.19.el5 does NOT have xen at the end.

Now we just need to ensure that the developers do not change this again.
 

cowboy47

Joined
Jun 14, 2007
Messages
276
Likes
0
Points
0
#5
I do not have a response on why so many images, except if the developers were scared of problems and wanted a fall back.

Remember there are two things that work in conjunction in grub.conf. The first is the setting of default=0 which means that it will go to the image that is 1st listed.

The 2nd is the order of the images. The 1st image, which starts with title CentOS is number 0.

C
 

jjidea

Joined
Jan 7, 2008
Messages
15
Likes
0
Points
0
#6
You can remove old kernels with
Code:
yum remove kernel-2.6.18-8.el5xen
or which you want
 

elastixguy

Joined
Mar 1, 2008
Messages
36
Likes
0
Points
0
#7
But should I?

I mean, is there a reason not to? I'm not very experienced with linux and would appreciate advices from others.
 

elastixguy

Joined
Mar 1, 2008
Messages
36
Likes
0
Points
0
#8
Re:WHY & How do I fix this??????????

[root@computador monitor]# yum remove kernel-2.6.18-53.1.19.el5xen
Loading "fastestmirror" plugin
Setting up Remove Process
Loading mirror speeds from cached hostfile
* adobe-linux-i386: linuxdownload.adobe.com
* base: centos.oi.com.br
* updates: centos.oi.com.br
* addons: centos.oi.com.br
* elastix: repo.elastix.org
* extras: centos.oi.com.br
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Excluding Packages from CentOS-5 - Addons
Finished
Excluding Packages from Elastix RPM Repository for CentOS
Finished
Excluding Packages from CentOS-5 - Extras
Finished
No Match for argument: kernel-2.6.18-53.1.19.el5xen
No Packages marked for removal
<br><br>Post edited by: elastixguy, at: 2008/07/09 07:59
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,887
Members
17,565
Latest member
omarmenichetti
Top