From: Boris Derzhavets Subject: Re: Re: Failure to setup Xen 3.4.1 Dom0 on top of Ubuntu 9.10 Server HVM DomU ( 2.6.30.2 xenified kernel) Date: Sun, 30 Aug 2009 09:33:57 -0700 (PDT) Message-ID: <805729.58601.qm@web56104.mail.re3.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1613707572==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Christian Tramnitz , "xen-devel@lists.xensource.com" , Keir Fraser List-Id: xen-devel@lists.xenproject.org --===============1613707572== Content-Type: multipart/alternative; boundary="0-505974885-1251650037=:58601" --0-505974885-1251650037=:58601 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Setting CONFIG_CMDLINE_BOOL=3Dy in .config allows to assign desired value v= ia=0Amake menuconfig: Symbol: CMDLINE [=3Droot=3D/dev/sda14 ro console=3Dtty0]=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=20 Prompt: Built-in kernel command string=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=20 =A0Defined at arch/x86/Kconfig:1644=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A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0=A0=A0=20 Then Grub2 entry : =A0 menuentry "Xen 3.4 / Ubuntu 9.10 kernel 2.6.30.2-xen" { =A0 insmod ext2 =A0 set root=3D(hd0,13) =A0 multiboot=A0 (hd0,13)/xen-3.4.gz =A0 module=A0=A0=A0=A0 (hd0,13)/vmlinuz-2.6.30.2 =A0 module=A0=A0=A0=A0 (hd0,13)/initrd-2.6.30.2.img } loads=A0 Xen 3.4.1 Dom0 with 2.6.30.2 xenified aka Suse on top of Ubuntu 9.= 10 (Karmic)=A0 Server Once again , thanks a lot for your support Boris. --- On Sun, 8/30/09, Boris Derzhavets wrote: From: Boris Derzhavets Subject: Re: [Xen-devel] Re: Failure to setup Xen 3.4.1 Dom0 on top of Ubun= tu 9.10 Server HVM DomU ( 2.6.30.2 xenified kernel) To: "Christian Tramnitz" , "xen-devel@lists.xensource.co= m" , "Keir Fraser" Date: Sunday, August 30, 2009, 12:22 PM I've tested both options. Chris's one works with Grub2, Keir's doesn't.=20 Distro Ubuntu 9.10 Server (alpha 4.) Thanks. Boris. --- On Sun, 8/30/09, Keir Fraser wrote: From: Keir Fraser Subject: Re: [Xen-devel] Re: Failure to setup Xen 3.4.1 Dom0 on top of Ubun= tu 9.10 Server HVM DomU ( 2.6.30.2 xenified kernel) To: "Christian Tramnitz" , "xen-devel@lists.xensource.co= m" Date: Sunday, August 30, 2009, 11:50 AM On 30/08/2009 14:26, "Christian Tramnitz" wrote: > Afaik grub2 does not pass the boot parameters "root=3D/dev/sda2 ro > console=3Dtty0" to the kernel in multiboot/module combination. I have see= n > the same problem on gentoo/grub2 and also read about this before. (This > is not really Xen specific, but multiboot related). Okay, that would clearly be a GRUB regression I think. But there is a simpl= e enough less ugly workaround than you suggest... > My workaround was to compile the kernel options as static cmdline into > the kernel itself... Better solution would be to append dom0's options to Xen's own command line= , separated by --. E.g., multiboot (hd0,1)/xen-3.4.gz console=3Dtty -- root=3D/dev/sda2 ro console= =3Dtty0 -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A =0A=0A=0A --0-505974885-1251650037=:58601 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Setting CONFIG_CMDLINE_BOOL=3Dy in .config al= lows to assign desired value via=0Amake menuconfig:

Symbol: CMDLINE = [=3Droot=3D/dev/sda14 ro console=3Dtty0]      = ;            &n= bsp;            = ;            &n= bsp;          
Prompt= : Built-in kernel command string       &= nbsp;           &nbs= p;            &= nbsp;           &nbs= p;            &= nbsp;             Defined at arch/x86/Kconfig:1644         = ;            &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp; 
     Depends on: CMDLINE_BOOL          &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;            = ;        
   &nb= sp; Location:           = ;            &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;            = ;          
 &nb= sp;     -> Processor type and features           =             &nb= sp;            =             &nb= sp;            =            
&nbs= p;        -> Built-in kernel command = line (CMDLINE_BOOL [=3Dy])    

Then Grub2 entry= :
  menuentry "Xen 3.4 / Ubuntu 9.10 kernel 2.6.30.2-xen" {
&nb= sp; insmod ext2
  set root=3D(hd0,13)
  multiboot  (hd= 0,13)/xen-3.4.gz
  module     (hd0,13)/vmlinuz-= 2.6.30.2
  module     (hd0,13)/initrd-2.6.30.2.= img
}

loads  Xen 3.4.1 Dom0 with 2.6.30.2 xenified aka Suse on top of Ubuntu 9.10 (Karmic)  Server

Once again , thank= s a lot for your support
Boris.

--- On Sun, 8/30/09, Boris Der= zhavets <bderzhavets@yahoo.com> wrote:

From: Boris Derzhavets <bderzhavets@yahoo.com>
Subjec= t: Re: [Xen-devel] Re: Failure to setup Xen 3.4.1 Dom0 on top of Ubuntu 9.1= 0 Server HVM DomU ( 2.6.30.2 xenified kernel)
To: "Christian Tramnitz" &= lt;chris.ace@gmx.net>, "xen-devel@lists.xensource.com" <xen-devel@lis= ts.xensource.com>, "Keir Fraser" <keir.fraser@eu.citrix.com>
Da= te: Sunday, August 30, 2009, 12:22 PM

I've= tested both options.

Chris's one works with Grub2, Keir's doesn't. =
Distro Ubuntu 9.10 Server (alpha 4.)

Thanks.
Boris.

--= - On Sun, 8/30/09, Keir Fraser <keir.fraser@eu.citrix.com><= /b> wrote:

From: Keir Fraser <keir.frase= r@eu.citrix.com>
Subject: Re: [Xen-devel] Re: Failure to setup Xen 3.= 4.1 Dom0 on top of Ubuntu 9.10 Server HVM DomU ( 2.6.30.2 xenified kernel)<= br>To: "Christian Tramnitz" <chris.ace@gmx.net>, "xen-devel@lists.xen= source.com" <xen-devel@lists.xensource.com>
Date: Sunday, August 3= 0, 2009, 11:50 AM

On 30/08/2009 14:26, "Chr= istian Tramnitz" <chris.ace@gmx.net> wrote:
> Afaik grub2 does not pass the boot parameters "root=3D/dev/sda2 ro
> console=3Dtty0" to the kernel in multiboot/module combination. = I have seen
> the same problem on gentoo/grub2 and also read about th= is before. (This
> is not really Xen specific, but multiboot related)= ..

Okay, that would clearly be a GRUB regression I think. But there i= s a simple
enough less ugly workaround than you suggest...

> M= y workaround was to compile the kernel options as static cmdline into
&g= t; the kernel itself...

Better solution would be to append dom0's op= tions to Xen's own command line,
separated by --. E.g.,
multiboot (hd= 0,1)/xen-3.4.gz console=3Dtty -- root=3D/dev/sda2 ro console=3Dtty0

= -- Keir



_______________________________________________
= Xen-devel mailing list
Xen-devel@lists.xensource.com=
http://lists.xensource.com/x= en-devel

=0A=0A =
=0A=0A=0A=0A --0-505974885-1251650037=:58601-- --===============1613707572== 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 --===============1613707572==--