OpenBSD 6.8 Upgrade Guide

This is an upgrade guide for OpenBSD 6.8 using bsd.rd. It assumes you have OpenBSD 6.7 or 6.8 installed and working networking. It can be used to repair OpenBSD 6.7 or 6.8.

NOTE: This guide is no substitute for reading the OpenBSD FAQ. In particular, you should read the 6.8 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.7 GENERIC#6 amd64, you can upgrade to 6.8 using this guide. If it says OpenBSD fruit.ircnow.org 6.8 GENERIC.MP#98 amd64, you can follow this guide to repair your OS. Otherwise, there is no need to upgrade.

  1. Make sure to back up any files. Use dump and restore?.
  2. Make sure to notify all your users in advance that there will be downtime during the upgrade.
  3. 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.
  4. First, download bsd.rd and the SHA256 signature file from an OpenBSD mirror.
  5. Verify the signature, replace /bsd.rd with the new bsd.rd, then reboot:
    $ ftp https://ftp.openbsd.org/pub/OpenBSD/6.8/amd64/bsd.rd
    $ ftp https://ftp.openbsd.org/pub/OpenBSD/6.8/amd64/SHA256.sig
    $ signify -C -p /etc/signify/openbsd-68-base.pub -x SHA256.sig bsd.rd
    $ doas cp bsd.rd /bsd.rd
    $ doas shutdown -r now
    

    Attach:upgrade68-1.png
    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.
  6. At the serial console (either cu or VNC), before automatic bootup, type boot /bsd.rd.
    Attach:upgrade68-2.png
  7. If you did everything correctly, you should see OpenBSD 6.8 (RAMDISK_CD) in the boot screen. If you see OpenBSD 6.7, you did not follow the above steps correctly.
    Attach:upgrade68-2b.png
  8. Type u for (U)pgrade. Upgrading will allow you to install OpenBSD 6.8. You can use this to either upgrade from 6.7 or to repair an existing 6.8 system.
    Attach:upgrade68-3.png
  9. Press enter for vt220.
  10. To check which root disk, press ? for details. NOTE: Be careful to install to the correct disk.
  11. There is no probably need to force check clean non-root filesystems, so just press enter.
    Attach:upgrade68-3b.png
  12. You can get the base sets from cd (ISO), disk (such as USB flash drive), or http. For this tutorial, we will use http.
  13. For this tutorial, we will not use a proxy. Press enter for none.
  14. For the HTTP server, press ? to show a list of servers. Choose the one closest to your location.
  15. Leave the server directory as pub/OpenBSD/6.8/amd64 and press enter.
  16. 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.
  17. If downloading sets over http, make sure that the SHA256.sig file is verified.
    Attach:upgrade68-4.png
  18. Press enter for done.
  19. Press enter to reboot.
  20. 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.
  21. The system will automatically boot OpenBSD 6.8.
    Attach:upgrade68-5.png
  22. You will see a list of patches that need to be installed and conf files that need to be updated.
  23. At this point, you can now use ssh? to log in.
  24. Make sure to read and fix any error messages that you may see.
    Attach:upgrade68-6.png
  25. To check if installation succeeded:
    $ uname -a
    OpenBSD fruit.ircnow.org 6.8 GENERIC#179 amd64
    
  26. If you see 6.7, installation did not succeed.
  27. To check if you have the proper amount of RAM and number of cores, run top?.
    Attach:upgrade68-7.png
  28. If you do not see the correct number of cores, make sure to reinstall all the base sets by following this upgrade guide from the beginning.
  29. You will want to patch the system:
    $ doas syspatch
    
  30. Then, you'll want to run sysmerge to merge any configuration files:
    $ doas sysmerge
    
  31. Then, make sure to upgrade your packages:
    $ doas pkg_add -u
    
  32. You may optionally install any firmware by running fw_update?:
    $ doas fw_update -a
    
  33. This is not advised, however, because some of the firmware may be proprietary.
  34. You will want to reboot after installing patches:
    $ doas shutdown -r now