I’m noting this here because I always forget how to netboot machines.
Install the dnsmasq
daemon:
apt-get install dnsmasq
The relevant /etc/dnsmasq.conf
configuration lines are as follows:
interface=eth0
dhcp-range=192.168.25.50,192.168.25.150,12h
dhcp-boot=pxelinux.0
enable-tftp
tftp-root=/var/ftpd
Restart dnsmasq:
service dnsmasq restart
The following needs to be added to /etc/network/interfaces:
iface eth0 inet static
address 192.168.25.1
Bring up eth0:
ifup eth0
The following sysctl changes are required:
sysctl net.ipv4.conf.all.forwarding=1
The following iptables changes are required:
iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -i eth0 -o wlan0 -j ACCEPT
Finally, grab netboot.tar.gz from a Debian mirror such as
http://ftp.ca.debian.org/debian/dists/jessie/main/installer-i386/current/images/netboot/
and extract it into the tftp root directory:
/var/ftpd# tar xzvf netboot.tar.gz