[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] PV-GRUB chainloading Grub2


  • To: <xen-users@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • 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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.