File:  [NetBSD Developer Wiki] / wikisrc / tutorials / how_to_install__40__boot__41___netbsd_using_pxelinux.mdwn
Revision 1.1: download - view: text, annotated - select for diffs
Sun Nov 20 20:55:21 2011 UTC (9 years ago) by mspo
Branches: MAIN
CVS tags: HEAD
import all of the how-to articles from the pkgsrc.se wiki

    1: #Why use PXELINUX
    2: 
    3: 
    4: 
    5: You may have a running Linux server supporting network boot via [PXELINUX](http://syslinux.zytor.com/wiki/index.php/PXELINUX), because it allows a nice selection menu of bootable images, and want to add a NetBSD kernel to the menu.
    6: 
    7: 
    8: In an experimental environment, this would allow to boot diagnostic tools like memtest, Linux kernels like [GRML](http://grml.org/), a variety of Linux installers, and also to install NetBSD without removable devices.
    9: 
   10: 
   11: However, if the networked machine is already dedicated to NetBSD, using pxeboot_ia32.bin directly to boot a NetBSD kernel for repairs or boot a diskless workstation with NetBSD would be better.
   12: 
   13: #Using PXELINUX to chain boot
   14: 
   15: 
   16: PXELINUX can not only boot Linux kernels, but also a boot sector. Thus, we can instruct PXELINUX to load the NetBSD netboot loader pxeboot_ia32.bin, which then can load a NetBSD kernel.
   17: 
   18: 
   19: The only tricky thing is where to put which files. The two files needed are e.g. on a bootable CD-ROM.
   20: 
   21: 
   22: 
   23: * copy pxeboot_ia32.bin to the same directory where pxelinux.0 resides. The DHCP config file may contain filename="/lts/i386/pxelinux.0", then copy pxeboot_ia32.bin to e.g. /tftpboot/lts/i386/
   24: * copy the kernel, e.g. netbsd-INSTALL.gz, to the directory denoted option root-path "/opt/ltsp/i386" in the DHCP config file, possibly renaming it to the default netbsd.
   25: * Edit the pxelinux.cfg/default (or any other file there) e.g. like this 
   26: <pre><code>
   27: # NetBSD
   28:  label netbsd
   29:  kernel pxeboot_ia32.bin
   30: </code></pre>
   31: 
   32: In case of a NetBSD installation, proceed as in [Example installation](http://www.netbsd.org/docs/guide/en/chap-exinst.html), using probably FTP, HTTP or NFS as installation source.
   33: 
   34: 
   35: 
   36: Remarks:
   37: 
   38: 
   39: 
   40: * The kernel(s) can and should stay gzipped
   41: * Unless an installation kernel is used, it will try to NFS-mount the root-path from the DHCP config file as root and assume it is writable, i.e. try to be a diskless workstation, see link below
   42: * For NetBSD 5, use NETBSD_INSTALL_FLOPPY.GZ as installation kernel 
   43: 
   44: 
   45: #See also
   46: 
   47: 
   48: * <http://www.netbsd.org/docs/network/netboot/>
   49: * <http://www.netbsd.org/docs/network/netboot/local.install.html> (not linked in the above document)
   50: * <http://wp.lando.cc/category/operation-systems/netbsd/>

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