Setting up a pxe server
Software needed
Tftp
Pxe
Dhcpd
Dhcpd will be the most important file that you will need to configure this is the dhcpd.conf
This is a very generic setup. It will allow you to boot a client from this pxe server with images or a dos boot disk with the memdisk option.
******************************************************************
allow booting;
allow bootp; //needed for pxe to boot
ddns-update-style ad-hoc; //only for dhcpd 1.3 and above
DHCPD_INTERFACE = "eth1"; //you must identify the port
subnet 10.0.0.0 netmask 255.0.0.0 {
option subnet-mask 255.0.0.0;
option domain-name-servers 10.0.0.1;
option bootfile-name "pxelinux.0";
range dynamic-bootp 10.0.0.10 10.0.0.100;
}
group
{
next-server 10.10.1.1;
filename "/tftpboot/pxelinux.0"; //the directory were pxelinux.0 needs to be
option bootfile-name "pxelinux.0";
************************************************************************
Tftp will hand the initial boot kernel and ip address. Make sure that you have your /tftpboot/pxelinux.0 file in /tftpboot or where ever you choose to put it but dhcpd.conf needs to know where that is
And inside /tfpboot/ you need to make a sysconfig file
I have /tftpboot/pxelinux.cfg/syslinux.cfg
Example syslinux.cfg file
default linux
prompt 1
timeout 600
display boot.msg
label lucifer
kernel memdisk
append initrd=lucifer.img
label 98se
kernel memdisk
append initrd=98se.img
************************************************************************
Boot message example
more ../rhat9/boot.msg
- To install or upgrade 02Red Hat07 Linux in graphical mode,
press the 0f<ENTER>07 key.
to install suse 9.1 suse (install dir) = /images/suse/cdrom/
to boot windows 98 boot win98
to install rhat 9.0 enter (install dir) = /images/
to install rhat 3.0 rhat30 (install dir) = /images/rhat30
to install fedora core 2 fedora (install dir) = /images/fedora
to run memtest memtest
****************************************************************
You can e-mail the author with questions or comments: