Skip to content

krun-host

Repo box/cachyos
Base cachyos

The libkrun runtime host on the CachyOS base: the containerd engine with a krun runtime handler, and the crun/libkrun/libkrunfw stack that handler actually resolves.

Why both layers, and why the crun build is not interchangeable

Section titled “Why both layers, and why the crun build is not interchangeable”

containerd selects a runtime handler by name; layer-containerd supplies the engine and the krun handler declaration. What that handler executes is crun, and a distro crun advertises +LIBKRUN while carrying NONE of the annotation vocabulary the handler reads — measured on Arch’s crun 1.30.1-1: one krun string in the binary, no krun.* keys, and a container started through the handler still reports the HOST kernel. A build of the pinned ca04fdb6 commit with --with-libkrun carries 110 such strings and boots a guest (uname -r → 6.12.109 against a 7.2.3 host). So layer-krun is load-bearing here, not a convenience: without it this box installs, starts containerd, accepts the handler, runs containers — and never boots a guest.

layer-krun also links /usr/bin/krun to its crun, because that is the spelling the containerd handler names.

This box composes:

  • @github.com/opencharly/layer-containerd/candy/layer-containerd:v2026.318.0946
  • @github.com/opencharly/layer-krun:v2026.314.0707