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

[Xen-users] PV-GRUB chainloading Grub2

To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] PV-GRUB chainloading Grub2
From: Thomas Pöhler <tp@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 12 Jul 2011 19:25:11 +0200
Delivery-date: Tue, 12 Jul 2011 10:26:44 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcxAuKdTmQvOObTHR3CRx1ZGlaAa3Q==
Thread-topic: PV-GRUB chainloading Grub2

Hey guys,

 

what I am trying to do is a chainload into grub2 installation in a DomU.  So far I determined, PV-GRUB does not understand grub2’s grub.cfg notation. So I created a dummy menu.lst which has the needed root kernel and initrd rows and then referenced this to the DomUs config. The main intention to do this, is to be able to use kernel upgrades without touching the menu.lst for compatibility reasons.

 

The Point is, it just wont do L

 

Basically what I am doing is:

Xm create –c /etc/xen/test.cfg

Then dropping to grubdom

Grubdom > root  (hd0)

  Filesystem type is ext2fs, partition type 0x83

Grubdom > chainloader +1

Grubdom > boot

 Error 8: Kernel must be loaded before booting

 

I don’t get the point here. I don’t want to specify a kernel, I just want to chainload into grub2 and let him do the bootup. I also tried installating grub2 in the partition itself and then referencing to (hd0,0).

 

My childs config contains:

kernel = '/usr/lib/xen-default/boot/pv-grub-x86_64.gz'

extra = '(hd0,0)/boot/grub/menu.lst'

disk = [ 'iscsi:iqn.2001-05.com.equallogic:0-9182312-disk,xvda,w' ]

 

 

If I just use the correct menu.lst everything works fine, but then im skipping chainloading into grub2 and I need to maintain the menu.lst everytime a kernel update is released.

 

Anyone has experience with chainloading using pv-grub?

Appreciate any hint.

 

Thanks

Thomas

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>