Debian Wheezy über das Netz mittels Preboot Execution Environment (PXE) von einem TFTP Server booten…
tftpd installieren
apt-get install tftp-hpa tftpd-hpa syslinux
mkdir -p /var/lib/tftpboot
cp /usr/lib/syslinux/pxelinux.0 /var/lib/tftpboot
mkdir -p /var/lib/tftpboot/pxelinux.cfg
touch /var/lib/tftpboot/pxelinux.cfg/default
sed -i 's/\/srv\/tftp/\/var\/lib\/tftpboot/g' /etc/default/tftpd-hpa
/etc/init.d/tftpd-hpa restart
Testen…
cd ~
uname -a >/var/lib/tftpboot/test
tftp localhost
tftp> get test
tftp> quit
diff test /var/lib/tftpboot/test
rm test
rm /var/lib/tftpboot/test
Debian 7 Netboot Image
mkdir -p /var/lib/tftpboot/Debian/7/i386
mkdir -p ~/download && cd ~/download
wget http://ftp.nl.debian.org/debian/dists/wheezy/main/installer-i386/current/images/netboot/netboot.tar.gz
tar xvfz netboot.tar.gz -C /var/lib/tftpboot/Debian/7/i386
PXE einrichten
mkdir -p /var/lib/tftpboot/utilities/DBAN/2.0/i386
cp /usr/lib/syslinux/menu.c32 /var/lib/tftpboot/
cp /usr/lib/syslinux/vesamenu.c32 /var/lib/tftpboot/
cd /var/lib/tftpboot
chmod -R a+r *
/etc/init.d/tftpd-hpa restart
vi /var/lib/tftpboot/pxelinux.cfg/pxe.conf
MENU TITLE PXE Server
MENU BACKGROUND pxelinux.cfg/logo.png
NOESCAPE 1
ALLOWOPTIONS 1
PROMPT 0
menu width 80
menu rows 14
MENU TABMSGROW 24
MENU MARGIN 10
menu color border 30;44 #ffffffff #00000000 std
vi /var/lib/tftpboot/pxelinux.cfg/default
DEFAULT menu.c32
TIMEOUT 600
ONTIMEOUT BootLocal
PROMPT 0
MENU INCLUDE pxelinux.cfg/pxe.conf
NOESCAPE 1
LABEL BootLocal
localboot 0
TEXT HELP
Boot to local hard disk
ENDTEXT
MENU BEGIN Debian
MENU TITLE Debian
LABEL Previous
MENU LABEL Previous Menu
TEXT HELP
Return to previous menu
ENDTEXT
MENU EXIT
MENU SEPARATOR
MENU INCLUDE Debian/7/i386/debian-installer/i386/boot-screens/menu.cfg
MENU END