All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: boot loaders for domain != 0
@ 2005-02-03 17:28 Ian Pratt
  2005-02-03 18:06 ` Jeremy Katz
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Ian Pratt @ 2005-02-03 17:28 UTC (permalink / raw)
  To: Jeremy Katz; +Cc: Andy Whitcroft, xen-devel

 
> > I think you could get most of this functionality by allowing the
> > location of the kernel to be specified as a file within one of the
> > guests virtual disks (assuming dom0 knows how to mount the root file
> > system).
> 
> Except that you really want to be able to update from within the guest
> what kernel is used instead of having to specify it in dom0.  
> That then
> makes the guest almost completely independent on questions of what
> software runs inside it.

You'll still need a config file in domain 0 that says what the 'boot
disk' for the domain is and what virtual ethernet interfaces it gets
etc.
 
> > We could also access a config file within the guest's 
> virtual disk that
> > could be used to override a subset of the config parameters (e.g.
> > command line, kernel image name etc).
> 
> Parsing a grub.conf is easy enough that you're probably just 
> as well off
> reading it from dom0 and parsing it to determine what the 
> right thing to
> boot is.  You can even do it without mounting by using something like
> libext2fs.  Going really all out would then make it so that when you
> first started a guest domain, you'd be presented with a menu to pick
> what you want (based on the boot loader config), just like you would
> with a normal machine.  

Yep, grub.conf wouldn't be a bad config format to use, though it's
obviously not as flexible as ourcurrent config file that enable varibles
etc.

Using libext2fs would be nice from a security POV (it's probably not too
hard to crash Linux getting it to mount a suitably crafted filesystem
structure), but it doesn't help if the client is using XFS or Reiserfs
etc (though I'm not sure Grub supports these anyhow). Perhaps insisting
on an ext3 /boot is OK.

Ian


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: [PATCH] Xen Grub-style boot loader
@ 2005-02-03 23:12 Ian Pratt
  2005-02-03 23:37 ` Anthony Liguori
  0 siblings, 1 reply; 8+ messages in thread
From: Ian Pratt @ 2005-02-03 23:12 UTC (permalink / raw)
  To: Anthony Liguori, Jan Kundrát; +Cc: Jeremy Katz, Andy Whitcroft, xen-devel

> It's a simple grub style ncurses application.  This is my 
> ncurses app so 
> it's probably even easier than what I did.  It parses a 
> grub.conf file 
> and let's a user pick an entry.

I think to be useful this would need to run within the guest domain such that the grub menu appeared over the guest console connection. We'd have to use something akin to a real bootloader (but 32bit) to pull in the image and jump at it. Using linux with a suitable initrd and kexec might be a good soloution.

I'm not sure that the interactive selection of kernels is the #1 requirement here -- I think its more about being able to read the kernel from the domain's file system, and to be able to control the command line options. 

Ian


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl

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

end of thread, other threads:[~2005-02-03 23:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-03 17:28 boot loaders for domain != 0 Ian Pratt
2005-02-03 18:06 ` Jeremy Katz
2005-02-03 18:49 ` Anthony Liguori
2005-02-03 19:32 ` Jan Kundrát
2005-02-03 20:57   ` [PATCH] Xen Grub-style boot loader Anthony Liguori
2005-02-03 23:58     ` Anthony Liguori
  -- strict thread matches above, loose matches on Subject: below --
2005-02-03 23:12 Ian Pratt
2005-02-03 23:37 ` Anthony Liguori

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.