OpenBSD 6.7 Upgrade Guide
Check to see if you need to upgrade your OS. To find out your operating system version, type:
uname -a. If it says
OpenBSD fruit.ircnow.org 6.6 GENERIC#6 amd64, you need to upgrade to 6.7 using this guide. If it says
OpenBSD fruit.ircnow.org 6.7 GENERIC.MP#98 amd64, you can follow this guide to repair your OS, or you can follow the Sysupgrade 6.8 or the Upgrade 6.8 guides to upgrade.
- Make sure to back up any files. Use dump and restore.
- Make sure to notify all your users in advance that there will be downtime during the upgrade.
- You will need a way to view the serial console. If you are using VMM, you can view it using the serial console?. If you are using BuyVM, you should use VNC. Make sure to have the serial console open so you can interrupt the normal bootup process during the upgrade.
- First, download bsd.rd and the SHA256 signature file from an OpenBSD mirror.
- Verify the signature, replace /bsd.rd with the new bsd.rd, then reboot:
$ ftp https://ftp.openbsd.org/pub/OpenBSD/6.7/amd64/bsd.rd $ ftp https://ftp.openbsd.org/pub/OpenBSD/6.7/amd64/SHA256.sig $ signify -C -p /etc/signify/openbsd-67-base.pub -x SHA256.sig bsd.rd $ doas cp bsd.rd /bsd.rd $ doas shutdown -r now
NOTE: You must type something within 3 seconds or else bootup will continue automatically. If bootup does happen automatically, login and reboot by typing
doas shutdown -r now.
- At the serial console (either cu or VNC), before automatic bootup, type
- If you did everything correctly, you should see OpenBSD 6.7 (RAMDISK_CD) in the boot screen. If you see OpenBSD 6.6, you did not follow the above steps correctly.
- Type u for (U)pgrade. Upgrading will allow you to install OpenBSD 6.7. You can use this to either upgrade from 6.6 or to repair an existing 6.7 system.
- Press enter for vt220.
- To check which root disk, press ? for details. NOTE: Be careful to install to the correct disk.
- There is no probably need to force check clean non-root filesystems, so just press enter.
- You can get the base sets from cd (ISO), disk (such as USB flash drive), or http. For this tutorial, we will use http.
- For this tutorial, we will not use a proxy. Press enter for none.
- For the HTTP server, press ? to show a list of servers. Choose the one closest to your location.
- Leave the server directory as pub/OpenBSD/6.7/amd64 and press enter.
- Install all the sets. It is not possible to install missing sets using pkg_add?; you will be required to re-run the installer. So, we don't recommend skipping any sets. Missing sets may cause issues later.
- If downloading sets over http, make sure that the SHA256.sig file is verified.
- Press enter for done.
- Press enter to reboot.
- NOTE: If you booted from ISO, flash drive, or some other external install media, you will need to make sure that the bootloader boots from the proper hard disk. If you're using BuyVM, see the BuyVM User Guide for how to switch the default boot order.
- The system will automatically boot OpenBSD 6.7.
- You will see a list of patches that need to be installed and conf files that need to be updated.
- At this point, you can now use ssh? to log in.
- Make sure to read and fix any error messages that you may see.
- To check if installation succeeded:
$ uname -a OpenBSD fruit.ircnow.org 6.7 GENERIC#179 amd64
- To check if you have the proper amount of RAM and number of cores, run top?.
- You will want to patch the system:
$ doas syspatch
- Then, you'll want to run sysmerge to merge any configuration files:
$ doas sysmerge
- Then, make sure to upgrade your packages:
$ doas pkg_add -u
- You may optionally install any firmware by running fw_update?:
$ doas fw_update -a
- This is not advised, however, because some of the firmware may be proprietary.
- You will want to reboot after installing patches:
$ doas shutdown -r now