Skip to contentSkip to conversation

Failure to setup Xen 3.4.1 Dom0 on top of Ubuntu 9.10 Server HVM DomU ( 2.6.30.2 xenified kernel)

DISCUSSION Boris Derzhavets 1 participant 1 message Aug 30, 2009

lore
Share & tools
lore
#0 lore raw

Setting CONFIG_CMDLINE_BOOL=y in .config allows to assign desired value via make menuconfig:

Symbol: CMDLINE [=root=/dev/sda14 ro console=tty0]
Prompt: Built-in kernel command string
 Defined at arch/x86/Kconfig:1644
     Depends on: CMDLINE_BOOL
     Location:
       -> Processor type and features
         -> Built-in kernel command line (CMDLINE_BOOL [=y])

Then Grub2 entry :
  menuentry "Xen 3.4 / Ubuntu 9.10 kernel 2.6.30.2-xen" { insmod ext2
  set root=(hd0,13)
  multiboot  (hd0,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 , thanks a lot for your support
Boris.

--- On Sun, 8/30/09, Boris Derzhavets <[email protected]> wrote:

From: Boris Derzhavets <[email protected]>
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)
To: "Christian Tramnitz" <[email protected]>, "[email protected]" <[email protected]>, "Keir Fraser" <[email protected]>
Date: 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 <[email protected]> wrote:

From: Keir Fraser <[email protected]>
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)
To: "Christian Tramnitz" <[email protected]>, "[email protected]" <[email protected]>
Date: Sunday, August 30, 2009, 11:50 AM

Quoted 4 lines · Christian Tramnitz

Afaik grub2 does not pass the boot parameters "root=/dev/sda2 ro console=tty0" to the kernel in multiboot/module combination. I have seen 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 simple enough less ugly workaround than you suggest...

Quoted 2 lines

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=tty -- root=/dev/sda2 ro console=tty0

-- Keir

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel