Getting Started with Confidential Containers: Install CoCo and Launch a Kata Pod
Confidential Containers (CoCo) runs Kubernetes pods inside lightweight virtual machines and protects them with a hardware trusted execution environment (AMD SEV-SNP, Intel TDX). The pod's memory is hidden from the node it runs on, and the workload can prove what it is before it receives its secrets.
CoCo builds on Kata Containers. Each kind of protection is a
Kubernetes RuntimeClass, and one of them, kata-qemu-coco-dev, runs the same stack
without any TEE hardware. That is the one you use here.
This tutorial follows the official Getting Started guide on a real kubeadm cluster:
| Machine | Role |
|---|---|
dev-machine | Admin workstation: kubectl, helm, jq, yq. Files are in ~/coco/. |
cplane-01 | Control plane (untainted, so it can run workloads too) |
node-01 | Worker node, the one you label for CoCo |
Run every command on dev-machine.
There is no hardware TEE here, and right now there is no KVM either. iximiuz Labs
turned off nested virtualization on July 13, 2026 because of KVM guest-to-host escape
vulnerabilities, so playground VMs have no /dev/kvm. CoCo installs and you can inspect
everything it sets up. The pod in step 5 then fails to start its VM. Finding out why is
part of the tutorial.
1. Check the cluster
CoCo needs Kubernetes 1.24 or newer, containerd 1.7 or newer, Helm 3.8 or newer, and no SELinux:
kubectl get nodes -o wide
ssh node-01 containerd --version
helm version --short
2. Label a worker node
The guide lists a node labeled node.kubernetes.io/worker as a prerequisite:
kubectl label node node-01 node.kubernetes.io/worker=
With the current chart (0.23.0), only the optional peer-pods component selects on this
label. The Kata installer in the next step has no node selector. It runs on every
untainted node, which here means both cplane-01 and node-01.
3. Install CoCo with Helm
One chart installs everything:
helm install coco oci://ghcr.io/confidential-containers/charts/confidential-containers \
--namespace coco-system \
--create-namespace
kubectl -n coco-system rollout status ds/kata-as-coco-runtime --timeout=10m
kubectl get pods -n coco-system -o wide
The chart deploys one DaemonSet, kata-as-coco-runtime. Its pod (kata-deploy) does the
work on each node:
- Copies the Kata binaries, guest kernels and guest images into
/opt/kata. - Installs the nydus snapshotter as a systemd service on the node.
- Adds one containerd runtime handler per RuntimeClass and restarts containerd.
- Labels the node
katacontainers.io/kata-runtime=true.
The kata-deploy image is about 1.8 GB. This playground starts pulling it on both nodes
in the background as soon as the cluster is up, which takes about 2 minutes. Once it is
cached, the DaemonSet is ready roughly 30 seconds after helm install. If you got here
sooner, nothing breaks: the install waits for the same download to finish.
4. Inspect what was installed
List the RuntimeClasses:
kubectl get runtimeclass
kata-qemu-coco-dev is the one for clusters without TEE hardware. kata-qemu-snp and
kata-qemu-tdx are its counterparts for AMD SEV-SNP and Intel TDX. The rest cover other
hypervisors, GPUs and Azure.
A RuntimeClass can only be scheduled where its runtime exists. Look at the selector, then at the labels kata-deploy set on the node:
kubectl get runtimeclass kata-qemu-coco-dev -o yaml | yq '.scheduling, .overhead'
kubectl get node node-01 --show-labels | tr ',' '\n' | grep kata
Now look at the node itself:
ssh node-01 ls /opt/kata/bin
ssh node-01 cat /opt/kata/containerd/config.d/kata-deploy.toml | head -40
ssh node-01 systemctl status nydus-for-kata-tee --no-pager | head -5
The containerd-shim-kata-v2 binary is what containerd starts instead of runc. It boots
a VM with qemu-system-x86_64 and talks to an agent inside it. The nydus snapshotter is
there for a CoCo-specific reason: the container image must not be unpacked on the node,
which is untrusted. The node only passes the image reference along, and the guest pulls
the image itself.
Each RuntimeClass has its own Kata configuration file:
ssh node-01 "grep -E '^(path|kernel|image|shared_fs|default_vcpus|default_memory) =' \
/opt/kata/share/defaults/kata-containers/runtimes/qemu-coco-dev/configuration-qemu-coco-dev.toml"
shared_fs = "none" is the same idea again: no directory of the node is shared with the guest.
5. Launch a pod in a VM
The workload is the one from the guide. It differs from a normal nginx pod in two lines,
the runtimeClassName and an annotation that tells containerd which snapshotter to use
for the image:
cat ~/coco/nginx.yaml
kubectl apply -f ~/coco/nginx.yaml
Watch what happens to it:
kubectl get pod nginx -o wide
kubectl describe pod nginx | sed -n '/Events/,$p'
On this playground the pod stays in ContainerCreating, and the events show:
failed to create shim task: .../configuration-qemu-coco-dev.toml:
host system doesn't support vsock: stat /dev/vhost-vsock: no such file or directory
The scheduler did its part. The Kata shim started, loaded its configuration, and stopped before it launched QEMU. Check what the node offers:
~/coco/check-host.sh | tee ~/host-check.txt
Kata needs two things from the node, and this one has neither:
/dev/vhost-vsock: the channel between the shim on the node and the agent in the guest./dev/kvm: Kata's QEMU runs guests with KVM only. It has no software emulation to fall back on.
"Without hardware" in the name coco-dev means without a TEE. It still needs
virtualization. On bare metal, or in a VM with nested virtualization, the same pod
reaches Running, and kubectl exec nginx -- uname -r prints the guest kernel
version, not the node's.
Why did the install succeed on a node that cannot run VMs?
kata-deploy only copies files and configures containerd. In the DaemonSet mode this
chart uses, it never checks for /dev/kvm. The first component that needs a hypervisor
is the Kata shim, and it runs only when a pod of that RuntimeClass is created. A green
helm install therefore tells you the runtime is in place, not that the node can use it.
6. Uninstall
Remove the pod, the release and the namespace:
kubectl delete -f ~/coco/nginx.yaml
helm uninstall coco --namespace coco-system
kubectl delete namespace coco-system
On the way out, kata-deploy empties /opt/kata, removes its containerd configuration and
restarts containerd once more.
The last command usually returns within half a minute, but it can sit for up to 5 minutes
with one kata-as-coco-runtime pod in Terminating. That is a race in the chart: its
cleanup hook removes the installer's RBAC while the pod is still waiting to confirm the
node is ready. The node is already clean at that point, so just let it finish.
What's next
- CoCo without hardware explains the
coco-devruntime class. - Features covers what a TEE adds on top: attestation, sealed secrets, encrypted and signed images.
- The CoCo Helm charts repository lists every chart value.
- Nested virtualization on iximiuz Labs tracks when playground VMs get
/dev/kvmback.
Learn by doing, not just by reading or watching
Sign up for a free account to start a VM playground right on this page, track your progress, and get notified about new learning materials.

Native SSH Access with Pomerium
Pomerium can be used as a native SSH reverse proxy, adding OAuth authentication and flexible Pomerium policy enforcement to standard SSH connections, without the need for tunnels, or custom clients or servers.

Native SSH Reverse Tunneling with Pomerium
Use Pomerium's native SSH support to publish a local service through a standard reverse SSH tunnel, with OpenID Connect (OIDC) authentication and continuous authorization on every request. Reach services behind Network Address Translation (NAT) without firewall holes or custom agents, and control both who can use the service and who can open the tunnel. Application traffic stays on infrastructure you control.

Secure Machine-to-Machine Access with mTLS and Pomerium
Run a GitHub Actions-compatible continuous integration (CI) job on a private runner and protect its internal API call with mutual TLS (mTLS) and Pomerium. Build separate server and client trust chains, authorize one machine certificate by fingerprint, then revoke, restore, and rotate its credentials through live policy changes.

Harden Access to OpenClaw with Pomerium
Put OpenClaw, a self-hosted AI assistant with shell and file access, behind a web route and an SSH route, both gated by the same identity and Pomerium's context-aware policy. OpenClaw runs in trusted-proxy mode, trusting signed identity headers instead of its own login, while Pomerium's native SSH proxy signs short-lived certificates for shell access.