WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] How to stop yum update on CentOS 5.1 to modify grub

To: Rudi Ahlers <Rudi@xxxxxxxxxxx>
Subject: Re: [Xen-users] How to stop yum update on CentOS 5.1 to modify grub
From: Stephan Seitz <s.seitz@xxxxxxxxxxxx>
Date: Mon, 07 Apr 2008 13:26:39 +0200
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 07 Apr 2008 03:53:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47F8DBFC.4040805@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Organization: netz-haut e.K.
References: <47F8DBFC.4040805@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.12 (X11/20080227)
Rudi Ahlers schrieb:
Hi all

I just got a shocker today on a CentOS 5.1 x64 Xen server where the xen VPS didn't work properly so I thought I'd reboot it, but upon reboot it gave me some memory errors, so I rebooted the server and couldn't start Xen at all. Then after poking around I thought I'd check to see if the Xen kernel is running, and it's not running. It seem yum updated has updated the kernel, and then updated grub to use the new CentOS kernel, which is what it's supposed todo. But how do I stop yum from doing it?

I wouldn't hack into packet managers. It's better to use menu.lst itself to
reflect the changes you want.

I don't know which version of grub centos uses, but on recent debian/ubuntu
systems, there are commented lines which are used for default values.

e.g.
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=vtd=1

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0 swiotlb=128 max_loop=64

and

## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=2c9954c1-d8f5-477a-a808-39f768b10ac3 ro

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

results in

title           Xen 3.2 / Ubuntu 7.10, kernel 2.6.18.8-xen
root            (hd0,0)
kernel          /xen-3.2.gz vtd=1
module          /vmlinuz-2.6.18.8-xen 
root=UUID=2c9954c1-d8f5-477a-a808-39f768b10ac3 ro console=tty0 swiotlb=128 
max_loop=64
module          /initrd.img-2.6.18.8-xen
quiet

after running update-grub.

Well, assuming you've appropriate xen, vmlinuz, initrd and System.map files in 
place ;)


HTH

Cheers,

Stephan

Attachment: s_seitz.vcf
Description: Vcard

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users