User Tools

Site Tools


Sidebar






newpage

linux:debian_install:pxe_netboot

This is an old revision of the document!


PXE netboot

Via PXE / netboot, you can boot and install systems over network. Just switch the bios to PXE netboot.

You need dnsmasq, it includes a tftpd server, which serves the boot images.

dnsmasq config

Example config:

dhcp-range=192.168.20.100,192.168.20.150,12h
dhcp-boot=pxelinux.0
enable-tftp
tftp-root=/var/tftpd
dhcp-option=3,192.168.20.1
dhcp-option=6,192.168.20.1

tftpd

dnsmasq includes a tftp server, you just need to serve the pxe boot files from there. For debian, you can use:

pxelinux.cfg/default

this includes the bootmenu and is started, as soon as the client boots via pxe/tftp. put your matching config here.

# the debian installer. this is included in netboot.tar.gz
path debian-installer/amd64/boot-screens/
include debian-installer/amd64/boot-screens/menu.cfg
default debian-installer/amd64/boot-screens/vesamenu.c32
prompt 0
timeout 0
# another entry for debian live - run without installing:
LABEL Debian LiveCD
MENU DEFAULT
KERNEL ::/debianlive/live/vmlinuz
# an automated installer, which downloads a preseed file:
label Install Automat
MENU DEFAULT
kernel debian-installer/amd64/linux
append vga=normal initrd=debian-installer/amd64/initrd.gz netcfg/choose_interface=eth0 domain=seelowtec keyboard-configuration/xkb-keymap=de locale=en_US.UTF-8 debian-installer/country=DE debian-installer/language=en debian-installer/keymap=de console-keymaps-at/keymap=de auto-install/enable=false preseed/url=http://192.168.20.22/netboot/preseed.cfg DEBCONF_DEBUG=5 -- quiet

preseed

You can automat the debian installer, so all questions get answered automagically :)

Add a download url for the preseed file to the bootmenu in pxelinux.cfg/default. This can be served via nfs or web.

linux/debian_install/pxe_netboot.1480847348.txt.gz · Last modified: 2016/12/04 11:29 by tkilla