Upgrade OpenBSD remotely
Upgrade server with no CD drive
This mini guide explain how to update an OpenBSD server with no CD reader. You still need to access the server during boot to change the boot kernel.
- Copy contents of upgrade CD to HD via e.g. scp. It is suggested to organize the
4.x
folder directly under root as this is default during installation. - Reboot from new
bsd.rd
kernel. - Run through the normal upgrade process.
- Update installed packages.
- Upgrade config files (under '/etc') that have been outdated
Roughly this means running the following commands.
scp -r /Volumes/OpenBSD4.4/4.4 root@192.168.0.104:/
ssh root@192.168.0.4
reboot
boot wd0a:/4.4/i386/bsd.rd (at boot prompt)
export PKG_PATH=ftp://ftp.sunet.se/pub/OpenBSD/4.4/packages/i386
pkg_add -ui -F update -F updatedepends
See 4.5 Upgrade FAQ for an examle of how configuration files may be upgraded. In some cases the system will work perfectly without any changes in configuration.
Upgrade headless server remotely
To do remote upgrade requires that you are connected to the server via a serial port console. This enables you to reboot the machine and access the boot promt after reboot. Several guides exists where this setup is explained.
There are also special builds of OpenBSD which enables remote update via SSH e.g. Yaifo.
- Remote Upgrade via Serial Console
- Yaifo - Remote installation via SSH
- OpenBSD 4.2 Remote Upgrade - Remote installation when server is connected to a serial console.
Install OpenBSD via USB stick
- Create a bootable USB stick as described in Flash memory as bootable storage
- Store install files on the bootable USB disk as described in Creating bootable OpenBSD install media
See [Bootable Installation From USB Flash Sticks] (http://www.undeadly.org/cgi?action=article&sid=20100404103735) for a more thorough description.