Blob


1 version=pmwiki-2.3.20 ordered=1 urlencoded=1
2 agent=w3m/0.5.3+git20230121
3 author=jrmu
4 charset=UTF-8
5 csum=
6 ctime=1700284281
7 host=38.87.162.8
8 name=Openbsd.Upgrade74
9 rev=10
10 targets=Openbsd.Bsdrd,Openbsd.Sysupgrade74,Openbsd.Dump,Openbsd.Restore,Vmctl.Usage,Openbsd.Cu,Openbsd.Buyvm,Openbsd.Pkgadd,OpenSSH.Connect,Openbsd.Top,Openbsd.Syspatch,Openbsd.Fwupdate
11 text=(:title OpenBSD 7.4 Upgrade Guide:)%0a%25define=note block bgcolor=lightblue color=black margin-right=5em margin-left=5em padding=1em overflow=auto %25%0a%25define=info block bgcolor=lightgrey color=black margin-right=5em margin-left=5em padding=1em overflow=auto %25%0a%25define=warn block bgcolor=yellow color=black margin-right=5em margin-left=5em padding=1em overflow=auto %25%0a%25define=alert block bgcolor=lightpink color=black margin-right=5em margin-left=5em padding=1em overflow=auto %25%0a%0aThis is an upgrade guide for [[https://openbsd.org/74.html|OpenBSD 7.4]] using [[openbsd/bsdrd|bsd.rd]]. It assumes you have OpenBSD 7.3 installed and working networking. It can also be used to repair OpenBSD 7.4.%0a%0a%25info%25This guide was written for upgrading openbsd 7.3 to 7.4, but the same idea can be used for upgrading the versions thereafter. Upgrades must be done one version at a time, so upgrading from 7.2 to 7.4 would require upgrading first to 7.3, then to 7.4.%0a%0a%25note%25'''NOTE''': This guide is '''no''' substitute for reading the [[https://www.openbsd.org/faq/|OpenBSD FAQ]]. In particular, you should read the [[https://www.openbsd.org/faq/upgrade74.html|7.4 Upgrade Guide]].%0a%0a%25alert%25'''ALSO SEE''': [[Openbsd/Sysupgrade74|Sysupgrade]] is an easier, mostly unattended upgrade process. %0a%0aCheck to see if you need to upgrade your OS. To find out your operating system version, type: @@uname -a@@. If it says @@OpenBSD example.com 7.3 GENERIC#1336 amd64@@, you can upgrade to 7.4 using this guide. If it says @@OpenBSD example.com 7.4 GENERIC#1336 amd64@@, you can follow this guide to repair your OS.%0a%0a# Make sure to back up any files. Use [[Openbsd/dump|dump]] and [[Openbsd/restore|restore]].%0a# Make sure to notify all your users in advance that there will be downtime during the upgrade.%0a# You will need a way to view the serial console. If you are using [[Vmctl/Usage|VMM]], you can view it using the [[Openbsd/cu|serial console]]. If you are using [[Openbsd/Buyvm|BuyVM]], you should use VNC. Make sure to have the serial console open so you can interrupt the normal bootup process during the upgrade.%0a# First, download bsd.rd and the SHA256 signature file from an [[https://openbsd.org/ftp.html|OpenBSD mirror]].%0a# Verify the signature, replace /bsd.rd with the new bsd.rd, then reboot:\\%0a[@%0a$ ftp https://ftp.openbsd.org/pub/OpenBSD/7.4/amd64/bsd.rd%0a$ ftp https://ftp.openbsd.org/pub/OpenBSD/7.4/amd64/SHA256.sig%0a$ signify -C -p /etc/signify/openbsd-74-base.pub -x SHA256.sig bsd.rd%0a$ doas cp bsd.rd /bsd.rd%0a$ doas shutdown -r now%0a@]%0a# You'll reboot:%0a[@%0a*** FINAL System shutdown message from jrmu@jrmu2.host.ircnow.org *** %0aSystem going down IMMEDIATELY %0aSystem shutdown time has arrived%0a@]%0a# After the reboot, you must immediately boot from bsd.rd:%0a[@%0aUsing drive 0, partition 3.%0aLoading......%0aprobing: pc0 com0 mem[638K 2046M a20=on] %0adisk: hd0+%0a>> OpenBSD/amd64 BOOT 3.55%0a\%0acom0: 115200 baud%0aswitching console to com0%0a>> OpenBSD/amd64 BOOT 3.55%0aboot> boot /bsd.rd%0a@]%0a'''NOTE''': You must type something before the timeout (default 5 seconds, 30 seconds if you changed above) or else bootup will continue automatically. If bootup does happen automatically, login and reboot by typing @@doas shutdown -r now@@.%0a# At the serial console (either cu or VNC), before automatic bootup, type @@boot /bsd.rd@@.\\%0a# If you did everything correctly, you should see OpenBSD 7.4 (RAMDISK_CD) in the boot screen. If you see OpenBSD 7.3, you did not follow the above steps correctly.\\%0a[@%0abooting hd0a:/bsd.rd: 3969732+1655808+3886664+0+708608 [109+444888+297417]=0xa76798%0aentry point at 0xffffffff81001000%0aCopyright (c) 1982, 1986, 1989, 1991, 1993%0a The Regents of the University of California. All rights reserved.%0aCopyright (c) 1995-2023 OpenBSD. All rights reserved. https://www.OpenBSD.org%0a%0aOpenBSD 7.4 (RAMDISK_CD) #1322: Tue Oct 10 09:07:38 MDT 2023%0a...%0aroot on rd0a swap on rd0b dump on rd0b%0aWARNING: CHECK AND RESET THE DATE!%0aerase ^?, werase ^W, kill ^U, intr ^C, status ^T%0a%0aWelcome to the OpenBSD/amd64 7.4 installation program.%0a(I)nstall, (U)pgrade, (A)utoinstall or (S)hell? %0a@]%0a# Type u for (U)pgrade. Upgrading will allow you to install OpenBSD 7.4. You can use this to either upgrade from 7.3 or to repair an existing 7.4 system.\\%0a[@%0aAt any prompt except password prompts you can escape to a shell by%0atyping '!'. Default answers are shown in []'s and are selected by%0apressing RETURN. You can exit this program at any time by pressing%0aControl-C, but this can leave your system in an inconsistent state.%0a%0aTerminal type? [vt220]%0a@]%0a# Press enter for vt220.%0a[@%0aAvailable disks are: sd0.%0aWhich disk is the root disk? ('?' for details) [sd0]%0a@]%0a# To check which root disk, press ? for details. '''NOTE''': Be careful to install to the correct disk.%0a[@%0aChecking root filesystem (fsck -fp /dev/sd0a)... OK.%0aMounting root filesystem (mount -o ro /dev/sd0a /mnt)... OK.%0aForce checking of clean non-root filesystems? [no]%0a@]%0a# There is no probably need to force check clean non-root filesystems, so just press enter.\\%0a[@%0aLet's upgrade the sets!%0aLocation of sets? (cd0 disk http nfs or 'done') [http]%0a@]%0a# You can get the base sets from cd (ISO), disk (such as USB flash drive), or http. For this tutorial, we will use http.%0a[@%0aHTTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none]%0aHTTP Server? (hostname, list#, 'done' or '?') [cdn.openbsd.org] ftp.openbsd.org%0aServer directory? [pub/OpenBSD/7.4/amd64]%0a%0aSelect sets by entering a set name, a file name pattern or 'all'. De-select%0asets by prepending a '-', e.g.: '-game*'. Selected sets are labelled '[X]'.%0a [X] bsd [X] comp74.tgz [X] xbase74.tgz [X] xserv74.tgz%0a [X] bsd.rd [X] man74.tgz [X] xshare74.tgz%0a [X] base74.tgz [X] game74.tgz [X] xfont74.tgz%0aSet name(s)? (or 'abort' or 'done') [done]%0a@]%0a# For this tutorial, we will not use a proxy. Press enter for none.%0a# For the HTTP server, press ? to show a list of servers. Choose the one closest to your location.%0a# Leave the server directory as pub/OpenBSD/7.4/amd64 and press enter.%0a# It's recommended you install all the sets. It is not possible to install missing sets using [[openbsd/pkgadd|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.%0a# In the [[https://www.openbsd.org/faq/faq4.html|OpenBSD FAQ]]:%0a -> New users are recommended to install all of them.%0a -> Some libraries from xbase74.tgz, like freetype or fontconfig, can be used outside of X by programs that manipulate text or graphics. Such programs will usually need fonts, either from xfont74.tgz or font packages. For the sake of simplicity, the developers decided against maintaining a minimal xbase74.tgz set that would allow most non-X ports to run.%0a# The X sets are often needed even if you don't run X. If you skip it now, you may later need to reboot the server and run [[openbsd/bsdrd|bsd.rd]] to upgrade the installation. This would require downtime. The X packages are only a few hundred megabytes and present minimal security risk so long as X is disabled.%0a# If downloading sets over http, make sure that the SHA256.sig file is verified.\\%0a[@%0aGet/Verify SHA256.sig 0%25 | | 0 --:--%0aGet/Verify SHA256.sig 100%25 |**************************| 2144 00:00%0aSignature Verified%0a...%0aInstalling xserv74.tgz 0%25 | | 0 --:--%0aInstalling xserv74.tgz 73%25 |****************** | 11008 KB 00:00%0aInstalling xserv74.tgz 100%25 |**************************| 14951 KB 00:01%0a%0aLocation of sets? (cd0 disk http nfs or 'done') [done]%0a@]%0a# Press enter for done.%0a[@%0aCONGRATULATIONS! Your OpenBSD upgrade has been successfully completed!%0a%0aExit to (S)hell, (H)alt or (R)eboot? [reboot]%0a@]%0a# Press enter to reboot.%0a# '''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 [[Openbsd/Buyvm|BuyVM User Guide]] for how to switch the default boot order.%0a# The system will automatically boot OpenBSD 7.4.\\%0a[@%0a>> OpenBSD/amd64 BOOT 3.65%0aboot>%0abooting hd0a:/bsd: 17159500+4137992+360384+0+1236992 [1337557+128+1317840+1011174]=0x1956710%0aentry point at 0xffffffff81001000%0a[ using 3667728 bytes of bsd ELF symbol table ]%0aCopyright (c) 1982, 1986, 1989, 1991, 1993%0a The Regents of the University of California. All rights reserved.%0aCopyright (c) 1995-2023 OpenBSD. All rights reserved. https://www.OpenBSD.org%0a%0aOpenBSD 7.4 (GENERIC) #1336: Tue Oct 10 08:52:22 MDT 2023%0a@]%0a# You will see a list of patches that need to be installed and conf files that need to be updated.\\%0a[@%0a...%0arunning rc.sysmerge%0a===> Adding the _shutdown group%0a===> Updating /etc/changelist%0a===> Updating /etc/ssh/ssh_config%0a===> Updating /etc/ssl/cert.pem%0astarting network daemons: sshd smtpd sndiod.%0arunning rc.firsttime%0afw_update: add none; update none; keep intel%0aChecking for available binary patches...%0aRun syspatch(8) to install:%0a001_xserver 002_msplit%0astarting local daemons: cron.%0aSat Nov 18 00:18:16 CST 2023%0a%0aOpenBSD/amd64 (example.com) (tty00)%0a%0alogin:%0a@]%0a# At this point, you can now use [[OpenSSH/Connect|ssh]] to log in.%0a# Make sure to read and fix any error messages that you may see.%0a# To check if installation succeeded:\\%0a[@%0a$ uname -a%0aOpenBSD example.com 7.4 GENERIC#1336 amd64%0a@]%0a# If you see 7.3, installation did not succeed.%0a# To check if you have the proper amount of RAM and number of cores, run [[openbsd/top|top]].\\%0a[@%0aload averages: 0.28, 0.18, 0.11 example.com 01:29:21%0a95 processes: 94 idle, 1 on processor up 0 days 00:12:10%0aCPU0: 3.3%25 user, 0.0%25 nice, 1.5%25 sys, 0.1%25 spin, 0.4%25 intr, 94.7%25 idle%0aCPU1: 2.8%25 user, 0.0%25 nice, 1.5%25 sys, 0.1%25 spin, 0.0%25 intr, 95.6%25 idle%0aMemory: Real: 666M/1204M act/tot Free: 756M Cache: 387M Swap: 0K/2288M%0a@]%0a# 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.%0a# You will want to [[Openbsd/syspatch|patch]] the system:\\%0a[@%0a$ doas syspatch%0a@]%0a# Then, you'll want to run [[https://man.openbsd.org/sysmerge|sysmerge]] to merge any configuration files:\\%0a[@%0a$ doas sysmerge%0a@]%0a# Then, make sure to upgrade your packages:\\%0a[@%0a$ doas pkg_add -u%0a@]%0a# You may optionally install any firmware by running [[openbsd/fwupdate|fw_update]]:\\%0a[@%0a$ doas fw_update -a%0a@]%0a# This is not advised, however, because some of the firmware may be proprietary.%0a# You may want to reboot after installing patches:\\%0a[@%0a$ doas shutdown -r now%0a@]%0a
12 time=1703797535
13 title=OpenBSD 7.4 Upgrade Guide
14 author:1703797535=jrmu
15 diff:1703797535:1703794487:=26a27,35%0a> @]%0a> %0a> ''Optional:'' To give yourself more time to choose a different kernel at bootup time:%0a> %0a> [@%0a> # echo "set timeout 30" >> /etc/boot.conf%0a> @]%0a> %0a> [@%0a
16 host:1703797535=38.87.162.8
17 author:1703794487=jrmu
18 diff:1703794487:1700289069:=26a27%0a> $ doas shutdown -r now%0a28,30c29%0a%3c %0a%3c ''Optional:'' To give yourself more time to choose a different kernel at bootup time:%0a%3c %0a---%0a> # You'll reboot:%0a32c31,33%0a%3c # echo "set timeout 30" >> /etc/boot.conf%0a---%0a> *** FINAL System shutdown message from jrmu@jrmu2.host.ircnow.org *** %0a> System going down IMMEDIATELY %0a> System shutdown time has arrived%0a34c35%0a%3c %0a---%0a> # After the reboot, you must immediately boot from bsd.rd:%0a36,45d36%0a%3c $ doas shutdown -r now%0a%3c @]%0a%3c # You'll reboot:%0a%3c [@%0a%3c *** FINAL System shutdown message from jrmu@jrmu2.host.ircnow.org *** %0a%3c System going down IMMEDIATELY %0a%3c System shutdown time has arrived%0a%3c @]%0a%3c # After the reboot, you must immediately boot from bsd.rd:%0a%3c [@%0a57c48%0a%3c '''NOTE''': You must type something before the timeout (default 5 seconds, 30 seconds if you changed above) or else bootup will continue automatically. If bootup does happen automatically, login and reboot by typing @@doas shutdown -r now@@.%0a---%0a> '''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@@.%0a
19 host:1703794487=38.87.162.8
20 author:1700289069=jrmu
21 diff:1700289069:1700288437:=15,16c15,16%0a%3c Check to see if you need to upgrade your OS. To find out your operating system version, type: @@uname -a@@. If it says @@OpenBSD example.com 7.3 GENERIC#1336 amd64@@, you can upgrade to 7.4 using this guide. If it says @@OpenBSD example.com 7.4 GENERIC#1336 amd64@@, you can follow this guide to repair your OS.%0a%3c %0a---%0a> Check to see if you need to upgrade your OS. To find out your operating system version, type: @@uname -a@@. If it says @@OpenBSD example.com 7.3 GENERIC#6 amd64@@, you can upgrade to 7.4 using this guide. If it says @@OpenBSD example.com 7.4 GENERIC#6 amd64@@, you can follow this guide to repair your OS.%0a> %0a146c146,150%0a%3c # You will see a list of patches that need to be installed and conf files that need to be updated.\\%0a---%0a> # You will see a list of patches that need to be installed and conf files that need to be updated.%0a> # At this point, you can now use [[openbsd/ssh|ssh]] to log in.%0a> # Make sure to read and fix any error messages that you may see.\\%0a> Attach:upgrade68-6.png%0a> # To check if installation succeeded:\\%0a148,165c152,153%0a%3c ...%0a%3c running rc.sysmerge%0a%3c ===> Adding the _shutdown group%0a%3c ===> Updating /etc/changelist%0a%3c ===> Updating /etc/ssh/ssh_config%0a%3c ===> Updating /etc/ssl/cert.pem%0a%3c starting network daemons: sshd smtpd sndiod.%0a%3c running rc.firsttime%0a%3c fw_update: add none; update none; keep intel%0a%3c Checking for available binary patches...%0a%3c Run syspatch(8) to install:%0a%3c 001_xserver 002_msplit%0a%3c starting local daemons: cron.%0a%3c Sat Nov 18 00:18:16 CST 2023%0a%3c %0a%3c OpenBSD/amd64 (example.com) (tty00)%0a%3c %0a%3c login:%0a---%0a> $ uname -a%0a> OpenBSD fruit.ircnow.org 6.8 GENERIC#179 amd64%0a167,169c155,159%0a%3c # At this point, you can now use [[OpenSSH/Connect|ssh]] to log in.%0a%3c # Make sure to read and fix any error messages that you may see.%0a%3c # To check if installation succeeded:\\%0a---%0a> # If you see 6.7, installation did not succeed.%0a> # To check if you have the proper amount of RAM and number of cores, run [[openbsd/top|top]].\\%0a> Attach:upgrade68-7.png%0a> # 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.%0a> # You will want to [[Openbsd/syspatch|patch]] the system:\\%0a171,172c161%0a%3c $ uname -a%0a%3c OpenBSD example.com 7.4 GENERIC#1336 amd64%0a---%0a> $ doas syspatch%0a174,175c163%0a%3c # If you see 7.3, installation did not succeed.%0a%3c # To check if you have the proper amount of RAM and number of cores, run [[openbsd/top|top]].\\%0a---%0a> # Then, you'll want to run [[https://man.openbsd.org/sysmerge|sysmerge]] to merge any configuration files:\\%0a177,181c165%0a%3c load averages: 0.28, 0.18, 0.11 example.com 01:29:21%0a%3c 95 processes: 94 idle, 1 on processor up 0 days 00:12:10%0a%3c CPU0: 3.3%25 user, 0.0%25 nice, 1.5%25 sys, 0.1%25 spin, 0.4%25 intr, 94.7%25 idle%0a%3c CPU1: 2.8%25 user, 0.0%25 nice, 1.5%25 sys, 0.1%25 spin, 0.0%25 intr, 95.6%25 idle%0a%3c Memory: Real: 666M/1204M act/tot Free: 756M Cache: 387M Swap: 0K/2288M%0a---%0a> $ doas sysmerge%0a183,184c167%0a%3c # 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.%0a%3c # You will want to [[Openbsd/syspatch|patch]] the system:\\%0a---%0a> # Then, make sure to upgrade your packages:\\%0a186c169%0a%3c $ doas syspatch%0a---%0a> $ doas pkg_add -u%0a188c171%0a%3c # Then, you'll want to run [[https://man.openbsd.org/sysmerge|sysmerge]] to merge any configuration files:\\%0a---%0a> # You may optionally install any firmware by running [[openbsd/fwupdate|fw_update]]:\\%0a190c173%0a%3c $ doas sysmerge%0a---%0a> $ doas fw_update -a%0a192,201c175,176%0a%3c # Then, make sure to upgrade your packages:\\%0a%3c [@%0a%3c $ doas pkg_add -u%0a%3c @]%0a%3c # You may optionally install any firmware by running [[openbsd/fwupdate|fw_update]]:\\%0a%3c [@%0a%3c $ doas fw_update -a%0a%3c @]%0a%3c # This is not advised, however, because some of the firmware may be proprietary.%0a%3c # You may want to reboot after installing patches:\\%0a---%0a> # This is not advised, however, because some of the firmware may be proprietary.%0a> # You will want to reboot after installing patches:\\%0a
22 host:1700289069=38.87.162.8
23 author:1700288437=jrmu
24 diff:1700288437:1700287536:=108,112c108%0a%3c # It's recommended you install all the sets. It is not possible to install missing sets using [[openbsd/pkgadd|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.%0a%3c # In the [[https://www.openbsd.org/faq/faq4.html|OpenBSD FAQ]]:%0a%3c -> New users are recommended to install all of them.%0a%3c -> Some libraries from xbase74.tgz, like freetype or fontconfig, can be used outside of X by programs that manipulate text or graphics. Such programs will usually need fonts, either from xfont74.tgz or font packages. For the sake of simplicity, the developers decided against maintaining a minimal xbase74.tgz set that would allow most non-X ports to run.%0a%3c # The X sets are often needed even if you don't run X. If you skip it now, you may later need to reboot the server and run [[openbsd/bsdrd|bsd.rd]] to upgrade the installation. This would require downtime. The X packages are only a few hundred megabytes and present minimal security risk so long as X is disabled.%0a---%0a> # Install all the sets. It is not possible to install missing sets using [[openbsd/pkgadd|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.%0a114,124c110%0a%3c [@%0a%3c Get/Verify SHA256.sig 0%25 | | 0 --:--%0a%3c Get/Verify SHA256.sig 100%25 |**************************| 2144 00:00%0a%3c Signature Verified%0a%3c ...%0a%3c Installing xserv74.tgz 0%25 | | 0 --:--%0a%3c Installing xserv74.tgz 73%25 |****************** | 11008 KB 00:00%0a%3c Installing xserv74.tgz 100%25 |**************************| 14951 KB 00:01%0a%3c %0a%3c Location of sets? (cd0 disk http nfs or 'done') [done]%0a%3c @]%0a---%0a> Attach:upgrade68-4.png%0a126,130d111%0a%3c [@%0a%3c CONGRATULATIONS! Your OpenBSD upgrade has been successfully completed!%0a%3c %0a%3c Exit to (S)hell, (H)alt or (R)eboot? [reboot]%0a%3c @]%0a133,145c114,115%0a%3c # The system will automatically boot OpenBSD 7.4.\\%0a%3c [@%0a%3c >> OpenBSD/amd64 BOOT 3.65%0a%3c boot>%0a%3c booting hd0a:/bsd: 17159500+4137992+360384+0+1236992 [1337557+128+1317840+1011174]=0x1956710%0a%3c entry point at 0xffffffff81001000%0a%3c [ using 3667728 bytes of bsd ELF symbol table ]%0a%3c Copyright (c) 1982, 1986, 1989, 1991, 1993%0a%3c The Regents of the University of California. All rights reserved.%0a%3c Copyright (c) 1995-2023 OpenBSD. All rights reserved. https://www.OpenBSD.org%0a%3c %0a%3c OpenBSD 7.4 (GENERIC) #1336: Tue Oct 10 08:52:22 MDT 2023%0a%3c @]%0a---%0a> # The system will automatically boot OpenBSD 6.8.\\%0a> Attach:upgrade68-5.png%0a
25 host:1700288437=38.87.162.8
26 author:1700287536=jrmu
27 diff:1700287536:1700285425:=15,16c15,16%0a%3c Check to see if you need to upgrade your OS. To find out your operating system version, type: @@uname -a@@. If it says @@OpenBSD example.com 7.3 GENERIC#6 amd64@@, you can upgrade to 7.4 using this guide. If it says @@OpenBSD example.com 7.4 GENERIC#6 amd64@@, you can follow this guide to repair your OS.%0a%3c %0a---%0a> Check to see if you need to upgrade your OS. To find out your operating system version, type: @@uname -a@@. If it says @@OpenBSD example.com 7.3 GENERIC#6 amd64@@, you can upgrade to 7.4 using this guide. If it says @@OpenBSD example.com 7.4 GENERIC.MP#98 amd64@@, you can follow this guide to repair your OS.%0a> %0a19c19%0a%3c # You will need a way to view the serial console. If you are using [[Vmctl/Usage|VMM]], you can view it using the [[Openbsd/cu|serial console]]. If you are using [[Openbsd/Buyvm|BuyVM]], you should use VNC. Make sure to have the serial console open so you can interrupt the normal bootup process during the upgrade.%0a---%0a> # You will need a way to view the serial console. If you are using [[Openbsd/Vmmuser|VMM]], you can view it using the [[Openbsd/cu|serial console]]. If you are using [[Openbsd/Buyvm|BuyVM]], you should use VNC. Make sure to have the serial console open so you can interrupt the normal bootup process during the upgrade.%0a23,25c23,25%0a%3c $ ftp https://ftp.openbsd.org/pub/OpenBSD/7.4/amd64/bsd.rd%0a%3c $ ftp https://ftp.openbsd.org/pub/OpenBSD/7.4/amd64/SHA256.sig%0a%3c $ signify -C -p /etc/signify/openbsd-74-base.pub -x SHA256.sig bsd.rd%0a---%0a> $ ftp https://ftp.openbsd.org/pub/OpenBSD/6.8/amd64/bsd.rd%0a> $ ftp https://ftp.openbsd.org/pub/OpenBSD/6.8/amd64/SHA256.sig%0a> $ signify -C -p /etc/signify/openbsd-68-base.pub -x SHA256.sig bsd.rd%0a28,47c28,29%0a%3c @]%0a%3c # You'll reboot:%0a%3c [@%0a%3c *** FINAL System shutdown message from jrmu@jrmu2.host.ircnow.org *** %0a%3c System going down IMMEDIATELY %0a%3c System shutdown time has arrived%0a%3c @]%0a%3c # After the reboot, you must immediately boot from bsd.rd:%0a%3c [@%0a%3c Using drive 0, partition 3.%0a%3c Loading......%0a%3c probing: pc0 com0 mem[638K 2046M a20=on] %0a%3c disk: hd0+%0a%3c >> OpenBSD/amd64 BOOT 3.55%0a%3c \%0a%3c com0: 115200 baud%0a%3c switching console to com0%0a%3c >> OpenBSD/amd64 BOOT 3.55%0a%3c boot> boot /bsd.rd%0a%3c @]%0a---%0a> @]\\%0a> Attach:upgrade68-1.png\\%0a50,75c32,36%0a%3c # If you did everything correctly, you should see OpenBSD 7.4 (RAMDISK_CD) in the boot screen. If you see OpenBSD 7.3, you did not follow the above steps correctly.\\%0a%3c [@%0a%3c booting hd0a:/bsd.rd: 3969732+1655808+3886664+0+708608 [109+444888+297417]=0xa76798%0a%3c entry point at 0xffffffff81001000%0a%3c Copyright (c) 1982, 1986, 1989, 1991, 1993%0a%3c The Regents of the University of California. All rights reserved.%0a%3c Copyright (c) 1995-2023 OpenBSD. All rights reserved. https://www.OpenBSD.org%0a%3c %0a%3c OpenBSD 7.4 (RAMDISK_CD) #1322: Tue Oct 10 09:07:38 MDT 2023%0a%3c ...%0a%3c root on rd0a swap on rd0b dump on rd0b%0a%3c WARNING: CHECK AND RESET THE DATE!%0a%3c erase ^?, werase ^W, kill ^U, intr ^C, status ^T%0a%3c %0a%3c Welcome to the OpenBSD/amd64 7.4 installation program.%0a%3c (I)nstall, (U)pgrade, (A)utoinstall or (S)hell? %0a%3c @]%0a%3c # Type u for (U)pgrade. Upgrading will allow you to install OpenBSD 7.4. You can use this to either upgrade from 7.3 or to repair an existing 7.4 system.\\%0a%3c [@%0a%3c At any prompt except password prompts you can escape to a shell by%0a%3c typing '!'. Default answers are shown in []'s and are selected by%0a%3c pressing RETURN. You can exit this program at any time by pressing%0a%3c Control-C, but this can leave your system in an inconsistent state.%0a%3c %0a%3c Terminal type? [vt220]%0a%3c @]%0a---%0a> Attach:upgrade68-2.png%0a> # 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.\\%0a> Attach:upgrade68-2b.png%0a> # 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.\\%0a> Attach:upgrade68-3.png%0a77,80d37%0a%3c [@%0a%3c Available disks are: sd0.%0a%3c Which disk is the root disk? ('?' for details) [sd0]%0a%3c @]%0a82,86d38%0a%3c [@%0a%3c Checking root filesystem (fsck -fp /dev/sd0a)... OK.%0a%3c Mounting root filesystem (mount -o ro /dev/sd0a /mnt)... OK.%0a%3c Force checking of clean non-root filesystems? [no]%0a%3c @]%0a88,91c40%0a%3c [@%0a%3c Let's upgrade the sets!%0a%3c Location of sets? (cd0 disk http nfs or 'done') [http]%0a%3c @]%0a---%0a> Attach:upgrade68-3b.png%0a93,104d41%0a%3c [@%0a%3c HTTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none]%0a%3c HTTP Server? (hostname, list#, 'done' or '?') [cdn.openbsd.org] ftp.openbsd.org%0a%3c Server directory? [pub/OpenBSD/7.4/amd64]%0a%3c %0a%3c Select sets by entering a set name, a file name pattern or 'all'. De-select%0a%3c sets by prepending a '-', e.g.: '-game*'. Selected sets are labelled '[X]'.%0a%3c [X] bsd [X] comp74.tgz [X] xbase74.tgz [X] xserv74.tgz%0a%3c [X] bsd.rd [X] man74.tgz [X] xshare74.tgz%0a%3c [X] base74.tgz [X] game74.tgz [X] xfont74.tgz%0a%3c Set name(s)? (or 'abort' or 'done') [done]%0a%3c @]%0a107c44%0a%3c # Leave the server directory as pub/OpenBSD/7.4/amd64 and press enter.%0a---%0a> # Leave the server directory as pub/OpenBSD/6.8/amd64 and press enter.%0a
28 host:1700287536=38.87.162.8
29 author:1700285425=jrmu
30 diff:1700285425:1700284815:=
31 host:1700285425=38.87.162.8
32 author:1700284815=jrmu
33 diff:1700284815:1700284472:=15c15%0a%3c Check to see if you need to upgrade your OS. To find out your operating system version, type: @@uname -a@@. If it says @@OpenBSD example.com 7.3 GENERIC#6 amd64@@, you can upgrade to 7.4 using this guide. If it says @@OpenBSD example.com 7.4 GENERIC.MP#98 amd64@@, you can follow this guide to repair your OS.%0a---%0a> 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.%0a
34 host:1700284815=38.87.162.8
35 author:1700284472=jrmu
36 diff:1700284472:1700284456:=1c1%0a%3c (:title OpenBSD 7.4 Upgrade Guide:)%0a---%0a> (:title OpenBSD 6.8 Upgrade Guide:)%0a
37 host:1700284472=38.87.162.8
38 author:1700284456=jrmu
39 diff:1700284456:1700284281:=7,13c7,13%0a%3c This is an upgrade guide for [[https://openbsd.org/74.html|OpenBSD 7.4]] using [[openbsd/bsdrd|bsd.rd]]. It assumes you have OpenBSD 7.3 installed and working networking. It can also be used to repair OpenBSD 7.4.%0a%3c %0a%3c %25info%25This guide was written for upgrading openbsd 7.3 to 7.4, but the same idea can be used for upgrading the versions thereafter. Upgrades must be done one version at a time, so upgrading from 7.2 to 7.4 would require upgrading first to 7.3, then to 7.4.%0a%3c %0a%3c %25note%25'''NOTE''': This guide is '''no''' substitute for reading the [[https://www.openbsd.org/faq/|OpenBSD FAQ]]. In particular, you should read the [[https://www.openbsd.org/faq/upgrade74.html|7.4 Upgrade Guide]].%0a%3c %0a%3c %25alert%25'''ALSO SEE''': [[Openbsd/Sysupgrade74|Sysupgrade]] is an easier, mostly unattended upgrade process. %0a---%0a> This is an upgrade guide for [[https://openbsd.org/68.html|OpenBSD 6.8]] using [[openbsd/bsdrd|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.%0a> %0a> %25info%25This guide was written for upgrading openbsd 6.7 to 6.8, but is mostly the same for upgrading all the version after. Upgrades must be done one version at a time, so upgrading 6.7 to 7.0 would require upgrading to 6.8, followed by upgrading to 6.9, then finally 7.0.%0a> %0a> %25note%25'''NOTE''': This guide is '''no''' substitute for reading the [[https://www.openbsd.org/faq/|OpenBSD FAQ]]. In particular, you should read the [[https://www.openbsd.org/faq/upgrade68.html|6.8 Upgrade Guide]].%0a> %0a> %25alert%25'''ALSO SEE''': Sysupgrade is an easier, mostly unattended upgrade process. [[Openbsd.Sysupgrade68]] [[Openbsd.Sysupgrade69]] [[Openbsd.Sysupgrade70]] [[Openbsd.Sysupgrade71]]%0a
40 host:1700284456=38.87.162.8
41 author:1700284281=jrmu
42 diff:1700284281:1700284281:=1,86d0%0a%3c (:title OpenBSD 6.8 Upgrade Guide:)%0a%3c %25define=note block bgcolor=lightblue color=black margin-right=5em margin-left=5em padding=1em overflow=auto %25%0a%3c %25define=info block bgcolor=lightgrey color=black margin-right=5em margin-left=5em padding=1em overflow=auto %25%0a%3c %25define=warn block bgcolor=yellow color=black margin-right=5em margin-left=5em padding=1em overflow=auto %25%0a%3c %25define=alert block bgcolor=lightpink color=black margin-right=5em margin-left=5em padding=1em overflow=auto %25%0a%3c %0a%3c This is an upgrade guide for [[https://openbsd.org/68.html|OpenBSD 6.8]] using [[openbsd/bsdrd|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.%0a%3c %0a%3c %25info%25This guide was written for upgrading openbsd 6.7 to 6.8, but is mostly the same for upgrading all the version after. Upgrades must be done one version at a time, so upgrading 6.7 to 7.0 would require upgrading to 6.8, followed by upgrading to 6.9, then finally 7.0.%0a%3c %0a%3c %25note%25'''NOTE''': This guide is '''no''' substitute for reading the [[https://www.openbsd.org/faq/|OpenBSD FAQ]]. In particular, you should read the [[https://www.openbsd.org/faq/upgrade68.html|6.8 Upgrade Guide]].%0a%3c %0a%3c %25alert%25'''ALSO SEE''': Sysupgrade is an easier, mostly unattended upgrade process. [[Openbsd.Sysupgrade68]] [[Openbsd.Sysupgrade69]] [[Openbsd.Sysupgrade70]] [[Openbsd.Sysupgrade71]]%0a%3c %0a%3c 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.%0a%3c %0a%3c # Make sure to back up any files. Use [[Openbsd/dump|dump]] and [[Openbsd/restore|restore]].%0a%3c # Make sure to notify all your users in advance that there will be downtime during the upgrade.%0a%3c # You will need a way to view the serial console. If you are using [[Openbsd/Vmmuser|VMM]], you can view it using the [[Openbsd/cu|serial console]]. If you are using [[Openbsd/Buyvm|BuyVM]], you should use VNC. Make sure to have the serial console open so you can interrupt the normal bootup process during the upgrade.%0a%3c # First, download bsd.rd and the SHA256 signature file from an [[https://openbsd.org/ftp.html|OpenBSD mirror]].%0a%3c # Verify the signature, replace /bsd.rd with the new bsd.rd, then reboot:\\%0a%3c [@%0a%3c $ ftp https://ftp.openbsd.org/pub/OpenBSD/6.8/amd64/bsd.rd%0a%3c $ ftp https://ftp.openbsd.org/pub/OpenBSD/6.8/amd64/SHA256.sig%0a%3c $ signify -C -p /etc/signify/openbsd-68-base.pub -x SHA256.sig bsd.rd%0a%3c $ doas cp bsd.rd /bsd.rd%0a%3c $ doas shutdown -r now%0a%3c @]\\%0a%3c Attach:upgrade68-1.png\\%0a%3c '''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@@.%0a%3c # At the serial console (either cu or VNC), before automatic bootup, type @@boot /bsd.rd@@.\\%0a%3c Attach:upgrade68-2.png%0a%3c # 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.\\%0a%3c Attach:upgrade68-2b.png%0a%3c # 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.\\%0a%3c Attach:upgrade68-3.png%0a%3c # Press enter for vt220.%0a%3c # To check which root disk, press ? for details. '''NOTE''': Be careful to install to the correct disk.%0a%3c # There is no probably need to force check clean non-root filesystems, so just press enter.\\%0a%3c Attach:upgrade68-3b.png%0a%3c # You can get the base sets from cd (ISO), disk (such as USB flash drive), or http. For this tutorial, we will use http.%0a%3c # For this tutorial, we will not use a proxy. Press enter for none.%0a%3c # For the HTTP server, press ? to show a list of servers. Choose the one closest to your location.%0a%3c # Leave the server directory as pub/OpenBSD/6.8/amd64 and press enter.%0a%3c # Install all the sets. It is not possible to install missing sets using [[openbsd/pkgadd|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.%0a%3c # If downloading sets over http, make sure that the SHA256.sig file is verified.\\%0a%3c Attach:upgrade68-4.png%0a%3c # Press enter for done.%0a%3c # Press enter to reboot.%0a%3c # '''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 [[Openbsd/Buyvm|BuyVM User Guide]] for how to switch the default boot order.%0a%3c # The system will automatically boot OpenBSD 6.8.\\%0a%3c Attach:upgrade68-5.png%0a%3c # You will see a list of patches that need to be installed and conf files that need to be updated.%0a%3c # At this point, you can now use [[openbsd/ssh|ssh]] to log in.%0a%3c # Make sure to read and fix any error messages that you may see.\\%0a%3c Attach:upgrade68-6.png%0a%3c # To check if installation succeeded:\\%0a%3c [@%0a%3c $ uname -a%0a%3c OpenBSD fruit.ircnow.org 6.8 GENERIC#179 amd64%0a%3c @]%0a%3c # If you see 6.7, installation did not succeed.%0a%3c # To check if you have the proper amount of RAM and number of cores, run [[openbsd/top|top]].\\%0a%3c Attach:upgrade68-7.png%0a%3c # 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.%0a%3c # You will want to [[Openbsd/syspatch|patch]] the system:\\%0a%3c [@%0a%3c $ doas syspatch%0a%3c @]%0a%3c # Then, you'll want to run [[https://man.openbsd.org/sysmerge|sysmerge]] to merge any configuration files:\\%0a%3c [@%0a%3c $ doas sysmerge%0a%3c @]%0a%3c # Then, make sure to upgrade your packages:\\%0a%3c [@%0a%3c $ doas pkg_add -u%0a%3c @]%0a%3c # You may optionally install any firmware by running [[openbsd/fwupdate|fw_update]]:\\%0a%3c [@%0a%3c $ doas fw_update -a%0a%3c @]%0a%3c # This is not advised, however, because some of the firmware may be proprietary.%0a%3c # You will want to reboot after installing patches:\\%0a%3c [@%0a%3c $ doas shutdown -r now%0a%3c @]%0a
43 host:1700284281=38.87.162.8