All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: boot loaders for domain != 0
@ 2005-02-03 22:11 Ian Pratt
  2005-02-04  1:09 ` Jacob Gorm Hansen
  0 siblings, 1 reply; 13+ messages in thread
From: Ian Pratt @ 2005-02-03 22:11 UTC (permalink / raw)
  To: Anthony Liguori; +Cc: Jeremy Katz, Andy Whitcroft, xen-devel


> For what it's worth, I think doing a quick mount, read, and 
> then umount 
> is the easiest approach since it extends well to doing things like 
> peeking at an ISO's contents by mounting an ISO image.  Using 
> libraries 
> would probably introduce some nasty dependencies without 
> really gaining 
> much...

>From a security POV, using libext2 etc would be raher better. I just
don't trust Linux to be defensive enough mounting a potentially
malicious bag of bits. [I once came across an ext2 file systems that
deterministically crashed Linux whenever I mounted it. It's been a
couple of years, but I reckon such bugs are still lurking.]

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] 13+ messages in thread
* 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; 13+ 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] 13+ messages in thread
* RE: boot loaders for domain != 0
@ 2005-02-03 14:28 Ian Pratt
  2005-02-03 16:57 ` Jeremy Katz
  0 siblings, 1 reply; 13+ messages in thread
From: Ian Pratt @ 2005-02-03 14:28 UTC (permalink / raw)
  To: Andy Whitcroft, xen-devel

> I know that one doesn't need a bootloader for domains != 0.  
> However, I 
> have a desire to configure a system this way (to make it a 
> good facimily 
> of a bare metal system) and am wondering what if any support for boot 
> loaders there might be?  I presume that there is no BIOS 
> available when 
> running on 'xen virtualised hardware'.  Is there anything 
> even similar 
> available or planned.  How hard might it be?

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).

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).

E.g.: 

  kernel = phy:vg01/myvm//boot/vmlinuz.gz

This would mount mount /dev/vg01/myvm, copy out the kernel file to /tmp,
unmount the partition, then use the kernel in /tmp as the image.

Volunteers? :-)

Thanks,
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] 13+ messages in thread

end of thread, other threads:[~2005-02-04  3:56 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-03 22:11 boot loaders for domain != 0 Ian Pratt
2005-02-04  1:09 ` Jacob Gorm Hansen
2005-02-04  2:16   ` Building domains as a lesser user (was Re: boot loaders for domain != 0) Anthony Liguori
2005-02-04  3:12     ` Jacob Gorm Hansen
2005-02-04  3:16     ` Jacob Gorm Hansen
2005-02-04  3:34       ` Anthony Liguori
2005-02-04  3:56         ` Jacob Gorm Hansen
  -- strict thread matches above, loose matches on Subject: below --
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 14:28 Ian Pratt
2005-02-03 16:57 ` Jeremy Katz

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.