OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: MajorMC on November 12, 2023, 10:17:41 AM

Title: Upgrade from OPNsense 22.1-amd64 to Available Version: 23.7.8
Post by: MajorMC on November 12, 2023, 10:17:41 AM
Hi guys and happy weekend!

I have a system that was installed for a client and is running firmware OPNsense 22.1-amd64 while I see the current available Version is 23.7.8

What is the best / safest upgrade path I should consider.

Many thanks in advance
Majr
Title: Re: Upgrade from OPNsense 22.1-amd64 to Available Version: 23.7.8
Post by: Maurice on November 16, 2023, 04:44:48 AM
The sequence is always last minor update - major upgrade - last minor update - major upgrade - ...
So in your case: 22.1 - 22.1.10 - 22.7 - 22.7.11 - 23.1 - 23.1.11 - 23.7.5 - 23.7.8

The updater does that for you, just run it repeatedly. Will take a while.

Cheers
Maurice
Title: Re: Upgrade from OPNsense 22.1-amd64 to Available Version: 23.7.8
Post by: franco on November 16, 2023, 08:37:36 AM
The safest way is to do what Maurice said, also because you can review release notes and take each step to verify it's working as intended (but don't verify after initial upgrade... update to latest stable beforehand)

The quickest way is to use an 23.7 image and do a configuration import and reinstall. You can use the live system to see if it works for the most part (plugins are tricky here) before installing it too.


Cheers,
Franco
Title: Re: Upgrade from OPNsense 22.1-amd64 to Available Version: 23.7.8
Post by: MajorMC on November 22, 2023, 06:22:39 PM
Thanks guys for your feedback.
So if i understand correctly, I could repeatedly upgrade and the updater will simply automatically upgrade to the next logical version / restart and repeat.

It is something that can be attempted remotely with the firewall automatically rebooting after each update? I am thinking over the weekend. Both internet feeds are connected to the Firewall.

I agree there is possibly some value in exporting the current configuration / reflashing the hardware with the latest firmware and importing the previously exported configuration.

I did not actually install this unit so have not flashed a OPNsense unit before.

Thanks again
Maj


Title: Re: Upgrade from OPNsense 22.1-amd64 to Available Version: 23.7.8
Post by: Maurice on November 22, 2023, 07:00:23 PM
Correct and yes, this can be done remotely. Of course there is always a slight risk that something goes wrong. You might then need video / serial console access to recover, so if this is a vital system, having a plan B is recommended.
Title: Re: Upgrade from OPNsense 22.1-amd64 to Available Version: 23.7.8
Post by: MajorMC on November 23, 2023, 07:02:08 AM
Many thanks and I will schedule the upgrade for the weekend while everyone is drinking Pina Coladas' on the beach. 
Br Maj
Title: Re: Upgrade from OPNsense 22.1-amd64 to Available Version: 23.7.8
Post by: franco on November 23, 2023, 11:03:48 AM
Not to be a voice of concern ... but ... :D ... if you are uncomfortable with that particular OPNsense configuration and major upgrades in general I'd recommend doing these in front of a console for recovery purposes.


Cheers,
Franco
Title: Re: Upgrade from OPNsense 22.1-amd64 to Available Version: 23.7.8
Post by: MajorMC on December 02, 2023, 12:09:23 PM
All went perfectly - many thanks
Have a great weekend