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] Xen 3.4.1: pygrub Error: Boot loader didn't return any d

To: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Xen 3.4.1: pygrub Error: Boot loader didn't return any data!
From: Gerry Reno <greno@xxxxxxxxxxx>
Date: Thu, 31 Dec 2009 00:17:21 -0500
Delivery-date: Wed, 30 Dec 2009 21:18:04 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7207d96f0912302040h20f0c944u5a83c348545a83de@xxxxxxxxxxxxxx>
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>
References: <4B3C283E.6010509@xxxxxxxxxxx> <7207d96f0912302040h20f0c944u5a83c348545a83de@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.12 (X11/20070530)
Fajar A. Nugraha wrote:
On Thu, Dec 31, 2009 at 11:27 AM, Gerry Reno <greno@xxxxxxxxxxx> wrote:
I converted a kvm guest to a PV guest converting grub2 to grub and running
update-grub in the guest but it does not want to start.  I remembered to
adjust the indexing from hd0,5 in grub2 to hd0,4 in grub legacy but for some
reason pygrub cannot boot it.  I don't even get a grub prompt.  Can anyone
see anything wrong with this config?

bootloader = "/usr/bin/pygrub"
disk = [ "tap:aio:/var/lib/xen/images/CLOUD-CC-1.img,xvda5,w" ]

First of all, where on earth did you get your conversion instructions from?
This looks like it:
http://lists.centos.org/pipermail/centos-virt/2009-November/001306.html

If you install it as HVM, and use the same disk image for PV, then you
should've map it as disk. i.e

disk = [ "tap:aio:/var/lib/xen/images/CLOUD-CC-1.img,xvda,w" ]

instead of

disk = [ "tap:aio:/var/lib/xen/images/CLOUD-CC-1.img,xvda5,w" ]
Yep, tried that.  Same error.


second, AFAIK pygrub doesn't really care about boot sectors or MBR.
That means you could have whatever bootloader originally on the HVM
domU (grub2, extlinux, grub, etc.) and you don't have even have to
install grub or run update-grub to make pygrub works. What you DO
need:
- an active/bootable partition table.
Got that.

This is necessary only if you
map the disk image as disk on domU (i.e. xvda instead of xvda1).
pygrub will then read config from this partition.
- a /boot/grub/menu.lst on the active partition. This file must
contain the correct grub entries.

The original kvm guest had:
/dev/vda5  /boot
/dev/mapper/vg....   /

So I changed all references of /dev/vda5 to /dev/xvda5 in guest. I figured the lvm would take care of itself.

I also tried booting this with the host kernel/initrd but it gets just so far and then the kernel panics. Haven't figured out yet how to get to the /boot partition so I can make changes.

-Gerry


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