From: Boris Derzhavets Subject: Re: pygrub: further improve grub2 support Date: Fri, 26 Mar 2010 05:06:30 -0700 (PDT) Message-ID: <635018.33335.qm@web56103.mail.re3.yahoo.com> References: <731963.55018.qm@web56101.mail.re3.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0470345340==" Return-path: In-Reply-To: <731963.55018.qm@web56101.mail.re3.yahoo.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ian Campbell Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============0470345340== Content-Type: multipart/alternative; boundary="0-213033089-1269605190=:33335" --0-213033089-1269605190=:33335 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable That's all i was able to get for now :- root@Ubuntu10:/boot/grub# ls -l d* -rw-r--r-- 1 root root 1916 2010-03-26 00:18 datehook.mod -rw-r--r-- 1 root root 2404 2010-03-26 00:18 date.mod -rw-r--r-- 1 root root 1333 2010-03-26 00:18 datetime.mod -rw-r--r-- 1 root root=A0 512 2010-03-26 00:18 diskboot.img -rw-r--r-- 1 root root 1952 2010-03-26 00:18 dm_nv.mod -rw-r--r-- 1 root root 5616 2010-03-26 00:18 drivemap.mod root@Ubuntu10:/boot/grub# file drivemap.mod drivemap.mod: ELF 32-bit LSB relocatable, Intel 80386, version 1 (SYSV), no= t stripped Boris. P.S. I was installing Ubuntu Desktop on 10.04 HVM to get common exchange=20 buffer. --- On Fri, 3/26/10, Boris Derzhavets wrote: From: Boris Derzhavets Subject: Re: [Xen-devel] pygrub: further improve grub2 support To: "Ian Campbell" Cc: "xen-devel@lists.xensource.com" Date: Friday, March 26, 2010, 6:57 AM I've tried to PV domU with ready HVM domU via profile:- memory =3D 2048 name =3D "UbuntuLynx" bootloader=3D"/usr/local/bin/pygrub" vcpus =3D 2 vif =3D [ 'bridge=3Deth0' ] disk =3D [ 'phy:/dev/sda8,xvda,w'] vfb=3D ['type=3Dvnc,vncunused=3D1'] > 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=A0 as "beta"=A0 issue Boris. --- On Fri, 3/26/10, Ian Campbell wrote: From: Ian Campbell Subject: Re: [Xen-devel] pygrub: further=0A improve grub2 support To: "Boris Derzhavets" Cc: "xen-devel@lists.xensource.com" 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 : >=20 >=A0=A0=A0set root=3D'(/dev/sda,1)'=A0 vs=A0 set=A0 root=3D(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=0A one. Ian. =0A=0A =20 -----Inline Attachment Follows----- _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-213033089-1269605190=:33335 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
That's all i was able to get for now :-
root@Ubuntu10:/boot/grub# ls -l d*

-rw-r--r-- 1 root root 1916 201= 0-03-26 00:18 datehook.mod
-rw-r--r-- 1 root root 2404 2010-03-26 00:18 = date.mod
-rw-r--r-- 1 root root 1333 2010-03-26 00:18 datetime.mod
-r= w-r--r-- 1 root root  512 2010-03-26 00:18 diskboot.img
-rw-r--r-- = 1 root root 1952 2010-03-26 00:18 dm_nv.mod
-rw-r--r-- 1 root root 5616 = 2010-03-26 00:18 drivemap.mod

root@Ubuntu10:/boot/grub# file drivema= p.mod
drivemap.mod: ELF 32-bit LSB relocatable, Intel 80386, version 1 (= SYSV), not stripped

Boris.
P.S. I was installing Ubuntu Desktop o= n 10.04 HVM to get common exchange
buffer.

--- On Fri, 3/26/1= 0, Boris Derzhavets <bderzhavets@yahoo.com> wrote:

From: Boris Derzhavets <bderzhavets@yahoo.com&g= t;
Subject: Re: [Xen-devel] pygrub: further improve grub2 support
To:= "Ian Campbell" <Ian.Campbell@citrix.com>
Cc: "xen-devel@lists.xen= source.com" <xen-devel@lists.xensource.com>
Date: Friday, March 26= , 2010, 6:57 AM

I've tried to PV domU with ready HVM domU via profile:-

mem= ory =3D 2048
name =3D "UbuntuLynx"
bootloader=3D"/usr/local/bin/pygru= b"
vcpus =3D 2
vif =3D [ 'bridge=3Deth0' ]
disk =3D [ 'phy:/dev/sd= a8,xvda,w']
vfb=3D ['type=3Dvnc,vncunused=3D1']

> 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 latte= r.
But , it doesn't look to myself  as "beta"  issue

Boris.

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

From: Ian Campbell <Ian.Campbell@citri= x.com>
Subject: Re: [Xen-devel] pygrub: further=0A improve grub2 supp= ort
To: "Boris Derzhavets" <bderzhavets@yahoo.com>
Cc: "xen-dev= el@lists.xensource.com" <xen-devel@lists.xensource.com>
Date: Frid= ay, March 26, 2010, 6:49 AM

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

So grub = in Ubuntu 10.04 uses _Linux_ device naming in the bootloader
configurati= on? 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=0A one.

Ian.


=0A=0A

-----Inline Attachm= ent Follows-----

__________________________= _____________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel<= /a>

=0A=0A --0-213033089-1269605190=:33335-- --===============0470345340== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0470345340==--