All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Building domains as a lesser user (was Re: bootloaders for domain != 0)
@ 2005-02-04  9:38 Ian Pratt
  2005-02-04 10:23 ` Andy Whitcroft
  2005-02-04 13:20 ` Jeremy Katz
  0 siblings, 2 replies; 8+ messages in thread
From: Ian Pratt @ 2005-02-04  9:38 UTC (permalink / raw)
  To: Jeremy Katz; +Cc: xen-devel

> On Fri, 2005-02-04 at 02:30 +0000, Ian Pratt wrote:
> > One fairly simple option is to use Linux as a domU boot loader. Boot
> > with an intrd, mount the specified filesystem, read off 
> grub.conf, display a menu over
> > the xencons, kexec the appropriate kernel.
> 
> Linux really seems like a very heavy hammer for something like this.
> Even just thinking from a resource perspective, why boot up a whole
> kernel to do nothing more than read an fs and mount another kernel.

I don't buy the resource argument: it takes only a couple of seconds to
boot a xenU kernel to user space, and you're about to be booting another
kernel anyhow.

> Especially as you start thinking about things like modular fs's, etc,
> it's going to be much less clean of a solution and be a significant
> slowdown on your guest boot time.

A few seconds slow down -- nothing compared to what a BIOS normally
adds.

I don't see why the filesystems would particularly need to be modular,
though you might do so for convenience. 

> And then, it's yet another kernel to keep updated, etc.

I don't see any reason to keep it up to date. Its running in a protected
environemnt and doesn't have any extra access that the kernel about to
be booted is going to get.
I think this approach will work well.

We already booy all of our *physical* machines using a CDROM containing
a Linux bootloader -- see xenoboot:
http://www.cl.cam.ac.uk/Research/SRG/netos/xeno/xenoboot/

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: Building domains as a lesser user (was Re: [Xen-devel]bootloaders for domain != 0)
@ 2005-02-04 13:44 Ian Pratt
  0 siblings, 0 replies; 8+ messages in thread
From: Ian Pratt @ 2005-02-04 13:44 UTC (permalink / raw)
  To: Jeremy Katz; +Cc: xen-devel

 
> > I don't see why the filesystems would particularly need to 
> be modular, though you might do so for convenience. 
> 
> Because if the kernel is _different_ than every other kernel being
> shipped by a distribution, then it's a major pain.  It also ends up
> giving people a lot less flexibility (because if I were to do 
> that, for
> example, it would only have ext[23] support leaving users of
> reiserfs/xfs/jfs/foofs out in the cold whereas with a modular 
> solution,
> they can at least add the support for what they want).

It's no worse than the current situation with GRUB where if vendors want
to use some random file system for /boot they have to add it to grub.

I'd imagine most vendors would want to use the same kernel for the boot
loader that they use when running normally. It'll just be a difference
in the contents of the initrd. 
 
> > > And then, it's yet another kernel to keep updated, etc.
> > 
> > I don't see any reason to keep it up to date. Its running 
> in a protected
> > environemnt and doesn't have any extra access that the 
> kernel about to
> > be booted is going to get.
> 
> Users don't tend to take that answer very well ;)  The protected
> environment means you can have a little bit longer to fix it, but they
> have things like audit requirements, etc.  And just because 
> it's running
> in a protected environment doesn't mean it's bug-free.  Or that it's
> going to be able to stand still as filesystem features are added, etc.
> This ends up being less of a concern with minimalistic implementations
> for reading filesystems like grub's and libext2fs.

The boot loader kernel would be running with no more privilege than the
kernel being loaded, and doesn't have any user facing interfaces other
than a boot menu (though you might include a network stack for a network
boot you wouldn't run any services). 
Anyhow, there's no reason not to keep it up to date as there's no reason
not to just use whatever you're running on dom0, with a slghtly
different initrd (or different kernel command line option to the
existing initrd)

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-04 17:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-04  9:38 Building domains as a lesser user (was Re: bootloaders for domain != 0) Ian Pratt
2005-02-04 10:23 ` Andy Whitcroft
2005-02-04 13:21   ` Building domains as a lesser user (was Re: [Xen-devel] " Jeremy Katz
2005-02-04 17:36     ` Andy Whitcroft
2005-02-04 13:20 ` Jeremy Katz
2005-02-04 13:27   ` Mark Williamson
2005-02-04 13:47     ` Jeremy Katz
  -- strict thread matches above, loose matches on Subject: below --
2005-02-04 13:44 Building domains as a lesser user (was Re: [Xen-devel]bootloaders " Ian Pratt

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.