Configuring an Immutable OS
This blog home has moved several times: first GitHub Pages, then Kubernetes and then a VM running openSUSE Leap. Now it is served from an OVH data center in Canada.
The point is, I am not an admin or an experienced devops type. I can ssh into
a Linux server, install some packages and use vim to configure something. But
I am not good at it and I do not like it. It is easy to lose track of what I
changed (did someone say disaster recovery?) and which services are configured
where and how.
However, it is the last month of 2026. LLMs are a curse and a blessing, and they truly changed the IT landscape. So what happens if I mix my opinionated, crazy ideas about how a server should look with the raw power of a probability machine? It turns out a lot is possible.
Or maybe a better subtitle would be:
“What happens when an unstoppable urge to configure meets an immutable OS?”
Selecting a base OS
A traditional Linux server is something we install and then configure. That means a lot of package installs, a lot of file editing, and hoping the setup survives every upgrade. To make sure it does, the Linux community has stable distributions. Examples are Debian Stable, Ubuntu LTS, the CentOS-derived family, openSUSE Leap, or commercially supported ones like RHEL, SLES, Ubuntu and many more.
A stable distribution does not change its base once released. Instead, it backports security fixes over the support period. So the user can set it up and forget about it for the next 3, 5, 10 or however many years.
Enter 2026 and Coping with the onslaught of kernel security bugs. LWN reports from a talk by Greg Kroah-Hartman, the long-time (stable) kernel maintainer:
after running at a steady rate of about 500 fixes per release, that number has suddenly quadrupled. … Now the kernel project is fixing 33 CVEs per day.
the mean time to exploit — the time between the discovery of a bug and the appearance of exploits for it. In 2018, that time was 63 days; in 2026 it is 7 days. … the biggest problem is that people are just not updating their systems.
And if that’s not scary enough:
Greg K-H @gregkh: We just passed the “20.000 CVEs assigned” mark as the CNA for Linux today. Here’s the latest stats for those that like numbers: https://social.kernel.org/notice/BCyZ4JiFUPrYWZLMfo
daniel:// stenberg:// bagder@mastodon.social: @gregkh so almost half of all were done in 2026…
Daniel maintains curl. He deals with an increased load due to LLM generated reports and real bugs, because
his project is a popular target as well.
Why MicroOS specifically
There are a few reasons:
- I worked at SUSE years ago, so I got used to their distros. The previous VM was openSUSE Leap.
- I have used the bleeding-edge Tumbleweed almost since its inception. The name of the guy who started it may sound familiar.
- Despite its bleeding-edge nature, openQA tests every snapshot before it is released.
- I used MicroOS through the kube-hetzner project during my Kubernetes phase.
- There is a stable variant too: since Leap 16.1, Leap Micro is part of Leap as its Immutable Mode. So I have a more traditional fallback in case everything goes wrong.
Upgrades: unattended and daily reboots
The biggest difference between an immutable/atomic/transactional system and a
traditional distribution is that updates are never installed into the running
system. In case of MicroOS the transactional-update.timer installs the new
version into new btrfs snapshot and a component called rebootmgr restarts the
system almost every day, so system boots from a new snapshot.
So there is a small window, when the server is offline. This is not a HA 24/7 setup with five nines of uptime, so this is a small price to pay for having a system all the time up to date.
So how to install and deploy the services?
MicroOS itself is openSUSE Tumbleweed with a read-only root filesystem and a different way of installing packages. Installing them is still possible, and nothing prevents it. But it makes little sense as each installed software increases a risk that the next upgrade won’t be unattended.
For example installing a Postgres as a rpm package is not a good idea, because the major upgrade may need a manual intervention.
In the end, I added only two small Go tools:
node_exporterfor exporting OS metrics in Prometheus format.skopeo, which checks whether newer versions of the deployed container images exist upstream.
Containers, containers everywhere
Everything else, including the main gateway caddy, runs via podman, the OCI engine. It is integrated into systemd, so each container, a quadlet, behaves exactly like a regular system service managed by PID 1. That gives one way to deliver and run everything, plus all the hardening and other options systemd provides.
But a quadlet needs a description somewhere on the system: a .container file
(and .network and .volume). It can’t go into /usr, because that is
read-only. Fortunately, MicroOS is not 100% read-only: /etc and /var are
writable. So putting everything into /etc/containers/systemd is one way.
Extensions
There is another, much better approach, which keeps the changes as isolated
from the main system as possible:
systemd-sysext.
It loads an extension
image from
/var/lib/extensions and merges it with the OS /usr. Atomic systems like
Flatcar use it to install extra
software.
There can be multiple images merged together, however my scripts build only a single extension image.
Deploy, but verify
Extension images are not plain tarballs or cpio archives. Per the specification, they are images wrapped in a GPT partition table, which can hold several partitions, which are specified, so all tooling knows what’s where. The spec says
they (extension images) shall be protected by signed dm-verity all combined into one.
dm-verity is part of the device mapper. It hashes every 4 KiB block of the image and builds a Merkle tree from the hashes, so one signed root hash covers the whole filesystem. The kernel checks each block when it is accessed, so this ensures only valid configurations are applied.
The (broken) chain
In an ideal world, the chain starts in the firmware, with UEFI and Secure Boot, and the certificate sitting in a kernel keyring. My OVH VPS offers none of this: it boots with an old BIOS, so there is no Secure Boot and no TPM.
So the second-best place for the trusted certificates is /etc/verity.d/. systemd
checks the signature against them in user space, before it hands the root hash
to the kernel. After that, the kernel still checks every block. This does not
protect the system from a remote root exploit. But those are rare even in 2026,
the server reboots regularly, and thanks to the SUSE kernel maintainers, my VM
tracks upstream kernel releases very closely.
| Description | Date | Kernel |
|---|---|---|
| kernel.org | 2026-11-30 | 7.3.7 |
| Running | 2026-12-03 | 7.3.6-2-default |
And yes, the update scripts validate the content of /etc/verity.d/ too.
And last, but not least
The YubiKey
I had wanted one for ages, and now I have two: the main one on my (physical) keyring and a backup, which sleeps quietly in a bank vault.
Having credentials on a security token means they are not on the computer. Malware, or, in 2026 style, a rogue AI, can’t copy them, and every use needs a touch. The worst case here is to have a key locked or wiped, which is the purpose of having a backup token.
That leaves rubber-hose cryptanalysis as the only way to get unauthorized access.

xkcd 538 by Randall Munroe, CC BY-NC 2.5
The YubiKey holds my SSH keys, the RSA-3072 private key that signs the
dm-verity images, and my passkey for the infra. With the age FIDO2 plugin, it
also decrypts the server’s master key and the backup passphrase. Those live on
disk only in encrypted form, and only a touch of the key opens them.
Summary
This may be not that interesting post to read as I only describe things, but do not demonstrate anything. This is intentional as I want the post to be short and not a long HOWTO setup MicroOS a server.
The planned next post shows the same setup with real commands.
Logo Kendrick Shaw, CC0, via Wikimedia Commons