
61
7.7 Building PXELINUX
In this example, we use PXE to boot Linux with PXELINUX from the
syslinux
package.
This can be obtained from the following website:
http://www.kernel.org/pub/linux/utils/boot/syslinux/
To build
PXELINUX
, you will need
nasm(1)
, an x86 assembler; which can be obtain from
the following website:
http://sourceforge.net/projects/nasm
You only need to build
pxelinux.0
. To build it:
# make pxelinux.0
Copy
pxelinux.0
to your
/tftpboot
directory on your TFTP server. Next, copy your
ramdisk to
/tftpboot
:
# cp ${INITRD}/initrd.img.gz /tftpboot/
Copy your kernel to
/tftpboot/
and copy the filesystem you want to use to
/tftpboot/
.
Create a config file named "
default
" for PXE. It goes in the directory
/tftpboot/pxelinux.cfg/
Example:
KERNEL vmlinuz-2.4.20-6smp
APPEND nfsdir=10.40.0.1:/NFSroot/client1 init=/sbin/init \
initrd=initrd.img.gz
TIMEOUT 10
KERNEL
specifies the kernel image
APPEND
needs the IP address of the NFS server, the location of the filesystem, and the
location of the ramdisk we created for AMSO1100.
More info on PXELINUX at
http://syslinux.zytor.com/pxe.php
7.8 Diskless Linux Boot via PXE
There are several HOWTOs that explain booting a diskless node via PXE. Eg:
http://www.intra2net.com/opensource/diskless-
howto/howto.html