Kata Containers is an open-source container runtime that runs each container or Kubernetes pod inside its own lightweight virtual machine, so workloads keep the speed and packaging of containers while gaining the hardware-enforced isolation of virtualization. In the Containers topic of Cloud infrastructure, it occupies the space between conventional Linux containers, which share one host kernel, and full virtual machines, which are heavier to start and manage.
The project began in 2017 as a merger of Intel Clear Containers and Hyper runV and is governed by the Open Infrastructure Foundation. It implements the Open Container Initiative runtime specification and plugs into containerd and CRI-O, which means existing images and Kubernetes manifests run unchanged.
How Kata Containers isolates workloads
Kata Containers isolates workloads by giving every pod a dedicated guest kernel running inside a hardware-virtualized sandbox. A standard runtime such as runc relies on namespaces and cgroups of the shared host kernel, so a single kernel vulnerability can expose every container on the node. Kata moves that boundary down to the hypervisor and CPU virtualization extensions such as Intel VT-x or AMD-V.
When the orchestrator requests a pod, the containerd shim for Kata (containerd-shim-kata-v2) launches a minimal virtual machine, boots a trimmed guest kernel and starts the kata-agent inside it. The agent receives commands over a vsock channel, creates the container processes within the guest and reports status back. The container image layers are shared into the guest through virtio-fs, so the image itself does not need conversion.
The table below lists the main components and the role each plays in the runtime chain.
| Component | Location | Role |
|---|---|---|
| Runtime shim | Host | Receives CRI requests and manages the sandbox lifecycle |
| Hypervisor | Host | Creates and runs the lightweight virtual machine |
| Guest kernel | Virtual machine | Provides an independent kernel per pod |
| kata-agent | Virtual machine | Spawns and supervises container processes |
| virtio-fs | Host and guest | Shares image root filesystems and volumes |
Supported hypervisors and their trade-offs
Kata Containers supports several virtual machine monitors, and the choice determines boot time, memory overhead and feature coverage. Operators select one per runtime class, so a cluster can offer more than one profile. QEMU is the most complete option, while Cloud Hypervisor and Firecracker are written in Rust and focus on a smaller attack surface.
The following comparison summarizes the typical characteristics of each hypervisor; exact numbers depend on kernel configuration, host CPU and guest memory size.
| Hypervisor | Strength | Limitation |
|---|---|---|
| QEMU | Broadest device and feature support | Largest code base and footprint |
| Cloud Hypervisor | Modern Rust design, hotplug support | Fewer emulated devices |
| Firecracker | Very fast boot, minimal device model | No virtio-fs, limited hotplug |
| Dragonball | Built into the Rust runtime, low latency | Newer, smaller user base |
With a tuned guest image, pod start latency usually lands in the range of a few hundred milliseconds to about one second longer than runc, and each sandbox consumes roughly tens of megabytes of extra memory. These costs are small per pod but become noticeable on dense nodes running hundreds of short-lived workloads.
Kata Containers compared with other runtimes
Kata Containers differs from other sandboxing approaches mainly in where the isolation boundary sits. runc offers no extra boundary beyond the kernel, gVisor intercepts system calls with a user-space kernel, and Kata places a real kernel behind a hypervisor. Each design trades compatibility, performance and security in a different way.
| Runtime | Isolation boundary | Compatibility | Overhead |
|---|---|---|---|
| runc | Shared host kernel | Full Linux compatibility | Lowest |
| gVisor | User-space system call layer | Partial system call coverage | Moderate, higher for I/O |
| Kata Containers | Hypervisor and guest kernel | Near-complete compatibility | Moderate, mainly memory |
| Full virtual machine | Hypervisor and full guest OS | Complete | Highest |
Because the guest runs a genuine Linux kernel, Kata handles workloads that need unusual system calls or kernel modules better than gVisor. In return, it requires hardware virtualization on the node, which rules out many cloud instances unless the provider exposes nested virtualization or offers bare-metal machines.
Deploying Kata Containers in Kubernetes
Kata Containers is deployed in Kubernetes through a RuntimeClass object that maps a name such as kata-clh or kata-qemu to the Kata handler configured in containerd or CRI-O. Pods opt in by setting runtimeClassName in their specification, so trusted and untrusted workloads can share one cluster while using different runtimes.
The installation is commonly automated with the kata-deploy DaemonSet, which copies binaries and configuration to each node. The next table shows when choosing Kata is justified and when a standard runtime remains the better default.
| Situation | Recommended runtime | Reason |
|---|---|---|
| Multi-tenant platform running customer code | Kata Containers | Kernel exploits stay inside one sandbox |
| CI runners executing untrusted pull requests | Kata Containers | Strong isolation for arbitrary builds |
| Confidential workloads on TEE hardware | Kata with confidential containers | Memory encryption against the host |
| Trusted internal microservices | runc | Lower overhead, simpler operations |
| Nodes without virtualization support | runc or gVisor | Kata cannot start without a hypervisor |
Kata also forms the foundation of the Confidential Containers project, which combines the sandbox with trusted execution environments such as Intel TDX and AMD SEV-SNP so that even the host administrator cannot read guest memory.
Limitations and common mistakes
Kata Containers adds a real security boundary, but it also introduces operational constraints that teams often underestimate. The most frequent problems come from features that assume a shared host kernel.
- Host networking and privileged pods behave differently or are unsupported, because the pod does not see the host kernel directly.
- Device passthrough for GPUs requires VFIO configuration and careful hypervisor selection.
- Resource accounting must include sandbox overhead; Kubernetes
overheadfields in the RuntimeClass address this. - Observability agents running as host-level eBPF programs cannot inspect processes inside the guest kernel.
- Assuming Kata replaces image scanning and least privilege is a mistake; it limits blast radius, not vulnerable code.
In plain words
Ordinary containers are like apartments in one building that share the same foundation and plumbing. If someone breaks the plumbing, every apartment may be affected. Kata Containers gives each tenant a small separate house instead, built quickly from the same blueprint.
Applications still look and behave like normal containers, so developers change nothing. The difference is that a problem inside one house cannot easily spread to the neighbors. The price is a little more memory and a slightly slower start for each workload.
A real-world example
A company running a hosted code-execution service lets thousands of users submit scripts that run inside a shared Kubernetes cluster on bare-metal servers. With runc, the security team worried that a single kernel exploit in user code could reach other customers and the node itself.
The platform team installed Kata Containers with Cloud Hypervisor through kata-deploy and created a RuntimeClass named kata-clh with a declared overhead of 160 MiB of memory and 250 millicores. All customer pods moved to that class, while internal services stayed on runc. Median pod start time rose from about 0.6 seconds to roughly 1.3 seconds, which users barely noticed.
During a later penetration test, a simulated container escape reached only the guest kernel of one sandbox. The outcome was contained tenant isolation without changing a single image, at the cost of about 12 percent more node memory.