Skip to content

Updating an appliance, step by step

On 2026-10-19 all three appliances on the bench were updated to v0.1.0-alpha.2 from their own XGS: Updates page, in the browser, and photographed along the way. The XGS 136 and the first XGS 3300 were offered the release as usual. The second XGS 3300 at first was not, for a reason this page shows. Each update, from Update to done, took 16 or 17 seconds; the driver is built on the appliance itself.

The page does for this plugin what OPNsense's own System: Firmware does for OPNsense, which does not list the plugin. Nothing on it reboots by itself.

1. What is installed, and what is offered

Status shows three cards: what is installed, the newest release, and the last update. Below them are the channel this appliance follows (Releases, or Test for every change merged) and the two buttons.

The XGS 136: installed a commit from main, v0.1.0-alpha.2 offered

The first XGS 3300, the same release offered

2. What changed

What changed lists every change the offered release brings, each with its pull request.

What changed, as it was: the pull requests printed as Markdown

The pull requests were printed as their Markdown, brackets and address included; they are drawn as links now:

What changed, the pull requests as links

3. Update, and what it says first

Update asks once, and says what is about to happen: the version shown is downloaded, its installer runs, and the driver is built for the running kernel. The driver that is running now stays until the next boot, so the firewall goes on forwarding.

The confirmation

4. The progress bar

Six steps, each lit as it starts and ticked as it ends:

  • Download - the release, by the commit the check found;
  • Unpack;
  • Install - the plugin, its pages and its boot hooks;
  • Kernel sources - the sources of the kernel this appliance runs;
  • Build the driver - counted in source files, 9 of 9;
  • Finish - and the appliance plugins brought along last: while one is updated or installed, the line under the bar names it, as the Plugins tab does - "Finishing - Updating 1 of 2: os-netreport" - and the bar moves on a step as each one ends.

Only the update's own run is counted. When the page cannot tell how far it has got - the driver's build it would read belongs to another run of the installer or of the kernel follower, or the update stopped during its build - it shows the steps without a number, and "Stopped at" for an update that stopped.

On the first XGS 3300, about once a second:

2 %: downloading the release

18 %: installing the plugin, its pages and its boot hooks

24 %: still installing

73 %: building the driver, 6 of 9 source files compiled

90 %: 9 of 9 compiled

And on the XGS 136 and the second XGS 3300:

The XGS 136 at 33 %, installing

The second XGS 3300 starting

The second XGS 3300 installing

The second XGS 3300 at the kernel sources

The second XGS 3300 building its driver, 90 %

The second XGS 3300 finishing

5. Done - and a reboot when the driver or a boot step changed

When it is done the bar is full and every step ticked. A reboot loads the driver just built, and the page offers it with Reboot now.

The first XGS 3300: installed, waiting for a reboot to load its new driver

The XGS 136 was asked for a reboot too, although the driver its update built was byte for byte the one it was running (npuep 9619e07c, built by hand earlier the same day from the same source). A reboot would have loaded the same driver again:

The XGS 136 asked for a reboot it did not need

Now the update compares the driver it built with the one the boot loaded, and says when nothing waits:

The second XGS 3300: installed, the driver it built is the one running

Since 0.1.0-alpha.8.1 the boot steps count too. The hooks this project installs under /usr/local/etc/rc.syshook.d/early and start run once a boot, so a change in one takes effect at the next boot, as a new driver does: the update compares them with what the boot ran, and asks for a reboot when one changed even with the driver unchanged - the page then says the driver is the one running but its boot steps changed. 0.1.0-alpha.8 asked the lab's three boards for no reboot, their driver being the release's already, while its boot steps had changed; updating from 0.1.0-alpha.8 asks for that reboot once.

6. The reboot

Reboot now asks once, and says what it costs: traffic stops until the appliance is back, a few minutes.

It is not offered while a plugin is being updated or installed - by the Plugins tab, or one the update brought along that took longer than the update waits for it: a reboot then would cut the plugin's installer in the middle. The row names the plugin in its place - "Updating 1 of 1: os-netreport" - and Reboot now is back once the plugin is done.

The reboot asks

Rebooting: the page says to reload it once the firewall is back

The first XGS 3300 was back at 18:36:09 UTC with the new driver (octep 3315c08f) loaded and its links up. The reboot also ended the browser's session, so the page after it asked for a login.

7. The installer's log

Installer log keeps everything the installer printed: what was downloaded, each part installed, and the driver's build.

The installer log

8. An update that did not finish

Last update says so, with the reason, and Check and Update are there again:

  • The update stopped before it finished - the appliance restarted under it, or it was stopped. Nothing after that step was done: check for updates and update again. An XGS 126's update that its appliance restarted under on 2026-10-31 had stayed "running" at every boot after it, with both buttons off (#661); since 2026-11-06 an update holds a lock from its first step to its last, and one whose lock nobody holds is said to have stopped.
  • Installed everything but the driver - its build failed; the installer's log ends with why. The driver from before keeps running and is loaded at the next boot too, and the release is offered again, since it is not recorded as installed until its driver is in place.
  • No driver for the kernel the next boot will use - do not reboot until one is built; the end of the installer's log says how. Since 2026-11-17 the Status tab's Driver row says whether one is, and what the kernel follower last did. An update of OPNsense from System: Firmware reboots by itself once its kernel is in place, so for one of those the row shows only after that boot what the follower's hooks made of it (XGS: Updates).

A second Update while one runs is refused ("an update is already running").

A build from a branch

The second XGS 3300 had last been installed from a test branch. That build is not in the history of the releases: the branch's change was merged as a single commit, which is a different commit from the test build. Compared with the release, the build is neither ahead nor behind; GitHub calls this diverged. The page treated it as up to date and turned Update off:

The second XGS 3300 shown as up to date, the release ahead of it

A build like that is now offered the release, with the reason beside it:

The release offered, and why

But not when the build is dated after the release: then the release would take it back. On 2026-10-22 the XGS 136, running a build of the branch that became v0.1.0-alpha.5.4, was given v0.1.0-alpha.5.3 that way (#677). Since 2026-10-24 such a build is shown as newer than the newest release, as one from main is, and the next release is offered. And Update checks again before it downloads anything: on that same morning it had installed what an earlier check found, after the check made since had failed. Now a check that fails stops the update with the check's own reason, and nothing is downloaded.

When what is installed is itself a release, the two release numbers decide, not the dates: 0.1.0-alpha.15 is before 0.1.0-alpha.15.1, which is before 0.1.0-alpha.16. Until 0.1.0-alpha.15.1 the dates decided for releases too. An appliance updated by 0.1.0-alpha.14 records the time a release was published as its date, while a signed release carries its commit's, so a release merged in the minutes before the one installed was published would have been taken for an older one and never offered.

The appliance plugins

The Plugins tab updates the appliance plugins - Arabic, right-to-left, fan control, the front panel, link health, the network report, the hardware watchdog, the kernel follower, block lists, port guard and fallback crypto, those installed - each with its own updater, by hand. Check for updates asks for each one's latest release; a plugin with one ahead of it gets its Update, and Update all takes them all, one after the other. Each update has its own bar and steps - queued, ask GitHub, download, unpack, install, updated - with its clock and its installer's last line, and Update all a bar for the whole; a plugin's installer restarts the web GUI, and the page says so and carries on by itself. When an update ends its row shows the release now installed, by name, and offers it no more; its bar goes ten seconds later, and a failed one's stays, with its reason:

The Plugins tab during Update all: fan control updated to v1.1.1 in six seconds, the network report on its second step

With the project's update, since 0.1.0-alpha.8.2. After installing itself, an update of the project brings the plugins along: every installed one to its latest release, and every one of the family the appliance never had and that suits it installed - the front panel only on the OCTEON TX family's rack models, which have one. A plugin its owner took away is not brought back: the appliance keeps a list of the plugins it has had. An install that failed - GitHub refused it, say - is not one of them, and the next update tries it again (since 0.1.0-alpha.8.4; until then the failed install's own record put it on the list, and it was not tried again). The installer's log says what became of each, and the reboot is offered only once they are done. A file /var/db/os-xgs-npu/plugins-auto holding off stops it; the Plugins tab works as before.

Discussion

The discussion of this page is held in the project's GitHub Discussions. Showing it here loads giscus from giscus.app and GitHub, and writing in it needs a GitHub account - what that means.