1: #Why use PXELINUX
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.
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.
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.
13: #Using PXELINUX to chain boot
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.
19: The only tricky thing is where to put which files. The two files needed are e.g. on a bootable CD-ROM.
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
27: # NetBSD
28: label netbsd
29: kernel pxeboot_ia32.bin
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.
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
45: #See also
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