[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] Guest boot loader support [0/2]



Per prior mails and my conversation with Ian last week, the following
set of patches adds a simple bootloader that can read kernel/initrds off
of the domU filesystem as well as parsing of the grub config file.
Right now, only ext[23] is supported (via libext2fs) but adding other
filesystems should be pretty easy, I just haven't had a chance to sit
down and look at the APIs for libreiserfs or libxfs.

I've broken the changes into two parts.  The first implements the
changes needed for xm and xend to kick off a bootloader process.  You
can specify to use this by including a line
  bootloader=/usr/bin/pygrub
in your domain's config file (or similar).  If you auto-connect the
console, you'll get the interactive mode for your bootloader run.  If
you don't auto-connect the console, then the bootloader will be run with
-q, in which case it should just pick the default.

The second patch adds pygrub which is the beginning of a grub
look-a-like.  It parses a regular grub.conf, although at present only
support for the rudimentary bits is present.  I want to continue
fleshing out the interface as well as adding support for whole disks as
opposed to just a partition.

Signed-off-by: Jeremy Katz <katzj@xxxxxxxxxx>

Jeremy


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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.