1. setup tftp server.
- You need a server with tsize support.
sudo aptitude install tftp-hpa tftpd-hpa
- set tftp directory
sudo mkdir /tftpboot
sudo chown nobody.nogroup /tftpboot
sudo chmod 777 /tftpboot
- configure tftp
sudo gedit /etc/default/tftpd-hpa
#Defaults for tftpd-hpa
RUN_DAEMON=”yes”
OPTIONS=”-l -s /tftpboot”
- start tftp
sudo /etc/init.d/tftpd-hpa start
-verify
netstat -a |grep tftp
touch /tftpboot/testfile
tftp localhost -c get testfile
2. setup a DHCP server and enable PXE booting
sudo aptitude install dhcp3-server
sudo gedit /etc/dhcp3/dhcpd.conf
- content looks like
default-lease-time 600;
max-lease-time 7200;
allow booting;
allow bootp;
# The next paragraph needs to be modified to fit your case
subnet 192.168.1.0 netmask 255.255.255.0 {
range 192.168.1.101 192.168.1.253; # depends on your router
option broadcast-address 192.168.1.255;
# the gateway address which can be different
# (access to the internet for instance)
option routers 192.168.1.1;
# indicate the dns you want to use
option domain-name-servers 192.168.1.1;
}
group {
# next-server 192.168.1.3;
host tftpclient {
# tftp client hardware address
hardware ethernet <MAC_ADDR_SEPARATE_BY_:>;
filename “pxelinux.0″;
}
}
3. move tftp images into tftp folder
goto
http://www.debian.org/releases/stable/i386/ch04s02.html.en#where-files
and get the netboot.tar.gz tarball and extract it into /tftpboot
reference
http://www.debian.org/releases/stable/i386/ch04s05.html.en
http://blog.tuxcoder.com/2008/06/configure-tftp-server-in-ubuntu.html