mirror of
https://github.com/auricom/home-cluster.git
synced 2025-12-26 16:56:33 +01:00
1.1 KiB
1.1 KiB
Opnsense | PXE
Setting up TFTP
- Setup TFTP and network booting on DHCPv4 server
- Create an
nginxlocation to file system/var/lib/tftpboot - Create an nginx http server listening on 30080 TCP
- Enable
dnsmasqin the Opnsense services settings (set port to63) - Copy over
pxe.confto/usr/local/etc/dnsmasq.conf.d/pxe.conf - SSH into opnsense and run the following commands...
$ mkdir -p /var/lib/tftpboot/pxelinux/
$ curl https://releases.ubuntu.com/20.04/ubuntu-20.04.4-live-server-amd64.iso -o /var/lib/tftpboot/ubuntu-20.04.4-live-server-amd64.iso
$ mount -t cd9660 /dev/`mdconfig -f /var/lib/tftpboot/ubuntu-20.04.4-live-server-amd64.iso` /mnt
$ cp /mnt/casper/vmlinuz /var/lib/tftpboot/pxelinux/
$ cp /mnt/casper/initrd /var/lib/tftpboot/pxelinux/
$ umount /mnt
$ curl http://archive.ubuntu.com/ubuntu/dists/focal/main/uefi/grub2-amd64/current/grubnetx64.efi.signed -o /var/lib/tftpboot/pxelinux/pxelinux.0
- Copy
grub/grub.confinto/var/lib/tftpboot/grub/grub.conf - Copy
nodes/into/var/lib/tftpboot/nodes
PXE boot on bare-metal servers
Press F12 key during 15-20 seconds to enter PXE IPv4 boot option