layer-krun
| Repo | box/github.com/opencharly/layer-krun:v2026.314.0707 |
The krun runtime host. crun is built from the pinned upstream commit
ca04fdb6c26f0c8259871f2cccd0e6e652ec03ce — “krun: Remount /proc before starting
passt, if the PID namespace was detached” — because no release carries both that
remount and the passt start path: crun 1.30.1 cannot start passt at all (start passt, rc 1), so in-guest CRIU is main-only until a release ships both
(LIBKRUN.md §10). It is configured --with-libkrun, and /usr/bin/krun is the
same binary by another name, the spelling the containerd handler names. libkrun is
the 1.x line (the distro’s 1.19.x; never main, whose 2.0 rewrite drops
krun_set_vm_config, krun_set_gpu_options and krun_start_enter that crun
resolves), with libkrunfw 5.6.2 and passt. crun hardcodes /usr/bin/bwrap and
/usr/libexec/virgl_render_server; the distro provides the first and installs the
second at /usr/lib/, so this layer provides the path. The host Vulkan ICDs the
render server loads are installed separately (vulkan-virtio and vulkan-swrast;
mesa no longer ships them), and an NVIDIA host’s ICD is asserted at runtime
rather than installed by this layer. /dev/kvm is asserted on the venue, and
kvm_intel/kvm_amd nested=1 is available as an option
(CHARLY_KRUN_NESTED=1). Finally the libkrunfw-crabbox guest kernel: built from
libkrunfw v5.6.2’s own sources, patches and stock config PLUS a committed fragment
(CHECKPOINT_RESTORE, the socket diag options, the netfilter/nft/x_tables/IP-set/
IPVS/VXLAN set k3s needs, BASE_SMALL=n), make vmlinux only, shipped at
/krun/vmlinux for krun.custom_kernel (kernel_format: 1).
Acceptance plan
Section titled “Acceptance plan”This candy’s plan: — the runnable spec charly check executes against a live deployment. check: steps are idempotent probes; run: steps change state.
| Intent | Step |
|---|---|
run |
create the directory the render-server path lives in |
run |
stage the committed libkrunfw-crabbox kernel config fragment |
run |
build crun from the pinned upstream commit that carries passt and the /proc remount |
run |
install the krun entry point crun’s handler resolves |
run |
provide virgl_render_server at the path crun hardcodes |
run |
optionally persist and apply kvm_* nested=1 for nested VMs |
run |
install the canonical kernel build recipe beside the fragment |
run |
build the libkrunfw-crabbox guest kernel (make vmlinux only) |
check |
crun is built from the pinned commit with libkrun and CRIU support |
check |
the krun entry point crun’s handler resolves is installed |
check |
libkrun 1.x and libkrunfw are on the dynamic loader path |
check |
bubblewrap is at the path crun hardcodes |
check |
the virgl render server is at the path crun hardcodes |
check |
the host Vulkan ICDs the render server loads are installed |
check |
the libkrunfw-crabbox guest kernel is installed at the fixed custom-kernel path |
check |
/dev/kvm is readable on the host that runs krun |
check |
the NVIDIA Vulkan ICD is present on an NVIDIA host |

