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 09:52:11 -0700 (PDT)
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 26 Mar 2010 11:04:02 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1269622331; bh=AwcH7OdklR1ciFHlBKOKY+KUOeb0YGUqeYlGlQ4xzNE=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=kMS8JpcgLz2Jm7LGfqrI1sBbBD7nDxI/+u4gYN7Kqb1UGE5GaqLWs8Y/iv1Jfd/zwnbZyBPftfRVHd5x7qGZ9oIsBG8LgGvAa6r1QimlCGMOjpQmaS5pp/14dLXu/F/rq2j6Sr687fAICd0v8ofozuAQr2jMBVPUtIudVFiMZSI=
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=w4jQzb02bwrNPvhVREvrwlG795SykaX3XNdQadgmUA6GicTGSuy5haALgOzSXl5CcMNYrZtz/2Ca5dpDvW7RF0PWW1Icau/W4WqbDwX0dtKGRUHaP7pLLBZnVpEOJjIyxNXjAzvtMu4lpQafpuFTbLZpduLy2GD3I1ztTau71QE=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <731963.55018.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
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 would guess HVM image is bkoken on for Ubuntu 10.04 Server Beta
Attempt to load PV via profile :-

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

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 no driver: device/console/0
[    0.149149]   Magic number: 1:252:3141
[    0.149160] /build/buildd/linux-2.6.32/drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    0.149167] BIOS EDD facility v0.16 2004-Jun-25, 0 devices found
[    0.149172] EDD information not available.
[    0.149254] Freeing 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: xvda: barriers enabled
[    0.241453]  xvda: xvda1 xvda2 < xvda5 >
Gave up waiting for root device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
   - Check root= (did the system wait for the right device?)
   - 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)


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

Boris.

--- On Fri, 3/26/10, Boris Derzhavets <bderzhavets@xxxxxxxxx> wrote:

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

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.



-----Inline Attachment Follows-----

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

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