Documentation menu
Docs / Kubernetes node images

Kubernetes node images

SimpleVirt builds Kubernetes clusters from a node image: a disk image that already holds everything a node needs, so a cluster can come up with no internet access. This guide covers which image to use, how to import it, and how to bake your own.

Every image carries:

  • kubeadm, kubelet and kubectl at one exact version, held so they cannot change on their own
  • containerd and runc
  • every control-plane image, the Calico images and the kube-vip image, which load into containerd at first boot
  • the Calico manifest for that image at /usr/share/simplevirt/calico.yaml
  • a description of the image at /usr/share/simplevirt/image.json
  • the SimpleVirt Kubernetes add-ons: the image localhost/simplevirt/k8s-addons:<release>, which holds the SimpleVirt CSI driver and cloud controller, and the CSI sidecar images it runs with. The bake builds the add-on image from files the kit carries; it is not pulled from or pushed to any registry. See Kubernetes storage and LoadBalancer services (in the appliance's documentation)
  • ceph-common, nfs-common and xfsprogs, which the CSI driver uses to map, mount and format volumes, and, on Ubuntu, the kernel's extra modules when its rbd module is there
  • SimpleVirt Guest Tools (simplevirt-guestd), installed and enabled, so each node reports its OS, addresses and heartbeat to its host and can be shut down or restarted cleanly from the first boot. See Guest Tools on a node
  • its licensing at /usr/share/doc/simplevirt: a NOTICE, a written offer of the source code of the GPL and LGPL software in it (SOURCE-OFFER), and PACKAGES, every installed package and version

An image carries no StorageClass itself: SimpleVirt-Command installs the add-ons on a cluster once it is up. See Storage on a cluster.

Guest Tools on a node

Every image has the simplevirt-guest-tools package of the SimpleVirt release it was baked with, and its service starts at boot. Nothing has to be installed on a node, and nothing is downloaded: the bake installs the package from a local file. /usr/share/simplevirt/image.json names its version under guest_tools.

Guest Tools talk only to the host the node runs on, over the VM's own guest channel. They open no network port and do not contact SimpleVirt-Command, so the cluster does not depend on Command. A node booted where there is no such channel, such as outside SimpleVirt, keeps the service running and quiet: it logs one line saying the channel is not there and picks the channel up if it appears later.

To update Guest Tools on a running node, open the VM's Guest card in SimpleVirt-Command. Upgrade SimpleVirt Guest Tools installs from the Guest Tools ISO on the host the node runs on, so the card compares the node's Guest Tools version with the version that host's ISO carries, first by release number (the part before +) and, when those are equal, by the build's date and time stamp after +. When the host's is newer, the card shows Upgrade available, the installed version and the version on the host, and Upgrade SimpleVirt Guest Tools, which mounts the host's Guest Tools disc and has the node's guest agent run the installer, upgrading the package in place; the new version runs at once, without a reboot, and the card then says which version the node runs. When the host's disc is not newer than the node but your SimpleVirt-Command release is, the card says the host's Guest Tools version and that updating the host brings the newer one, and offers no upgrade. A later build of the same release number on the host is offered as an upgrade, like a higher release. The in-guest route works at any time: inside the node, as root, with the host's Guest Tools disc in the VM's drive, mount /dev/sr0 /mnt && /mnt/Linux/install.sh installs the disc's version. Nodes added later from a newer image carry that image's version.

Images we publish

Image file Kubernetes OS Use it when Upstream support ends
simplevirt-kubeadm-v1.37.2-calico-v3.33.0-ubuntu2404-amd64.qcow2 v1.37.2 Ubuntu 24.04 You have no reason to pick another 2027-10-28
simplevirt-kubeadm-v1.37.2-calico-v3.33.0-debian13-amd64.qcow2 v1.37.2 Debian 13 You prefer Debian 2027-10-28
simplevirt-kubeadm-v1.36.6-calico-v3.33.0-ubuntu2404-amd64.qcow2 v1.36.6 Ubuntu 24.04 Your workloads are not ready for 1.37 2027-06-28
simplevirt-kubeadm-v1.35.10-calico-v3.33.0-ubuntu2404-amd64.qcow2 v1.35.10 Ubuntu 24.04 You must stay on 1.35 for now 2027-02-28

All four use Calico v3.33.0, containerd v2.3.7, runc v1.5.2 and kube-vip v1.3.1.

The v1.35.10 image has the shortest life. Upstream's list for 1.35 does not include containerd 2.3. We use it because every containerd branch on that list has reached its end of life. We have found no upstream test evidence for this pairing.

Test status

In release 1.0.0, these images have not been used to create a cluster through SimpleVirt-Command, or on real hosts. Treat them as unproven until this table says otherwise.

Image Baked and booted Single node, no internet, under emulation Created through SimpleVirt-Command HA with kube-vip
v1.37.2, Ubuntu 24.04 Passed Passed Not yet Not yet
v1.37.2, Debian 13 Passed Passed Not yet Not yet
v1.36.6, Ubuntu 24.04 Passed Passed Not yet Not yet
v1.35.10, Ubuntu 24.04 Passed Passed Not yet Not yet

Baked and booted means the image finished a bake, and a bake only finishes if the image reaches userspace on a first boot.

The emulation test ran one virtual machine with no route out, under software emulation. First-boot image import, kubeadm init, Calico and CoreDNS all worked with no registry, and the pod network came from the setting it was given. The v1.36.6 and v1.35.10 boots used the first-boot settings SimpleVirt-Command renders, with longer kubeadm timeouts for emulation and DHCP in place of its static addresses, and a pod that was not allowed to pull its image ran. The two v1.37.2 rows come from an earlier test with settings of its own. None of this says anything about speed or multiple nodes.

calico-kube-controllers is not confirmed healthy. It has not reached 1/1 on any boot so far. It stayed 0/1 and restarted. Emulation may be the reason, but no boot has run without it, so check this pod first on your own cluster.

HA with kube-vip is not proven, so it is a Tech Preview (see Support status, EXPERIMENTAL.md, in /usr/share/doc/simplevirt on any host). No second node has run. One boot of the v1.37.2 Ubuntu 24.04 image used the built-in load balancer on a single node: kube-vip took the address, and the API answered on it from that node. That does not show a node joining through the address, or the address moving when a node fails. It is the default for a 3-node control plane, so validate it on a test cluster before you use it in production.

Supported Kubernetes versions

Kubernetes Status
1.37, 1.36, 1.35 Published as the images above, and the versions the bake's lists cover. SimpleVirt renders kubeadm's v1beta4 configuration for them.
1.31 to 1.34 Not published, and upstream support for them has ended. SimpleVirt renders v1beta4 for them, and baking one takes the settings under A different Kubernetes patch. At your own risk.
1.30 The first images, with no OS in their file name. SimpleVirt still creates clusters from them: it renders kubeadm's older v1beta3 configuration, and applies the Calico v3.28.2 it carries itself, because those images have no manifest of their own. They have no kube-vip, so a 3-node control plane needs an external load balancer. We have not re-tested this path with the current release. Upstream support has ended, so use a current image for anything new.
Older than 1.30 Not supported. Creating a cluster of it is refused, whether the version is asked for or read from the image.
1.38 and later Not supported yet. No Calico release covers 1.38. Creating a cluster of it is refused.

Calico's and containerd's own version rules are under Version rules.

Import an image into the Image library

  1. Get the image, SHA256SUMS and SHA256SUMS.sig, and put them in one folder. They are not on the SimpleVirt installer, so ask whoever supplied your SimpleVirt release where to download them. This guide gives no address, because that can change. Then check the download:

    sha256sum --check --ignore-missing SHA256SUMS

    That proves the file arrived intact. To prove it is the one SimpleVirt signed, copy the folder to any SimpleVirt host and run, there:

    simplevirt-update-verify -sums SHA256SUMS

    It checks SHA256SUMS.sig against the signing keys the host trusts, then every file SHA256SUMS lists, so put only the images you downloaded in the folder. Each image also has its own <image>.qcow2.sig, which simplevirt-update-verify -detached <image>.qcow2.sig <image>.qcow2 checks. SimpleVirt-Command does not check these signatures on import.

  2. In SimpleVirt-Command, open the Images Library. If it has no backing datastore yet, set one first.

  3. Click Upload and choose the file. If you host the file yourself, click Import from URL… instead.

  4. Check the form. If the file still has the name the builder gave it, the dialog has already filled it in:

    • Name: leave it as it is, because SimpleVirt reads it. See How SimpleVirt reads an image.
    • Type: Image (cloud image / disk)
    • Version: the image's Kubernetes version, such as v1.37.2
    • Kubernetes-capable: ticked

    You can change any of these. Picking another file only replaces what the dialog filled in, never what you typed. Import from URL… does the same from the file name at the end of the URL, but you type the name yourself. Type it without .qcow2, as the upload dialog does: a Library name holds 64 characters, and with .qcow2 the v1.35.10 image's name has 65, which is refused.

  5. Start the upload and keep the browser tab open until it reaches 100%.

The image then appears under Kubernetes node images, and in Base image when you create a cluster. The wizard starts on the newest image.

If you missed the tick or the version, click Edit on the item. There is no need to import it again.

Keep the image in the Image library for as long as a cluster uses it, because Add workers… and Add control planes… clone new nodes from it. SimpleVirt refuses to delete an image a cluster uses, and names the cluster.

How SimpleVirt reads an image

SimpleVirt cannot open an image in the Image library, so before any node boots it goes by what the Image library item says.

The bake names every image in the same way:

simplevirt-kubeadm-<kubernetes>-calico-<calico>-<os>-amd64.qcow2

For example, simplevirt-kubeadm-v1.37.2-calico-v3.33.0-ubuntu2404-amd64.qcow2. The <os> part is BASE_OS with its dots and dashes removed. A bake with NAME_SUFFIX set adds it after -amd64.

SimpleVirt looks for that name in the item's name, its stored file name, its description, and the URL it was imported from. Upper or lower case makes no difference, and text around the name does not matter.

What it needs Where it comes from
Kubernetes version The item's Version, if that looks like v1.37.2 or 1.37.2. Otherwise the file name. Any other Version, such as 24.04, is ignored.
Calico version and OS The file name. Shown for information.
Whether kube-vip is on the image See below.

If Version disagrees with the file name, Version wins and SimpleVirt ignores the file name altogether.

SimpleVirt decides whether an image carries kube-vip like this, and the answer sets what the wizard offers for a 3-node control plane:

What it finds Answer Load balancer in the wizard
The file name, with an <os> part Carries kube-vip Built-in (kube-vip) is the default
The file name, with no <os> part, as on the first images Does not External load balancer only
No file name, and Version below v1.35 Does not External load balancer only
No file name, and Version v1.35 or later Not known External load balancer is the default, and you can choose Built-in (kube-vip), with a warning
Nothing at all Not known The same, and Kubernetes version has nothing to fill from

This says what the image holds, not that failover has been proven. See Test status.

Add control planes… doesn't go by the Image library item. When it moves a cluster with one control plane to a shared address, it looks for the kube-vip image on that control plane itself, and offers the built-in shared address only if it is there.

Images you bake yourself

Keep the name the bake gives the file, all the way from out/ into the Image library. Everything above then works as it does for a published image, whatever settings you baked with. That includes a BASE_OS of your own, which becomes the <os> part. See A different base OS for the form it must take.

The name holds only the Kubernetes version, the Calico version and the OS. Extra packages, extra images, a registry, and other containerd, runc or kube-vip versions do not change it, so two bakes with different contents can get the same name. A second bake then replaces the first in out/, and the bake warns you when it starts. The Library also holds one item per name, so importing the second one fails with a library item with that name already exists.

To tell a bake apart from a published image, or from another of your own, set NAME_SUFFIX. It goes after -amd64, where SimpleVirt ignores it, so the image reads the same as one without it:

simplevirt-kubeadm-v1.37.2-calico-v3.33.0-ubuntu2404-amd64-site1.qcow2

A Library name holds 64 characters, not counting .qcow2, and the images above use 56 to 59 of them, so keep the suffix short. site1 fits on v1.37.2 with Ubuntu 24.04, and dc1 also fits on v1.35.10. The bake stops if the name does not fit.

Do not give that name to an image the kit did not bake. An <os> part tells SimpleVirt the image carries kube-vip, and it has no way to check.

If an image was renamed

A new name does not stop an image working. The first control plane still applies the image's own Calico manifest, and every control plane still uses the image's own kube-vip, because those come from the disk, not the name. What goes is what SimpleVirt knew about it up front:

What was renamed What happens What to do
The file, before upload Nothing is filled in, and the image lands under Images, so it is not offered as a base image Click Edit, tick Kubernetes-capable and set Version
Only Name, in the upload dialog The tick and Version are kept, because the dialog read them from the file Nothing is needed for the version
Only Name, on Import from URL… Nothing is lost, as long as the URL still ends in the builder's name Nothing

With Version v1.35 or later and the name gone, kube-vip is Not known, so External load balancer becomes the default. If you know the image came from the kit, choose Built-in (kube-vip) yourself and leave the warning. The image does carry it.

With Version below v1.35 and the name gone, SimpleVirt takes it that the image has no kube-vip, even on a bake from the kit that does, so the wizard offers External load balancer only. To get Built-in (kube-vip) back, import the file again under the builder's name.

With no version set, SimpleVirt assumes v1.30.5, unless the Image library holds a ready node image newer than that. Then the wizard asks for the version, and the API refuses a create with no version with a 400. On an image that really is newer, the assumption stops at the first-boot check.

To read an image's real version, use the virt-cat command under Verify a built image.

The Library cannot rename an item. To get everything back, import the file again under the builder's name. Delete the old item once no cluster uses it.

The first-boot check

The file name and Version are what the Image library was told. The image's own record is /usr/share/simplevirt/image.json, and the first control plane reads it at first boot, before it runs kubeadm init.

If that file names another Kubernetes version than the cluster's, the node stops at once and writes this to its boot log:

kubeadm init FAILED: the node image is Kubernetes v1.36.6, and this cluster asked for v1.37.2

It does not retry, because the images it would need are not on the node. SimpleVirt waits out its 10 minutes for the control plane, then shows the cluster as degraded with that line as the reason. Correct Version on the image with Edit, delete the cluster and create it again.

An image with no image.json, which means any of the first images, skips this check. The first control plane does the check. Nodes joining it do not.

The first boot also reads kube_vip_image from image.json, so the kube-vip version you baked is the one that runs.

Version rules

  1. The cluster and the image must match exactly. The wizard fills Kubernetes version from the image and refuses another, and so does the API. Otherwise kubeadm asks for images that are not on the node, and an air-gapped node cannot pull them.
  2. Calico must cover the Kubernetes minor.
  3. containerd must be on that minor's list. containerd must be 2.x.

The bake stops if rule 2 or 3 is broken. ALLOW_UNTESTED=1 lifts the lists, but not the 2.x rule. These are the lists it knows:

Calico Tested Kubernetes
v3.33 1.35, 1.36, 1.37
v3.32 1.34, 1.35, 1.36
Kubernetes containerd
1.37 2.3, 2.4
1.36 2.2, 2.3
1.35 2.1, 2.2

For anything else, check Calico's requirements page and containerd's release page, then set ALLOW_UNTESTED=1.

Network needs

Give every cluster a default gateway and a DNS server, even on an isolated network where neither leads anywhere. They only have to be set, not reachable from outside.

  • With no default gateway, Calico cannot reach the Kubernetes API through its service address, so calico-node stays in Init:CrashLoopBackOff.
  • With no DNS server, CoreDNS exits with no valid upstream addresses found.

Storage on a cluster

A cluster SimpleVirt-Command builds from an image of this release gets a StorageClass on its own datastore, a cloud controller and LoadBalancer support, from the add-on images the image carries. Nothing is pulled. Kubernetes storage and LoadBalancer services (in the appliance's documentation) covers them.

A cluster on a local or SAN datastore gets no storage class. For one, or for another storage system, install a CSI driver or provisioner for your storage, then mark its class as the default:

kubectl annotate storageclass <name> storageclass.kubernetes.io/is-default-class=true

On a site with no internet, the driver's images must already be on the nodes. Add them with EXTRA_IMAGES when you bake, or serve them from your own registry with REGISTRY_MIRROR.

Bake your own image

You need:

  • a Linux machine with Docker that can run privileged containers
  • KVM is not needed, because the bake uses software emulation
  • internet access, listed below
  • room on disk: allow about 20 GB for Docker while baking, 3 GB for the download cache and 1.3 GB for each image
  • the image kit, simplevirt-k8s-image-kit.tar.gz, which comes from the same place as the images

The machine needs to reach:

For Hosts
Building the builder, whatever your base OS Docker Hub (registry-1.docker.io, auth.docker.io) and Debian's package servers (deb.debian.org)
Kubernetes packages and binaries pkgs.k8s.io, dl.k8s.io
containerd, runc and the Calico manifest github.com, raw.githubusercontent.com
Images registry.k8s.io, quay.io, ghcr.io
Your base OS Its image server (cloud-images.ubuntu.com or cloud.debian.org for the built-in names) and its package servers, such as archive.ubuntu.com, security.ubuntu.com or deb.debian.org
EXTRA_IMAGES Each image's own registry, such as docker.io

Most of these redirect to content hosts, which an allow-list has to include too. On 2026-11-07 they were prod-cdn.packages.k8s.io, release-assets.githubusercontent.com, cdn.registry.k8s.io, europe-west8-docker.pkg.dev, cdn01.quay.io, pkg-containers.githubusercontent.com and production.cloudfront.docker.com. These names can change, and we have not tried a bake behind an allow-list, so if a download is blocked, allow the host it names.

A bake took 40 to 50 minutes per image on a 24-core machine that was busy with other work, with downloads already cached. Expect longer on a smaller machine.

Unpack the kit and build the builder once:

tar xzf simplevirt-k8s-image-kit.tar.gz
cd k8s-image
docker build -t simplevirt-k8s-image-builder .
mkdir -p out cache

The kit holds a copy of this guide and of Kubernetes storage and LoadBalancer services (in the appliance's documentation), a README.md with these commands, the SimpleVirt Guest Tools package in guest-tools/, which the builder installs into every image, and the SimpleVirt Kubernetes add-ons in addons/, from which the builder makes the add-on image.

Put your settings in a file called image.env, one per line, with no quotes:

K8S_VER=v1.36.6
BASE_OS=debian-13

Check the settings first. This takes a few minutes and finds a bad version straight away:

docker run --rm --env-file image.env -e DRY_RUN=1 \
  -v "$PWD/out:/out" -v "$PWD/cache:/cache" simplevirt-k8s-image-builder

The dry run checks the versions and every download. For EXTRA_PACKAGES it only checks that each name is well formed, because the package servers are not read until the bake installs them. A package that does not exist stops the bake at that step, after the disk work and the image export.

Then bake:

docker run --rm --privileged --env-file image.env \
  -v "$PWD/out:/out" -v "$PWD/cache:/cache" simplevirt-k8s-image-builder

The image and an updated SHA256SUMS land in out/. Keep cache/ to skip the downloads next time. Import the image the same way as a published one, and keep the name the bake gave it.

Settings

Setting Default What it does
K8S_VER v1.37.2 Exact Kubernetes version
CALICO_VER v3.33.0 Calico version
CONTAINERD_VER v2.3.7 containerd version, 2.x only
RUNC_VER v1.5.2 runc version
KUBE_VIP_VER v1.3.1 kube-vip version
BASE_OS ubuntu-24.04 ubuntu-24.04, debian-12 or debian-13. With BASE_URL, any ubuntu- or debian- followed by digits and dots
BASE_URL, BASE_SHA Any other base image, and its sha256 or sha512
EXTRA_PACKAGES Extra apt packages to install, comma separated
EXTRA_IMAGES Extra images to preload, comma separated
REGISTRY_MIRROR Registry every node tries first, as https://host:port
REGISTRY_CA Path inside the builder to a PEM CA certificate for that registry
NAME_SUFFIX Short text after -amd64 in the file name, for a bake with different contents: lower-case letters, digits and single dashes
K8S_DEB_REV 1.1 Package revision of kubeadm, kubelet and kubectl
CRI_TOOLS_DEB, K8S_CNI_DEB Package versions, needed for a minor other than 1.35, 1.36 or 1.37
ALLOW_UNTESTED Set to 1 to bake outside the version lists
GUEST_TOOLS /guest-tools Path inside the builder to the Guest Tools .deb, or a folder holding exactly one for amd64. The kit's builder already has it there
BUNDLE_SRC /build/bundle --bundle only: the folder holding the node script simplevirt-k8s-bundle and its README.txt. The kit's builder already has them there
SIGNER /signer/simplevirt-update-sign --bundle only: path inside the builder to simplevirt-update-sign, which signs manifest.json and the ISO
SIGN_KEY --bundle only: path inside the builder to the signing key file
UPDATE_SIGN_ARGS --bundle only: the signer's key flags instead of SIGN_KEY, such as -agent <socket> for a hardware key
STRICT_RELEASE --bundle only: 1 refuses to build a bundle with no signing key; otherwise it is built unsigned and says so
ADDONS /addons Path inside the builder to the SimpleVirt Kubernetes add-ons tar (simplevirt-k8s-addons_<version>_amd64.tar), or a folder holding exactly one. The bake makes the add-on image localhost/simplevirt/k8s-addons:<version> from it. The kit's builder already has it there

Recipes

The name changes with the Kubernetes version, the Calico version and the OS. The recipes for extra packages, extra images and a private registry change none of those, so they set NAME_SUFFIX too. Without it, the bake gets the same name as a published image.

A different Kubernetes patch. Read the patch from https://dl.k8s.io/release/stable-<minor>.txt, such as stable-1.36.txt, because a version that has not been released stops the bake. Patches of 1.36 and 1.37 need only the version.

K8S_VER=v1.36.6

A patch of 1.35 also needs one of two settings, because the default containerd is not on the list for 1.35. ALLOW_UNTESTED=1 is how we bake the published image. A containerd 2.2 version, such as CONTAINERD_VER=v2.2.10, stays on the list, but that branch has reached its end of life.

Another minor also needs CRI_TOOLS_DEB, K8S_CNI_DEB and ALLOW_UNTESTED=1.

A different base OS. Use a built-in name:

BASE_OS=debian-13

Or give any Ubuntu or Debian cloud image in qcow2 form. BASE_OS must be ubuntu- or debian- followed only by digits and dots, such as ubuntu-26.04, and no other form is accepted, so rocky-9 and ubuntu-24.04-hardened are both refused. The name goes in the output file name, so use NAME_SUFFIX to mark a variant of a base.

BASE_OS=ubuntu-26.04
BASE_URL=https://cloud-images.ubuntu.com/releases/resolute/release-YYYYMMDD/ubuntu-26.04-server-cloudimg-amd64.img
BASE_SHA=<sha256 from that folder's SHA256SUMS>

Extra packages. For example, an agent your site requires. They come from the base OS's package servers during the bake. Write name=version to pin one.

EXTRA_PACKAGES=auditd,jq
NAME_SUFFIX=site1

Extra preloaded images. Each must be registry/name:tag, with the full registry and a fixed tag. A digest is not accepted, and :latest is refused, because Kubernetes would always try to pull it. Pods must then refer to the image by that same name and tag. These images load at first boot alongside the rest.

EXTRA_IMAGES=registry.k8s.io/sig-storage/nfsplugin:v4.11.0,docker.io/library/nginx:1.27
NAME_SUFFIX=site1

A private registry and its CA. REGISTRY_MIRROR makes nodes try your registry first for every pull, and fall back to the original registry. REGISTRY_CA goes into the node's system trust store, and into the builder's, so EXTRA_IMAGES can come from that registry too. Each works without the other. Mount the certificate into the builder, on the dry run as well as the bake:

REGISTRY_MIRROR=https://registry.example.com:5000
REGISTRY_CA=/registry-ca.crt
NAME_SUFFIX=site1
docker run --rm --privileged --env-file image.env \
  -v "$PWD/ca.crt:/registry-ca.crt:ro" \
  -v "$PWD/out:/out" -v "$PWD/cache:/cache" simplevirt-k8s-image-builder

The bake does not log in to registries, so EXTRA_IMAGES must allow anonymous pulls. Credentials are never baked into an image. For pods that need a login, use a Kubernetes image pull secret.

A different Calico. The image carries its own manifest, so SimpleVirt applies the Calico you baked.

K8S_VER=v1.36.6
CALICO_VER=v3.32.3

The bake reads the image list from that release's calico.yaml. It stops if the manifest has no commented CALICO_IPV4POOL_CIDR block, because SimpleVirt sets your pod network there. If a node still cannot set it, for example because its manifest was edited after the bake or its disk is full, the first control plane writes calico FAILED: could not render to its boot log. The cluster then has no pod network, so no node goes Ready, and the create ends degraded with that line as the reason.

Verify a built image

Check the file:

cd out
sha256sum --check SHA256SUMS

Read what is inside without booting it:

docker run --rm -v "$PWD:/out:ro" --entrypoint virt-cat simplevirt-k8s-image-builder \
  -a /out/<image file> /usr/share/simplevirt/image.json

On a booted node:

cat /usr/share/simplevirt/image.json            # versions, kube-vip image, Guest Tools, OS and build date
systemctl status simplevirt-guestd              # Guest Tools, running from boot
ls -l /var/lib/simplevirt/preload.done          # first-boot import finished
crictl images                                   # every image in /usr/share/simplevirt/images.txt
journalctl -u simplevirt-image-preload          # the import log, if something is missing

The bake has already checked these, and a failure leaves no image behind:

  • the hash of the base image, containerd and runc
  • the exact installed version of kubeadm, kubelet, kubectl, containerd and runc
  • that the Guest Tools package is the one it was given, that its service is enabled, and that its licence and notices are in /usr/share/doc/simplevirt-guest-tools
  • that the Kubernetes packages are held
  • that the certificate renewal script is installed, its monthly timer is enabled, and the tools it needs are there
  • that the number of preloaded images matches the list
  • the containerd settings for cgroups, the pause image and the registry folder
  • that the kernel has the modules Kubernetes and Calico need
  • that the image really boots

The bake does not create a cluster. Test one with your image before you rely on it.

Certificates and updates on a node

Every image carries simplevirt-k8s-certs-renew and the simplevirt-k8s-certs-renew.timer that runs it once a month. On a control plane it renews the kubeadm certificates once fewer than 60 days remain and restarts the control-plane containers one at a time, kube-vip last, so kube-vip never keeps a lapsed client certificate; on a worker it does nothing. It runs on the node and needs nothing from SimpleVirt-Command. Run it by hand with sudo /usr/local/sbin/simplevirt-k8s-certs-renew --now. Clusters built from an older image get it with Renew certificates… on the cluster's page (Renewing cluster certificates).

The Kubernetes packages (kubelet, kubeadm, kubectl, cri-tools, kubernetes-cni) are held in every image, and should stay held. Only Upgrade Kubernetes… moves them, from an upgrade bundle or, in its online mode, from the node's package sources, and it holds them again. For operating-system security updates, bake or import an image with the same Kubernetes version and the updated OS, and rebuild the workers with Replace workers… (Updating the nodes' operating system).

Upgrade bundles

An upgrade bundle moves a cluster built from these images to a newer Kubernetes version with no internet and no package source. It is one ISO per Kubernetes and Calico pair, built from the same settings as the image (one bundle per line of matrix.txt, whatever the base OS):

  • simplevirt-k8s-bundle-<k8s>-calico-<calico>-amd64.iso, volume label SVK8S-<k8s> (for example SVK8S-v1.37.2)
  • <file>.iso.sig, its detached signature by the update keys, and a line in the signed SHA256SUMS

Inside are the five Kubernetes packages as .deb files, the container images that version needs, Calico's manifest, the node script, a README, and manifest.json, which lists every file with its SHA-256 and is signed (manifest.json.sig) with the same keys as the node images. To check a bundle on any machine before you import it: simplevirt-update-verify -detached <file>.iso.sig <file>.iso.

In the Image library and in Command

Import it into the Image library like any ISO: the Image library shows it under Kubernetes upgrade bundles, with where its signature check stands. Upgrade Kubernetes… on a cluster's page then offers it (Upgrading Kubernetes). The check happens on a node, because only a VM with the disc in its drive can read it: the first control plane reads the manifest and its signature off the disc, and SimpleVirt-Command verifies them. Every node then refuses a disc whose manifest is not the one verified, and a file that does not match the manifest.

What a staged node keeps, under /var/lib/simplevirt/k8s-bundles/<k8s>/, is the packages, the manifest and the node script; the images are imported into containerd pinned, so the kubelet never removes them and nothing is pulled. No service, timer or other dependency is added, and nothing on the node needs SimpleVirt-Command or the Image library afterwards.

On the disc

Path What it is
manifest.json Every file on the disc with its sha256, size and role; every image with the archive it is in; the five packages with their versions; the Kubernetes and Calico versions, the Kubernetes minors this Calico is tested with, the pause image and the add-on image
manifest.json.sig The detached signature over manifest.json
debs/ kubeadm, kubelet, kubectl, cri-tools and kubernetes-cni of that version, as .deb files from the signed pkgs.k8s.io index
images/ Every image the version needs, one archive each with its name inside: the control plane (from kubeadm config images list, never a fixed list), Calico, kube-vip, the CSI sidecars and the SimpleVirt add-ons
calico/calico.yaml The stock Calico manifest, with the pod network block still commented out
apply/simplevirt-k8s-bundle The node script (POSIX sh)
README.txt The procedure by hand

What the node script does

simplevirt-k8s-bundle runs on a node, as root, and uses nothing but the bundle and the node's own tools. It reads no package source, runs no apt-get update, and never downloads. It starts no service and adds no timer, package source or registry.

Command What it does
verify <sha> [<dir>] Succeeds only when manifest.json has the sha256 <sha> and every file it lists has its size and sha256. A path outside the bundle (absolute, .., a link out of it) is refused. On a staged copy, an image archive already imported is checked by its image in containerd instead
stage <sha> <mountdir> Checks the disc, then the free space (/var/lib needs twice the bundle plus 1 GiB), copies it at idle I/O priority into /var/lib/simplevirt/k8s-bundles/<k8s>/, checks the copy, imports every image with the pinned label (io.cri-containerd.pinned=pinned, so the kubelet's image clean-up never removes it), checks each with crictl inspecti, deletes the image archives (the packages, manifest and script stay), and writes the marker .staged-<sha>. A node with the marker is left as it is. It then records simplevirt.io/bundle-staged=<sha> on its own Node object with its own kubelet credentials; when that fails it warns, and the stage still counts
packages <k8s> <package>... Installs the named packages from the staged .deb files only, with apt shown no package source at all, and waits up to 10 minutes for the dpkg lock that unattended upgrades may hold. For kubeadm or kubelet it takes the bundle's cri-tools and kubernetes-cni too when the node's are older. It refuses a downgrade, and holds all five packages again afterwards, a failed install included
sandbox <k8s> When the bundle's pause image differs from the one containerd is configured with and is already imported, sets it in /etc/containerd/config.toml and prints restart-containerd; otherwise prints unchanged. The old pause image keeps working, so this is optional
status {"staged":[{"k8s":...,"manifest_sha256":...}],"kubelet":...,"kubeadm":...}
prune <keep_k8s>... Removes the bundle folders and images of every other staged version, except an image any container was made from and the configured sandbox image

<sha> is the sha256 of the disc's manifest.json, the value its signature covers. After stage the node runs the script from its copy, /var/lib/simplevirt/k8s-bundles/<k8s>/simplevirt-k8s-bundle.

Upgrade a cluster by hand

README.txt on the disc has the whole procedure, run as root on each node. The cluster's page shows the same steps, with the cluster's own names and values filled in (Finishing an upgrade by hand). In short:

  1. Check the ISO on any machine with SimpleVirt tools: simplevirt-update-verify -detached <file>.iso.sig <file>.iso, then take the sha256 of its manifest.json.
  2. On every node, control planes first and then workers, before any kubeadm upgrade: mount the disc (mount -o ro LABEL=SVK8S-<k8s> /mnt), or the ISO file carried on a USB stick (mount -o loop,ro <file>.iso /mnt), then verify and stage. kubeadm upgrade apply moves kube-proxy and CoreDNS to the new version on every node at once, and a node that does not already hold their images has nowhere to pull them from.
  3. The first control plane: packages <k8s> kubeadm, kubeadm upgrade apply -y <k8s>, simplevirt-k8s-certs-renew --restart-kube-vip, kubectl drain <node> --ignore-daemonsets, packages <k8s> kubelet kubectl, systemctl restart kubelet, kubectl uncordon <node>. kubectl runs as the cluster's admin, with KUBECONFIG=/etc/kubernetes/admin.conf on a control plane.
  4. Every other node the same way, with kubeadm upgrade node instead of apply, and --restart-kube-vip on control planes only.

Never run kubeadm upgrade plan: it asks the internet for the latest release. --restart-kube-vip restarts the control plane's kube-vip, which reads admin.conf only when it starts, so it does not keep the client certificate the upgrade replaced; it waits until the API address answers again and fails, saying so, when it does not. Take an etcd snapshot first: after kubeadm upgrade apply the way back is that snapshot, not a package downgrade. The drain keeps pods' data: a pod with emptyDir data, or one no controller would recreate, stops it until you move that pod, or until you accept losing that data with --delete-emptydir-data or --force.

Build a bundle

From the source tree, make k8s-upgrade-bundle K8S_VER=v1.36.6 (any setting of the image works the same way) or make k8s-upgrade-bundles for every line of matrix.txt. From the kit, after building the builder:

docker run --rm --env-file image.env \
  -v "$PWD/out:/out" -v "$PWD/cache:/cache" simplevirt-k8s-image-builder --bundle

A bundle needs no privileged container, no disk image and no Guest Tools. It needs internet on the build machine, like a bake. SIGN_KEY (a key file mounted into the builder) or UPDATE_SIGN_ARGS (the signer's key flags) with SIGNER (the simplevirt-update-sign program, mounted into the builder) sign manifest.json and the ISO. Without a key the bundle is built unsigned and the build says so in its last lines; such a bundle is for development only, and STRICT_RELEASE=1 refuses to build one.

So far bundles are verified with simulated clusters and nodes only (the node script against stand-in ctr, crictl, apt and kubectl), not yet on a real air-gapped cluster; see known limitations §145.

A node you join by hand

A node you join to a SimpleVirt cluster yourself, from an image that is not a SimpleVirt node image, has no add-on image, and there is no registry to pull it from. The CSI node plugin and the cloud controller's agent then stay in ImagePullBackOff on it, and pods with volumes cannot run there. Every node image is published with the add-on image of its release as an archive, simplevirt-k8s-addons-image_<release>_amd64.tar, listed in the signed SHA256SUMS and signed itself (.tar.sig). Use the archive of the release the cluster's add-ons run (kubectl -n simplevirt-system get ds simplevirt-csi-node -o jsonpath='{..image}' names it). Check it, then import it on the node, pinned so the kubelet's image clean-up never removes it:

sha256sum --check --ignore-missing SHA256SUMS
sudo ctr -n k8s.io images import --label io.cri-containerd.pinned=pinned simplevirt-k8s-addons-image_<release>_amd64.tar

The node also needs the CSI sidecar images (registry.k8s.io, or your REGISTRY_MIRROR), ceph-common and the rbd kernel module for HCI volumes, or nfs-common for NFS ones. None of this needs SimpleVirt-Command.

Add-on image on existing nodes

A cluster runs the add-on image its nodes carry, and there is no registry to pull a newer one from. Install add-ons picks the newest add-on image that every node has, so a cluster made from an older node image keeps that image's add-on build, even under this release's manifests. That build works, but it lacks what this release added: the check that no other device on the network holds a LoadBalancer address before it is handed out, and the CSI driver following the Ceph monitor map. Replace workers… gives new workers this release's image, but control planes are not replaced, so for an existing cluster the way to get this release's add-ons is to import its add-on archive on every node.

Install add-ons asks the running cloud controller which of these its image has, and when one is missing it says so on the cluster's page, under Add-ons, with the add-on version the cluster runs.

To bring an existing cluster to this release's add-ons:

  1. Download this release's simplevirt-k8s-addons-image_<release>_amd64.tar, its .tar.sig, and the signed SHA256SUMS, and check them: sha256sum --check --ignore-missing SHA256SUMS.

  2. On every node, control planes and workers, import it pinned, as above: sudo ctr -n k8s.io images import --label io.cri-containerd.pinned=pinned simplevirt-k8s-addons-image_<release>_amd64.tar. A worker with no login can be replaced with Replace workers… instead, which gives it this release's node image. A control plane with no login (the default when a cluster is created without an SSH key) cannot be reached to import it, and control planes are not replaced, so such a cluster keeps its old add-on build for now (Known limitations).

  3. Choose Install add-ons on the cluster's page. When the release number is newer than the one the page showed, the add-ons move to the new image as they are applied.

  4. When the release number is the same as before (an image rebuilt at the same release), the pods already run that tag and are not moved by the apply. Restart them so they start from the imported image, then choose Install add-ons again to check:

    kubectl -n simplevirt-system rollout restart ds/simplevirt-ccm-agent deploy/simplevirt-ccm-controller ds/simplevirt-kube-vip
    kubectl -n simplevirt-system rollout restart ds/simplevirt-csi-node deploy/simplevirt-csi-controller

    Restarting the CSI pods leaves mounted volumes mounted; a restarted simplevirt-kube-vip hands the LoadBalancer addresses it leads to another node for up to 15 seconds.

None of this stops a VM or needs SimpleVirt-Command after the archive is on the nodes.

What is supported

Supported: the images we publish, unchanged, and images you bake from the kit with versions inside the lists above, on ubuntu-24.04 or debian-13, once the test status above shows that combination has passed.

At your own risk:

  • anything baked with ALLOW_UNTESTED=1
  • a base OS we do not list, including debian-12, which we can bake but do not test
  • EXTRA_PACKAGES and EXTRA_IMAGES, which we do not test, including anything that changes the kernel, networking or containerd
  • another CNI. SimpleVirt always applies Calico from the image. Replacing it is a manual change on a running cluster
  • a kube-vip version other than the one above, because SimpleVirt renders the kube-vip settings itself

Not in any image: an ingress controller. The StorageClass, the cloud controller and LoadBalancer support come with the add-ons SimpleVirt-Command installs on a cluster (Storage on a cluster).

This page is part of the SimpleVirt 1.1.0 documentation set. The same guides ship inside the appliance images at /usr/share/doc/simplevirt.