File:  [NetBSD Developer Wiki] / wikisrc / projects / project / xenboot.mdwn
Revision 1.2: download - view: text, annotated - select for diffs
Sat Dec 29 04:12:41 2012 UTC (15 months, 2 weeks ago) by wiki
Branches: MAIN
CVS tags: HEAD
web commit by mspo

[[!template id=project

title="Create a NetBSD specific version of pygrub"

contact="""
[port-xen](mailto:port-xen@NetBSD.org)
"""

mentors="""
[John Nemeth](mailto:jnemeth@NetBSD.org)
"""

category="xen"
difficulty="medium"
duration="2 days (for initial support)"

description="""
pygrub, which is part of the xentools package, allows booting a
Linux domU without having to keep a copy of the kernel and ramdisk
in the dom0 file system.

What it does is extract the grub.conf from the domU disk, processes
it, and presents a grub like menu.  It then extracts the appropriate
kernel and ramdisk image from the domU disk, and stores temporary
copies of them.  Finally, it creates a file containing:

- kernel=\<path to kernel image\>
- ramdisk=\<path to ramdisk image\>
- extras=\<kernel parameters\>

This file gets processed by xend as if it were part of the domU
config.

Most of the code required to do the NetBSD equivalent should be
available as part of /boot or the libraries it depends on.  The
path to the source code for _/boot_ is:  _sys/arch/i386/stand/boot_.
""" ]]

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb