Kata Containers 4.4.0¶
4.4.0 follows 4.3.1, with compressed EROFS guest disks, a dedicated Substrate guest, larger Cloud Hypervisor sandboxes, and improvements to recovery after shim and VMM failures.
New features¶
A dedicated Substrate guest¶
The build and release definitions add
kata-static-substrate-VERSION-ARCH.tar.zst for amd64 and arm64. It contains
a Debian trixie-slim guest and the standard Kata kernel; Substrate supplies
its host binaries. The guest uses a separate GNU libc agent as PID 1, with
seccomp enabled and agent policy, init-data and dm-verity support disabled.
It remains separate from the regular Kata archives and kata-deploy downloads
(#14223).
This guest uses ext4 for Substrate's PMEM/DAX mounts, retains package metadata
for inspection, and omits general-purpose guest tools such as iptables and
mkfs.ext4. It has no chrony service: use a VMM that corrects the clock after
restore, and create fresh snapshots when changing the guest image. See the
build instructions and
Substrate test guide.
The upstream boot measurements do not establish performance gains for this build.
Cloud Hypervisor supports up to 512 vCPUs on x86_64 KVM¶
Both runtimes raise the Cloud Hypervisor limit to 512 vCPUs on x86_64 KVM, with matching guest kernel capacity and resize validation. MSHV and other architectures retain the 256-vCPU Cloud Hypervisor limit. Host CPU limits and configuration adjustment still apply; this is a supported upper bound, not a new default VM size (#13811).
Rootless VFIO-AP on s390x¶
runtime-rs recognizes VFIO-AP mediated devices through
/dev/vfio/devices/vfioN and supports IOMMUFD descriptor passing for cold-plug.
The s390x QEMU build enables IOMMUFD, and functional coverage includes rootless
cold-plug and a negative rootless hot-plug case. The TEE Helm example enables
rootless mode for the Secure Execution Rust handler; the runtime template
continues to default to rootless = false
(#14145).
Additional guest and firmware support¶
- Cloud Hypervisor in
runtime-rsuses VMDK for multi-layer EROFS container images, allowing the VM template tests to use their standard workloads (#14134). - The agent resolves virtio-mmio devices for multi-layer EROFS mounts (#14305). This does not add Firecracker support for the combined VMDK format.
- The amd64 Rust release archive gains
td-shimfirmware at/opt/kata/share/td-shim/td-shim.bin. This packages firmware for Dragonball; it does not establish general TDX support for other handlers (#14114, #14347).
Breaking changes¶
Standard guest disks switch to compressed EROFS¶
The regular guest disk image builds and both runtimes' generated defaults
switch from ext4 to EROFS. The Substrate image is an explicit ext4 exception.
Systemd guests get temporary writable storage at /var/lib/systemd; its state
is discarded when the VM stops. Guest disk format is independent of the
container snapshotter: this change does not require selecting the EROFS
snapshotter
(#14187).
When retaining custom configurations, match rootfs_type to the image you
actually deploy. For an EROFS QEMU image, set rootfs_type = "erofs" and
disable_image_nvdimm = true. In runtime-rs, also use
vm_rootfs_driver = "virtio-blk-pci", or virtio-blk-ccw on s390x. The
new generated configurations already select these settings. Keep an explicit
rootfs_type = "ext4" when retaining an ext4 image. See the
image builder guide.
For runtime-rs QEMU, Cloud Hypervisor and Dragonball virtio-blk boot paths,
root partition selection now uses PARTUUID, preventing an extension disk
that probes first from becoming the guest root. Custom images need root data
in partition 1 and, when measured, verity hashes in partition 2. DOS images
need a nonzero disk signature; GPT images use partition GUIDs. Rootfs and
extension images must have distinct partition identities. Initrd and PMEM
boot paths retain their existing selection
(#14161).
Firecracker reserves read-only disk slots¶
Both runtimes now honor device-level read-only requests using separate
Firecracker placeholder drives. Set block_device_read_only_slots before
creating a sandbox: the default is 1, leaving seven writable attachment
slots and one read-only slot, separate from the guest OS root disk. Values
from 0 through 7 are accepted; 0 disables read-only attachments. Exhausting
either pool fails the attachment, without borrowing from the other pool.
Container root disks and read-only image devices consume these slots too.
https://github.com/kata-containers/kata-containers/security/advisories/GHSA-hjjf-cq78-fj3h
has details on the motivation for this change.
Recreate affected sandboxes: upgrading cannot change the mode negotiated by an existing VMM disk. Older saved Go sandboxes restore with zero read-only slots and reject new read-only attachments until recreated. The Rust pool grows from five to eight slots. On x86_64 with Firecracker v1.17.0, one guest OS root disk and one vsock device, that leaves capacity for seven NICs rather than ten; an eighth NIC prevents startup.
Mixed access modes for the same shared block device remain unsupported:
reuse retains the first attachment's mode, without rejecting mode conflicts.
This mechanism does not translate OCI root.readonly into device-level
protection. See the Firecracker limits.
Runtime and deployment contracts¶
- The containerd minimum is 2.3. The latest CI selection remains 2.4. Upgrade the host daemon separately; installing Kata does not upgrade it (#14183).
- Requested core scheduling must succeed. When containerd supplies a
nonempty
SCHED_CORE, the Rust shim now fails startup if it cannot activate core scheduling, instead of starting without the requested isolation. Check host support and the reported error before retrying; unset or emptySCHED_COREstill leaves it disabled (#14204, fixes #14174). - Container removal waits synchronously. The agent ignores the former
RemoveContainerRequest.timeout; the protocol reserves its field number and name, andruntime-rsstops sending it. Custom clients must not rely on that field to bound guest cleanup (#14146). kata-manageris retired. It prints a notice and exits with failure. Replace automation invoking it with a supported method from the installation guide (#14265).
Notable fixes¶
Recovery and resource cleanup¶
runtime-rs writes state.json atomically under /run/kata/<sandbox-id>,
records resources during setup, and retains state until cleanup completes.
Recovery records the sandbox configuration path and keep_abnormal decision,
restores rootless cleanup correctly, releases init-data images and block
emptyDir disks, restores passed-through NIC drivers, and removes Kata-created
network links and pinned namespaces. Failed cleanup keeps state for retry;
keep_abnormal deliberately preserves it for debugging
(#14162,
related #14112).
Network work runs on dedicated threads without blocking Tokio workers or leaving them inside a pod namespace. Partial attachment can resume, and cleanup tolerates namespaces and cgroups already removed by the container manager (#13886, #14370). The inherited shim listener is closed on exec so a surviving VMM cannot keep a dead shim's socket accepting unanswered requests. Stale sockets no longer prevent retrying a failed start (#14128, #14143).
Failed agent health checks now stop the sandbox and notify waiters. Failed
passfd waits report unknown exit status 255 and attempt cleanup, rather than
reporting success. Late subscribers retain sandbox exit notifications
(#13967,
#13963,
#13919).
Container teardown detaches its hotplugged devices, retains shared devices until their final detach, and supports repeated VFIO hot-unplug (#13538). Copied-volume watchers are tracked per container, so removing one user does not stop another's updates. Closing inotify descriptors runs off the async workers to avoid hanging a shim with multiple watched volumes (#13962, #14379, fixes #13641).
Agent, policy and workload behavior¶
- Directory entries in OCI
maskedPathsare now hidden with a shared read-only tmpfs, including nested paths and SELinux mount labels. Paths such as/sys/firmwarethat previously remained visible are now masked as requested. Review workloads that depended on that visibility (#14189). - PID limits survive protocol conversion and reach container cgroups (#14141).
- Environment validation preserves approved whitespace, including trailing newlines in secrets, instead of trimming bytes (#13933, fixes #13911).
- Generated policies preserve an explicit pod group when only the container
user changes and replace inherited primary groups when both are overridden,
while retaining requested supplemental groups and
fsGroup. Pod-levelrunAsGroupwithoutrunAsUseris rejected: add the pod user explicitly (#14061). - Removal policy permits cleanup after a failed create that never established policy state. The agent also removes resources when no container object was created and avoids a hotplug-timeout cleanup panic (#14270, #14281).
- Exclusive-CPU sandboxes with negative CPU quota use CPU shares for initial sizing, preventing statically sized Guaranteed pods from being stuck at one vCPU. Zero or absent quota does not trigger this fallback (#14244). The Go runtime also parses current and deprecated CRI-O pod resource annotations for sandbox sizing (#13649).
- Debug console disconnects kill and reap the shell without blocking the
agent. Mem-agent initializes memory-cgroup support only when enabled,
mounts
debugfswhen needed, and survives cancelled command responses (#14173, #14232). - Bind sources such as
/data/proc/trainare shared correctly: only/proc,/sysand their descendants count as system mounts (#14194).
Images, deployment and VM templates¶
EROFS image assembly writes directly at the partition offset and verifies the result, avoiding loop-device races that could publish blank root partitions. Builds reject missing verity hash partitions, and extension hash validation also runs for unmeasured base images (#14373, #14123). Agent cache keys include shared Rust sources, preventing stale agents after library fixes (#14200).
kata-deploy preserves unchanged CRI file timestamps, avoiding unnecessary
restarts during reconciliation, preserves empty TOML arrays, and permits CRI-O
configuration appends under SELinux enforcement
(#14066,
#14070,
#14140).
Devkit installations require kata-ctl, now included in the NVIDIA bundle
(#14116,
#14147).
Dragonball restores block-device layout, vsock port allocation and reset state, and KVM paravirtual MSRs in the required order. Template startup omits the host upcall connection. Both runtimes drop the default virtiofsd thread pool, avoiding requests racing saved device state (#14075, #14182). QEMU emits explicitly addressed PCIe root ports before automatically placed devices, preventing extension disks from occupying GPU slots (#14115).
Security¶
Dragonball's virtio-PCI transport rejects queue reconfiguration after device activation and prevents status-bit clearing from reopening that window. See https://github.com/kata-containers/kata-containers/security/advisories/GHSA-958x-8rq9-832p for more details.
Dependency updates include Cloud Hypervisor's published virtio-pmem shutdown use-after-free fix (#14345, upstream advisory), Tokio's RUSTSEC-2026-0386 correction (#14384), and Rust certificate and compression updates (#14315). The latter also updates Go networking dependencies for GO-2026-6860 and GO-2026-6866, and the runtime's compression library for GO-2026-6865.
Dependencies¶
| Component | Previous pin | New pin | PR |
|---|---|---|---|
| Guest kernel, NVIDIA and experimental Dragonball kernel | v6.18.56 |
v6.18.62 |
#14284 |
| QEMU | v11.0.1 |
v11.1.3 |
#14249 |
| Cloud Hypervisor | v54.0 |
v54.1 |
#14345 |
| OVMF: vanilla x86_64, SEV and arm64 | edk2-stable202508 |
edk2-stable202608 |
#14255 |
| nydus | v2.2.3 |
v2.4.5 |
#14250 |
| nydus-snapshotter | v0.15.15 |
v0.16.1 |
#14251 |
| Go | 1.26.9 |
1.26.11 |
#14346 |
| libseccomp | 2.6.0 |
2.6.1 |
#14283 |
| ORAS | 1.3.3 |
1.3.6 |
#14262 |
| NVIDIA Container Toolkit package | 1.19.1-1 |
1.20.1-1 |
#14290 |
| DCGM exporter package | 4.8.3.002-1 |
4.8.4.3955-1 |
#14117 |
| UPX | 5.2.1 |
5.3.0 |
#14287 |
| Node Feature Discovery chart | 0.20.0 |
0.20.1 |
#14312 |
| Trustee | 512fed65642015b849f38fb13bfdec7806639987 |
v0.23.0 |
#14123 |
| Guest components | eae0bf63a3a9db7721f86e0a2b0b9941a7fcba3a |
095f5c040377b7bce2c42a7d133e27c869010dee |
#14123 |
The DCGM exporter update restores DCGM_FI_DEV_XID_ERRORS reporting.
The cgroups-rs pin includes fixes for leftover systemd units and missed job
completion signals on Rocky Linux 10.2 with dbus-broker 36
(#14128,
#14261).
Confidential Data Hub now generates its key provider configuration under its
own /run tmpfs by default. New images omit the static
ocicrypt_config.json; remove custom dependencies on that file, or explicitly
provide an existing configuration through OCICRYPT_KEYPROVIDER_CONFIG.
Compatibility handling retains older extension manifests. Trustee image
references move from staged images to the released component repositories
(#14123).
Known issues¶
- Firecracker still cannot interpret the VMDK layout combining multiple EROFS container layers. Reserving additional read-only slots does not enable it. Shared block devices also retain the first attachment's access mode; see the documented limits.
- The compression updates leave the older
zstd0.11.2 /zstd-safe5.0.2 dependency pulled in by Dragonball'snydus-utilsunchanged. The update explicitly does not resolve that dependency chain (commit). - An OpenVMM launch-failure regression test is disabled as flaky (#14252, #14228).
Testing and support coverage¶
These are changes to configured coverage, not a claim that every release job passed.
| Coverage | Scope and limits | PR |
|---|---|---|
| IPv4, IPv6 and dual-stack | Three x86_64 qemu-nvidia-cpu-runtime-rs jobs use bridge CNI and EROFS memory mode with dm-verity; the bridge setup covers single-node clusters |
#14135 |
| Substrate microVM e2e | Tests upstream Substrate main on x86_64 using candidate guest and kernel hashes, retaining Substrate's VMM and virtiofsd; arm64 assets are built but have no runtime lane, and this job is not a Gatekeeper required check | #14223 |
| s390x CRI tests | Gatekeeper replaces the Go QEMU required entry with qemu-runtime-rs; ActionsZ runners move to Ubuntu 26.04 |
#14203, #14138 |
| Rust minimum version | Static checks add cargo check --workspace --all-targets --locked on the declared Rust 1.95 minimum |
#14124 |
| Shim and VMM termination | Kubernetes tests kill each process, check resource removal and restart the pod; rootless and NVIDIA cases check their additional resources | #14162 |
| Direct volumes | Seeded ext4 files verify that the registered block device is mounted, alongside sparse-file coverage | #14208 |
The s390x confidential guest large-image timeout test is enabled again after
the PARTUUID fix
(#14161).
The IP-family tests check pod, Service and DNS traffic; l3forwarding remains
IPv4-only and is skipped on IPv6 and dual-stack clusters. The s390x Secure
Execution confidential test uses a privileged test pod to inspect masked
firmware state. This is a test workaround, not workload deployment advice
(#14213).
The 512-vCPU change records local Go and Rust boot, hotplug and I/O checks, but those used direct VM/agent harnesses, older component versions and an eight-CPU host. They did not exercise containerd or host-sized TOML adjustment (#13811).
Documentation¶
New and updated material covers the Firecracker disk pools, Substrate guest builds, partition identity requirements, and CPU shares fallback. The rootless guide describes temporary user names that now include a sandbox ID prefix. Local build instructions use the separate Go and Rust shim tarball targets (#13742).
Upgrading¶
- Upgrade containerd hosts to 2.3 or later before deploying this release.
- Merge the generated configuration changes with local overrides. Match
rootfs_typeto each image, select block attachment for EROFS QEMU guests, and verify partition identities for custom Rust virtio-blk images. - Budget Firecracker's separate read-only and writable pools before creating sandboxes. Check the seven-NIC x86_64 limit for the documented device layout and avoid mixed access modes for a shared device.
- Regenerate agent policies. Set pod
runAsUserwhen using podrunAsGroup, validate overridden identities, and account for synchronous removal. - Check hosts where containerd requests core scheduling: an activation failure now prevents Rust shim startup. Review workloads that read paths now hidden by OCI directory masking or exceed their configured PID limits.
- Replace
kata-managerautomation, update custom CDH key provider file references, and review Trustee image repository changes if mirroring images. - For Substrate guest updates, create fresh snapshots and ensure the VMM corrects the clock on restore.
See Upgrading and the installation guide for deployment procedures.