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

To: Gerry Reno <greno@xxxxxxxxxxx>
Subject: Re: [Xen-users] Xen 3.4.1: pygrub Error: Boot loader didn't return any data!
From: "Fajar A. Nugraha" <fajar@xxxxxxxxx>
Date: Thu, 31 Dec 2009 12:32:43 +0700
Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 30 Dec 2009 21:33:26 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4B3C33E1.5000603@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/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> <4B3C33E1.5000603@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
On Thu, Dec 31, 2009 at 12:17 PM, Gerry Reno <greno@xxxxxxxxxxx> wrote:
>>> 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

The example there says to map the disk as xvda :)

> 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.

yes, you need to change it on the guest.

Let's try some things:
(1) Keep the disk mapped as xvda on domU config file.
(2) assign /var/lib/xen/images/CLOUD-CC-1.img to a loopback device,
and use kpartx on it (something like "LOOP=`losetup -f`;losetup $LOOP
/var/lib/xen/images/CLOUD-CC-1.img;kpartx -av $LOOP")
(3) run "fdisk -l $LOOP"
(4) mount the partition on domU (something like "mount
/dev/mapper/loop0p5 /mnt/tmp")
(5) ls -la /mnt/tmp /mnt/tmp/boot/grub/menu.lst (or whatever your
mount point is)
(6) paste the content of menu.lst (relevant parts only, no need to
paste commented entries)
(7) run "/usr/bin/pygrub -i /var/lib/xen/images/CLOUD-CC-1.img"

-- 
Fajar

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