PXE - Preboot Execution Environment

PXE (Preboot eXecution Environment) provides a mechanism for booting a computer using a network interface. This mechanism allows a computer to boot without depending on local data storage devices (such as a hard disk) or a locally installed operating system. [1]

Installation

dnsmasq is a lightweight network infrastructure server; it can provide network boot services through its built-in DNS, DHCP, and TFTP servers.

apt-get install dnsmasq
mkdir /var/ftpd
cd /var/ftpd
wget http://ftp.nl.debian.org/debian/dists/wheezy/main/installer-amd64/current/images/netboot/mini.iso
wget http://ftp.nl.debian.org/debian/dists/wheezy/main/installer-amd64/current/images/netboot/pxelinux.0
wget http://ftp.nl.debian.org/debian/dists/wheezy/main/installer-amd64/current/images/netboot/netboot.tar.gz
tar xfz netboot.tar.gz

Configuration

vi /etc/dnsmasq.conf

interface=eth0 *服务器监听的网络接口*
dhcp-range=10.10.10.80,10.10.10.89,255.255.255.0,12h *用你自己的网络掩码定义的网络IP地址范围*
dhcp-boot=pxelinux.0 *定义pxe文件*
enable-tftp *启用内建TFTP服务器*
tftp-root=/var/ftpd *使用/var/ftpd作为Debian网络启动文件的存放位置*

References