From: Boris Derzhavets Subject: Re: pygrub: further improve grub2 support Date: Fri, 26 Mar 2010 09:52:11 -0700 (PDT) Message-ID: <282503.4525.qm@web56108.mail.re3.yahoo.com> References: <731963.55018.qm@web56101.mail.re3.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2139946058==" 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 --===============2139946058== Content-Type: multipart/alternative; boundary="0-1939850177-1269622331=:4525" --0-1939850177-1269622331=:4525 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I would guess HVM image is bkoken on for Ubuntu 10.04 Server Beta Attempt to load PV via profile :- memory =3D 2048 name =3D "Ubuntu10.04" kernel=3D"/home/boris/lynx/vmlinuz-2.6.32-16-server" ramdisk=3D"/home/boris/lynx/initrd.img-2.6.32-16-server" vcpus =3D 2 vif =3D [ 'bridge=3Deth0' ] disk =3D [ 'phy:/dev/sda8,xvda,w'] extra=3D"root=3D/dev/sda1 ro console=3Dhvc0" xm create -c Lynx.cfg [=A0=A0=A0 0.149124] XENBUS: Device with no driver: device/vbd/51712 [=A0=A0=A0 0.149129] XENBUS: Device with no driver: device/vif/0 [=A0=A0=A0 0.149135] XENBUS: Device with no driver: device/console/0 [=A0=A0=A0 0.149149]=A0=A0 Magic number: 1:252:3141 [=A0=A0=A0 0.149160] /build/buildd/linux-2.6.32/drivers/rtc/hctosys.c: unab= le to open rtc device (rtc0) [=A0=A0=A0 0.149167] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found [=A0=A0=A0 0.149172] EDD information not available. [=A0=A0=A0 0.149254] Freeing unused kernel memory: 800k freed [=A0=A0=A0 0.149491] Write protecting the kernel read-only data: 7936k Loading, please wait... [=A0=A0=A0 0.175675] udev: starting version 151 Begin: Loading essential drivers... ... Done. Begin: Running /scripts/init-premount ... Done. Begin: Mounting root file system... ... Begin: Running /scripts/local-top ... Done. [=A0=A0=A0 0.241186] blkfront: xvda: barriers enabled [=A0=A0=A0 0.241453]=A0 xvda: xvda1 xvda2 < xvda5 > Gave up waiting for root device.=A0 Common problems: =A0- Boot args (cat /proc/cmdline) =A0=A0 - Check rootdelay=3D (did the system wait long enough?) =A0=A0 - Check root=3D (did the system wait for the right device?) =A0=A0 - Missing modules (cat /proc/modules; ls /dev) ALERT! /dev/sda1 does not exist. Dropping to a shell! BusyBox v1.13.3 (Ubuntu 1:1.13.3-1ubuntu9) built-in shell (ash) Enter 'help' for a list of built-in commands. (initramfs)=20 /dev/sda1 does show up as root FS for HVM has been built. Boris. --- 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-1939850177-1269622331=:4525 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
I would guess HVM image is bkoken on for Ubun= tu 10.04 Server Beta
Attempt to load PV via profile :-

memory =3D= 2048
name =3D "Ubuntu10.04"
kernel=3D"/home/boris/lynx/vmlinuz-2.6.3= 2-16-server"
ramdisk=3D"/home/boris/lynx/initrd.img-2.6.32-16-server"vcpus =3D 2
vif =3D [ 'bridge=3Deth0' ]
disk =3D [ 'phy:/dev/sda8,xv= da,w']
extra=3D"root=3D/dev/sda1 ro console=3Dhvc0"

xm create -c = Lynx.cfg

[    0.149124] XENBUS: Device with no driver= : device/vbd/51712
[    0.149129] XENBUS: Device with no = driver: device/vif/0
[    0.149135] XENBUS: Device with n= o driver: device/console/0
[    0.149149]   Mag= ic number: 1:252:3141
[    0.149160] /build/buildd/linux-= 2.6.32/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ &n= bsp;  0.149167] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[    0.1= 49172] EDD information not available.
[    0.149254] Free= ing unused kernel memory: 800k freed
[    0.149491] Write= protecting the kernel read-only data: 7936k
Loading, please wait...
= [    0.175675] udev: starting version 151
Begin: Loading = essential drivers... ...
Done.
Begin: Running /scripts/init-premount = ...
Done.
Begin: Mounting root file system... ...
Begin: Running /= scripts/local-top ...
Done.
[    0.241186] blkfront: x= vda: barriers enabled
[    0.241453]  xvda: xvda1 xv= da2 < xvda5 >
Gave up waiting for root device.  Common proble= ms:
 - Boot args (cat /proc/cmdline)
   - Check rootde= lay=3D (did the system wait long enough?)
   - Check root=3D (= did the system wait for the right device?)
   - Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/sda1 does not exist. D= ropping to a shell!


BusyBox v1.13.3 (Ubuntu 1:1.13.3-1ubuntu9) b= uilt-in shell (ash)
Enter 'help' for a list of built-in commands.
(initramfs)


/dev/sda1 does show up as root FS for HVM has been= built.

Boris.

--- On Fri, 3/26/10, Boris Derzhavets &l= t;bderzhavets@yahoo.com> wrote:

= From: Boris Derzhavets <bderzhavets@yahoo.com>
Subject: Re: [Xen-d= evel] pygrub: further improve grub2 support
To: "Ian Campbell" <Ian.C= ampbell@citrix.com>
Cc: "xen-devel@lists.xensource.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 pro= file:-

memory =3D 2048
name =3D "UbuntuLynx"
bootloader=3D"/us= r/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
&= gt; 10.04 beta?

In meantime i don't know. I will take a look at devi= ce.map a bit latter.
But , it doesn't look to myself  as "beta"&nbs= p; issue

Boris.

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

F= rom: Ian Campbell <Ian.Campbell@citrix.com>
Subject: Re: [Xen-devel] pygrub: furthe= r=0A improve grub2 support
To: "Boris Derzhavets" <bderzhavets@yahoo.= com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensourc= e.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 :
>
> &nb= sp; 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 bo= otloader
configuration? That seems like an awfully big break with tradit= ion.

Do you know how grub2 tries to interpret this, perhaps using a<= br>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 kerne= l anyway. It
should be xvda. Looks like you need to do some additional t= ailoring to
convert your HVM Ubuntu domain into a PV=0A one.

Ian.=


=0A=0A =
-----Inline Attachment Follows-----

___= ____________________________________________
Xen-devel mailing list
<= a ymailto=3D"mailto:Xen-devel@lists.xensource.com" href=3D"/mc/compose?to= =3DXen-devel@lists.xensource.com">Xen-devel@lists.xensource.com
http://lists= .xensource.com/xen-devel

= =0A=0A --0-1939850177-1269622331=:4525-- --===============2139946058== 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 --===============2139946058==--