PXE // OpenBSD

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

Full sets

choose a mirror or use one of their CDNs

# BG
#remote=rsync://openbsd.ipacct.com/OpenBSD/

# CDN
#remote=rsync://mirror.leaseweb.com/openbsd/
remote=rsync://mirror.planetunix.net/OpenBSD/

mkdir -p /tftpboot/obsd6/
rsync -avz --delete-after --exclude 'x*.tgz' --exclude '*.iso' $remote/6.9/amd64/ /tftpboot/obsd6/

PXE setup

chain pxelinux.0 and pxeboot.bin toghether

ln -s pxeboot /tftpboot/obsd6/pxeboot.bin
ln -s obsd6/bsd.rd /tftpboot/bsd # boot-loader looks for `bsd` by default

vi /tftpboot/pxelinux.cfg/default

label openbsd install
    kernel obsd6/pxeboot.bin

Troubleshooting

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

Resources

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

auto-install

autoinstall — unattended OpenBSD installation and upgrade https://man.openbsd.org/autoinstall

OpenBSD automatic upgrade https://www.tumfatig.net/20190426/openbsd-automatic-upgrade/

auto-upgrade

How to apply updates on OpenBSD, NetBSD, and FreeBSD? https://unix.stackexchange.com/questions/23579/how-to-apply-updates-on-openbsd-netbsd-and-freebsd


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun