PXEing OpenBSD

See PXE Setup for overall instructions. This is OpenBSD specific.

Find a mirror and e.g.

mkdir -p /tftpboot/obsd6/
#rsync -avz --delete-after --exclude 'x*.tgz' rsync://openbsd.ipacct.com/OpenBSD/6.5/i386/ /tftpboot/obsd6/i386/
rsync -avz --delete-after --exclude 'x*.tgz' rsync://openbsd.ipacct.com/OpenBSD/6.5/amd64/ /tftpboot/obsd6/amd64/

Chaining pxelinux.0 and pxeboot.bin toghether.

cd /tftpboot/
#ln -sf obsd6/i386/pxeboot pxeboot.bin
ln -sf obsd6/amd64/pxeboot pxeboot.bin
ln -sf obsd6/amd64/bsd.rd
ln -sf bsd.rd bsd
vi /tftpboot/pxelinux.cfg/default

label openbsd install
    kernel pxeboot.bin


while chainloading from pxelinux to both x32 and x86 pxeboots

Invalid or corrput kernel image.

==> rename the pxe loader so it ends with .0 or .bin


pxeboot — amd64-specific second-stage PXE bootstrap https://man.openbsd.org/pxeboot.8

Booting OpenBSD installation from PXELINUX https://blog.narf.ssji.net/2013/06/pxelinux_openbsd_install/

[CentOS] Booting OpenBSD with pxelinux https://lists.centos.org/pipermail/centos/2014-March/141831.html

How to create a network bootable installer https://www.fefe.de/netboot/how-to-netboot-installer.html