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] How to get pygrub to load grub2 guest on Squeeze Dom0.

To: Bud Bundy <budric@xxxxxxxxx>
Subject: Re: [Xen-users] How to get pygrub to load grub2 guest on Squeeze Dom0.
From: Kyle Lexmond <kyl191@xxxxxxxxxx>
Date: Tue, 15 Nov 2011 11:32:48 +0800
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Mon, 14 Nov 2011 19:34:49 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyl191.net; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=NNikFjjhTb8OEoNac+N8bid0ZmWCucXULYyAA3q224s=; b=QxJdUNw8injaBWhVfBTY4dpcRrIt8Ly8xXxJffvAheyQ7pTDkr4IG2Euv8DbI6CfaB Gi625k1uLbQNGdD5CGcR8bBSRBCyjMrwfPpfVKIqESAUsurZDWmuWGjiw3kAjLLYNsKb WPEO+6wqGOR/cX5GAuluAv4D/TwC1vDjVTYOA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CADH3QDiGxF0fzvANaWJY8Lp17bFnORgJW1scnOUyMK=qaXYizg@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: <CADH3QDiGxF0fzvANaWJY8Lp17bFnORgJW1scnOUyMK=qaXYizg@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I had a similar problem with my F16 PV install that came down to
having /boot formatted as btrfs - except pygrub doesn't support it, so
it can't read the initrd & kernel. I can't remember it btrfs was the
default filesystem for /boot though, and even if it is, you might have
changed it to ext3/4, so this might not help.

If this is your problem, how I fixed it:
I ended up creating a new LV, formatting it as ext4, block-attaching
both the btrfs and ext4 formatted LVs to my dom0, and copying the grub
files from the btrfs LV to the ext4 LV.

One point if you do this: The new LV has a different UUID though, so
F16 refused to boot because the disks are referenced by UUID in the
domU's /etc/fstab, so you'll need to change that.  I resorted to doing
it all through the emergency shell, taking advantage of screen's text
buffer to copy the output.

I documented what I did here -
http://kyl191.net/2011/10/stupid-trick-changing-the-uuid-in-etcfstab-from-an-emergency-shell-with-screen/
if you're inclined to follow it, but because it took a fair bit of
unnecessary configuration, I recommend running blkid in your dom0 and
replacing the UUID in your domU's /etc/fstab after attaching the
domU's root partition to your dom0, and editing with
$EDITOR_OF_CHOICE.

Hope that helped, and good luck.

On Tue, Nov 15, 2011 at 8:18 AM, Bud Bundy <budric@xxxxxxxxx> wrote:
> Hi,
> I'm trying to install a FC 16 PV guest.  After installation the guest
> doesn't load with: Error: Boot loader didn't return any data!
> xend.log:
> [2011-11-14 18:57:32 32321] ERROR (XendBootloader:214) Boot loader didn't
> return any data!
> [2011-11-14 18:57:32 32321] ERROR (XendDomainInfo:483) VM start failed
> Traceback (most recent call last):
>   File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomainInfo.py", line 469,
> in start
>     XendTask.log_progress(31, 60, self._initDomain)
>   File "/usr/lib/xen-4.0/lib/python/xen/xend/XendTask.py", line 209, in
> log_progress
>     retval = func(*args, **kwds)
>   File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomainInfo.py", line 2820,
> in _initDomain
>     self._configureBootloader()
>   File "/usr/lib/xen-4.0/lib/python/xen/xend/XendDomainInfo.py", line 3266,
> in _configureBootloader
>     bootloader_args, kernel, ramdisk, args)
>   File "/usr/lib/xen-4.0/lib/python/xen/xend/XendBootloader.py", line 215,
> in bootloader
>     raise VmError, msg
> The only thing I could find that was close is this:
> Reading the wiki this is a known
> issue: http://wiki.debian.org/Xen#Upgrading.2BAC8-transition
> With a bug report in
> debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=599243
> If I'm reading bug report correctly it's fixed in 4.0.1-2?
> When I do apt-cache show xen-hypervisor-4.0-amd64, the version I have is
> 4.0.1-4.
> Thanks
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
>

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