All of lore.kernel.org
 help / color / mirror / Atom feed
* xen,bproc and grub
@ 2004-11-01 22:39 Adam Sulmicki
  2004-11-01 22:54 ` Ian Pratt
  0 siblings, 1 reply; 33+ messages in thread
From: Adam Sulmicki @ 2004-11-01 22:39 UTC (permalink / raw)
  To: xen-devel


Hello,
	I have recently ported bproc [1] which part of clustermatic [2]
suite to xen-2.0 [3] to run on domain0. It was pretty straightforward,
that it required few trival hacks to the kernel, few sym-links and
remembering to use "ARCH=xen" whenever appropriate.

However, clustermatic does use linuxbios on its nodes for booting and does
not use traditional bios at all. This means that the grub (with its
multiboot support) with its heavy dependencies on PC-BIOS Is out of
window.

Thus I'm trying to figure out how I could boot xen/linux-2.6.8.1-xen0 duo
on nodes. Are there any other options to boot it besides using grub[4][5]?
and preferably does not rquire multiboot [6].

I figure out I that maybe could load xen.gz [7] using FILO, Kexec, or
maybe etherboot but it still would not load linux kernel in turn (because
of the dependency on multiboot).

Anyone knows what are my options here? Ideas?

[1] http://bproc.sourceforge.net/
[2] http://www.clustermatic.org/
[3] http://www.cl.cam.ac.uk/Research/SRG/netos/xen/
[4] grub configuration file entry for xen

	title Xen 2.0 / XenLinux 2.6.8.1
	    kernel (hd0,0)/boot/xen.gz dom0_mem=65536
	    module (hd0,0)/boot/vmlinuz-2.6.8.1-xen0 root=/dev/hda1

[5] grub-multiboot, from info page

 - Command: module file ...
     Load a boot module FILE for a Multiboot format boot image (no
     interpretation of the file contents are made, so the user of this
     command must know what the kernel in question expects). The rest
     of the line is passed as the "module command-line", like the
     `kernel' command. You must load a Multiboot kernel image before
     loading any module. See also *Note modulenounzip::.

[6] http://www.gnu.org/software/grub/manual/multiboot/multiboot.html
    does anyone knows better references to multiboot specs?

[7] /boot/xen.gz

redbull:/etc/clustermatic # file /boot/xen.gz
/boot/xen.gz: gzip compressed data, from Unix, max compression

redbull:/etc/clustermatic # file /tmp/xen
/tmp/xen: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped

redbull:/etc/clustermatic # readelf -a /tmp/xen
ELF Header:
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           Intel 80386
  Version:                           0x1
  Entry point address:               0x100000
  Start of program headers:          52 (bytes into file)
  Start of section headers:          266608 (bytes into file)
  Flags:                             0x0
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         1
  Size of section headers:           40 (bytes)
  Number of section headers:         3
  Section header string table index: 2

Section Headers:
  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
  [ 0]                   NULL            00000000 000000 000000 00      0 0  0
  [ 1] .text             PROGBITS        00100000 000080 0410f0 00 WAX  0 0 64
  [ 2] .shstrtab         STRTAB          00000000 0411e8 000011 00      0 0  1
Key to Flags:
  W (write), A (alloc), X (execute), M (merge), S (strings)
  I (info), L (link order), G (group), x (unknown)
  O (extra OS processing required) o (OS specific), p (processor specific)

Program Headers:
  Type           Offset   VirtAddr   PhysAddr   FileSiz MemSiz  Flg Align
  LOAD           0x000080 0x00100000 0x00100000 0x410f0 0x764c0 RWE 0x40

 Section to Segment mapping:
  Segment Sections...
   00     .text

There is no dynamic segment in this file.

There are no relocations in this file.

There are no unwind sections in this file.

No version information found in this file.
redbull:/etc/clustermatic #




-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click

^ permalink raw reply	[flat|nested] 33+ messages in thread
* RE: xen,bproc and grub
@ 2004-11-08  6:28 Ian Pratt
  2004-11-08  6:45 ` Adam Sulmicki
  2004-11-10 12:50 ` Tim Deegan
  0 siblings, 2 replies; 33+ messages in thread
From: Ian Pratt @ 2004-11-08  6:28 UTC (permalink / raw)
  To: Adam Sulmicki, Ian Pratt; +Cc: xen-devel

 
> > > > We wrote a patch to add multiboot support to kexec (that's how 
> > > > Xenoboot works).  It was submitted to the kexec 
> maintainer, but I 
> > > > don't know whether it was accepted or not.
> > > http://www.tjd.phlegethon.org/software/kexec-multiboot.patch
> 
> argh, it seems to be using real-mode for booting, and it 
> seems multiboot specs seems to assume existence of pcbios.
> 
> i guess the right way will be just to strop xen.gz of all 16 
> bit code and have it loaded and started in 32 bit mode. In 
> that way kexec could treat xen like elf32-x86 type file.

I forget the context of what you're trying to do.

With Tim's multiboot patch, kexec is able to 'boot' into xen just fine.

I think Tim has recently been looking at how we could roll a xen and
dom0 image into a static multiboot file that is then wrapped to appear
like a standard linux bzImage. 

Ian


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_idU88&alloc_id\x12065&op=click

^ permalink raw reply	[flat|nested] 33+ messages in thread
* RE: xen,bproc and grub
@ 2004-11-15 21:43 Ian Pratt
  2004-11-16  1:07 ` Adam Sulmicki
  0 siblings, 1 reply; 33+ messages in thread
From: Ian Pratt @ 2004-11-15 21:43 UTC (permalink / raw)
  To: Tim Deegan, xen-devel

> > I think Tim has recently been looking at how we could roll 
> a xen and 
> > dom0 image into a static multiboot file that is then 
> wrapped to appear 
> > like a standard linux bzImage.
> 
> An alpha release of this tool is now available from 
> http://www.cl.cam.ac.uk/~tjd21/mbootpack-0.1a.tar.gz
> 
> It should let you wrap up xen, xenolinux-0, and the command 
> lines into a bzImage file that can be loaded using a standard 
> bootloader.  I've tested it succesfully with xen+xenolinux 
> images from the 2.0 release, on a 128MB PII-400, loading the 
> bzImage using GRUB and LILO.  Bug reports from other 
> configurations are very welcome. :)

It would be cool if it was possible to override the command line passed
to both Xen and the dom0 kernel. Since lilo/syslinux/pxeboot etc only
allow a single command line to specified, I guess we could distinguish
the xen arguments by prefixing them with xen_ or such like.

What do you think?


Ian


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8

^ permalink raw reply	[flat|nested] 33+ messages in thread

end of thread, other threads:[~2004-11-22  4:31 UTC | newest]

Thread overview: 33+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-01 22:39 xen,bproc and grub Adam Sulmicki
2004-11-01 22:54 ` Ian Pratt
2004-11-01 23:58   ` Adam Sulmicki
2004-11-02  0:05     ` Ian Pratt
2004-11-02 12:08       ` Tim Deegan
2004-11-02 12:31       ` Jacob Gorm Hansen
2004-11-02 15:56         ` Ian Pratt
2004-11-08  5:47       ` Adam Sulmicki
2004-11-08  7:43         ` Keir Fraser
2004-11-02 20:25   ` Ronald G. Minnich
  -- strict thread matches above, loose matches on Subject: below --
2004-11-08  6:28 Ian Pratt
2004-11-08  6:45 ` Adam Sulmicki
2004-11-08 13:03   ` Tim Deegan
2004-11-08 16:13     ` Adam Sulmicki
2004-11-10 12:50 ` Tim Deegan
2004-11-15 21:43 Ian Pratt
2004-11-16  1:07 ` Adam Sulmicki
2004-11-16  1:19   ` Ronald G. Minnich
2004-11-16  1:28   ` Adam Sulmicki
2004-11-16  1:20     ` Ronald G. Minnich
2004-11-16  9:46       ` Keir Fraser
2004-11-16 14:59         ` Ronald G. Minnich
2004-11-16 15:11           ` Keir Fraser
2004-11-22  4:31             ` Adam Sulmicki
2004-11-16 16:44         ` Adam Sulmicki
2004-11-16 16:50           ` Keir Fraser
2004-11-16 17:04             ` Adam Sulmicki
2004-11-16 19:16               ` Kip Macy
2004-11-16 19:40                 ` Keir Fraser
2004-11-16 19:43                   ` Kip Macy
2004-11-16 19:50                     ` Keir Fraser
2004-11-16 20:02                       ` Kip Macy
2004-11-16 21:04                         ` Keir Fraser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.