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

Re: [Xen-devel] pygrub: further improve grub2 support

To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Subject: Re: [Xen-devel] pygrub: further improve grub2 support
From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Date: Fri, 26 Mar 2010 03:57:56 -0700 (PDT)
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 26 Mar 2010 03:59:01 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1269601076; bh=Qy82mAB+sl4gbFZmi0fKk6hddt+LbC4RcW7jIq+g8pw=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=TsEf2KY9FqvvYAKIVP8B6lzMLWJBUbmwgvKTJx+QiiIjQUYocl51qcIAJRu2GLYv8yBcn6uE2xucygbAgZmBAs5QkHa6xL+4Q3g3R7XmToY+oYpPJ4wKgce4oNho4xR5we0p6x8D2JhjJy5PLArmYEHnIPdRuz8zEwObuBz7SRo=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=6lQII1DwuEm38jzUB8b8L0pITv2dRUuIe8LLYmbW7uOLAPmV+NQRVvgWEBxOKnEH8HQ0DbbKK3FsELbigOJ/gEjEYoeefYHNpR4ltv+noMjfBsMUQ8mSK1x19engXvq8kh4kHmakEHK3Oh1fjFpswRSCzD0L+bjN0ATNstK/Tac=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1269600558.10129.72165.camel@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
I've tried to PV domU with ready HVM domU via profile:-

memory = 2048
name = "UbuntuLynx"
bootloader="/usr/local/bin/pygrub"
vcpus = 2
vif = [ 'bridge=eth0' ]
disk = [ 'phy:/dev/sda8,xvda,w']
vfb= ['type=vnc,vncunused=1']

> Do you know how grub2 tries to interpret this, perhaps using a
> device.map type file in /boot/grub? Or perhaps it is simply a bug in
> 10.04 beta?

In meantime i don't know. I will take a look at device.map a bit latter.
But , it doesn't look to myself  as "beta"  issue

Boris.

--- On Fri, 3/26/10, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote:

From: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Subject: Re: [Xen-devel] pygrub: further improve grub2 support
To: "Boris Derzhavets" <bderzhavets@xxxxxxxxx>
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Date: Friday, March 26, 2010, 6:49 AM

On Fri, 2010-03-26 at 10:41 +0000, Boris Derzhavets wrote:
> In Ubuntu 10.04 beta grub entry root looks like :
>
>   set root='(/dev/sda,1)'  vs  set  root=(hd0,1) in 9.10

So grub in Ubuntu 10.04 uses _Linux_ device naming in the bootloader
configuration? That seems like an awfully big break with tradition.

Do you know how grub2 tries to interpret this, perhaps using a
device.map type file in /boot/grub? Or perhaps it is simply a bug in
10.04 beta?

sda isn't really a valid name for a modern PV domU kernel anyway. It
should be xvda. Looks like you need to do some additional tailoring to
convert your HVM Ubuntu domain into a PV one.

Ian.


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