Skip to main content

pxe

apt install syslinux pxelinux tftpd-hpa nfs-kernel-server -y
vim /etc/default/tftpd-hpa
TFTP_OPTIONS="--secure --ipv4"
mkdir --p /netboot/tftp/pxelinux.cfg
mkdir -p /netboot/nfs/
vim /etc/exports
/netboot/nfs/  *(ro,sync,no_wdelay,insecure_locks,no_root_squash,insecure,no_subtree_check)
exportfs -a
cp -v /usr/lib/PXELINUX/pxelinux.0 /netboot/tftp/
cp -v  /usr/lib/syslinux/modules/bios/{ldlinux.c32,libcom32.c32,libutil.c32,vesamenu.c32} /netboot/tftp/
touch /netboot/tftp/pxelinux.cfg/default
vim /netboot/tfpt/pxelinux.cfg/default
DEFAULT vesamenu.c32
PROMPT 0
TIMEOUT 300
MENU TITLE PXE Network Boot Menu
LABEL local
MENU LABEL Von Festplatte starten
MENU DEFAULT
LOCALBOOT 0
LABEL memtest
MENU LABEL Speichertest mit memtest86+ v4.20
KERNEL memtest
wget http://releases.ubuntu.com/18.04/ubuntu-18.04.3-desktop-amd64.iso
mount -o loop ubuntu-18.04.2-desktop-amd64.iso /mnt
mkdir -v /netboot/{nfs,tftp}/ubuntu1804
cp -Rfv /mnt/* /netboot/nfs/ubuntu1804/
cp -v  /usr/lib/syslinux/modules/bios/{vmlinuz,initrd} /netboot/tftp/ubuntu1804/