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

Re: [Xen-users] Xen 3.4.1: pygrub Error: Boot loader didn't return any data!



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


 


Rackspace

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