usr/share/grub/unicode.pf2 -O > /srv/tftp/unicode.pf2Ĭreate /srv/tftp/grub/grub.cfg that contains: set default="0" # dpkg-deb -fsys-tarfile grub-common*deb | tar x. Grub also needs a font to be available over tftp: # apt download grub-common usr/lib/grub/x86_64-efi-signed/grubnet圆4.efi.signed -O > /srv/tftp/grub圆4.efi # dpkg-deb -fsys-tarfile grub-efi-amd64-signed*deb | tar x. usr/lib/shim/shim圆4.efi.signed -O > /srv/tftp/boot圆4.efiĬopy the signed grub binary into place: # apt download grub-efi-amd64-signed # dpkg-deb -fsys-tarfile shim-signed*deb | tar x. # mount /mntĬopy the kernel and initrd from it to where the dnsmasq serves tftp from: # cp /mnt/casper/ /srv/tftp/Ĭopy the signed shim binary into place: # apt download shim-signed
# ln -s /usr/share/cd-boot-images-amd64 /srv/tftp/boot-amd64ĭownload the latest live server ISO for the release you want to install: # wget
Ideally this would be something like: # apt install cd-boot-images-amd64 We need to make this section possible to write sanely Serving the bootloaders and configuration. Restart dnsmasq with sudo systemctl restart rvice. (This assumes several things about your network read man dnsmasq or the default /etc/nf for lots more options). Put something like this in /etc//pxe.conf: interface=,loĭhcp-match=set:efi-x86_64,option:client-arch,7 Install dnsmasq with “sudo apt install dnsmasq”
This document will briefly describe how to configure dnsmasq to perform both of these roles. There are several implementations of the DHCP/bootp and tftp protocols available. Most DHCP/bootp servers can be configured to serve the right bootloader to a particular machine. The difference between UEFI and legacy modes is that in UEFI mode the bootloader is a EFI executable, signed so that is accepted by SecureBoot, and in legacy mode it is PXELINUX. From this point on the install follows the same path as if the ISO was on a local block device.The ramdisk downloads the ISO and mounts it as a loop device.The ramdisk looks at the kernel command line to learn how to configure the network and where to download the server ISO from.The bootloader downloads configuration, also over tftp, telling it where to download the kernel, ramdisk and kernel command line to use.The machine’s firmware downloads the bootloader over tftp and executes it.The DHCP/bootp server tells the machine its network configuration and where to get the bootloader.