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] Strange interaction from grub2 and XEN

To: xen-users@xxxxxxxxxxxxxxxxxxx, Marco Nenciarini <mnencia@xxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Strange interaction from grub2 and XEN
From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Date: Sun, 22 Nov 2009 02:48:09 -0800 (PST)
Cc:
Delivery-date: Sun, 22 Nov 2009 02:49:03 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1258886889; bh=Tqb4xchGf79eHzFy0TzibzhroBb4Q4Ut6uQ+nVQxkGg=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=ru/x5SLZbM22NNtdow9KJv5A3CO3NjBrycM/LUouZbojm9/9YxCqODdA+N99Nf0M1u/o8QaJNSwqj4MbvIZH0I4FVWwbRuUcfW1o2Ns7C/6gkYZ8nDf5FOmlQIPiv9xq6XEhi1WGSpVny3d0LxrutZ8ofpAxScqXhon0xHDUK7w=
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:In-Reply-To:MIME-Version:Content-Type; b=gc5Y+soHE6q9swPI/tCR0StcybP7ywTUSPme4VtjCGJXrk4YjRwYsI+u0mt9+Tp+pZLIeuGfui3oGC7kDDLFjuiykXE4fOyyU794Aox1BGg3Pu41Gsg7Yip0pc0ARam/+BDbbqUMdcvKdKW3s7EvOYptXgb5fFUGYMgZ1Eg+q4w=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4B09122B.8090202@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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
I switched etc/default/grub :
   GRUB_DISABLE_LINUX_UUID=true
and ran:-
# update-grub
Compiled pvops kernel with built in command line:-
   root=/dev/sda(x) ro console=tty0
Details here :-

http://bderzhavets.wordpress.com/2009/08/31/loading-xen-via-grub2-on-top-ubuntu-karmic-server-alpha-4/

It works for final 9.10 as well.
Boris.

--- On Sun, 11/22/09, Marco Nenciarini <mnencia@xxxxxxxxxxxxxx> wrote:

From: Marco Nenciarini <mnencia@xxxxxxxxxxxxxx>
Subject: [Xen-users] Strange interaction from grub2 and XEN
To: xen-users@xxxxxxxxxxxxxxxxxxx
Date: Sunday, November 22, 2009, 5:27 AM


I'm testing how xen and grub2 can work together.

I'm using xen 3.4.2 and grub2 1.97+20091115-1 from debian sid.

After many failed attempts I've discovered that on my system the first argument that grub2 should pass to the linux kernel is lost.

This is my working grub2 configuration:

menuentry "Xen 3.4.0 / Debian GNU/Linux, Linux 2.6.31-1-xen-amd64" {
    insmod xfs
    set root=(hd0,2)
    multiboot /boot/xen-3.4-amd64.gz
    module /boot/vmlinuz-2.6.31-1-xen-amd64 dummy=dummy root=UUID=e9ed5af4-0503-4314-9d28-415a0eb7b0a0 ro quiet
    module /boot/initrd.img-2.6.31-1-xen-amd64
}

Looking in /proc/cmdline, there isn't any dummy=dummy argument

mnencia@manwe:/tmp$ cat /proc/cmdline
root=UUID=e9ed5af4-0503-4314-9d28-415a0eb7b0a0 ro quiet

Before the addition of dummy=dummy in front of line, the missing argument was the root=*, so my initrd had no idea of which root it have to mount.

BTW, the problem happens with both oldschool kernels and pvops ones.

I've googled around a bit, but I haven't found anything about this issue.

Kind regards,
Marco

-- ---------------------------------------------------------------------
|    Marco Nenciarini    | Debian/GNU Linux Developer - Plug Member |
| mnencia@xxxxxxxxxxxxxx | http://www.prato.linux.it/~mnencia       |
---------------------------------------------------------------------
Key fingerprint = FED9 69C7 9E67 21F5 7D95  5270 6864 730D F095 E5E4


_______________________________________________
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