Confidential Containers (CoCo) - Getting Started Playground
A kubeadm cluster (containerd 2.x, Kubernetes 1.37) ready for the Confidential Containers Getting Started guide: label a worker, install CoCo with Helm, inspect the kata-qemu-* RuntimeClasses, and try the kata-qemu-coco-dev workload.

- eth0
- /
- k8s-omni-dev-machine
- eth0
- /
- k8s-omni-cplane
- eth0
- /
- k8s-omni-node
About This Playground
A hands-on companion to the Confidential Containers Getting Started guide.
You get a real kubeadm cluster on three VMs:
| 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'll label for CoCo |
The cluster meets the guide's prerequisites: Kubernetes >= 1.24 (here 1.37), containerd >= 1.7 (here 2.x), Helm >= 3.8, and no SELinux.
There is no hardware TEE, and right now there is no KVM either. iximiuz Labs has temporarily turned off nested virtualization (the Cloud Hypervisor backend) because of a KVM guest-to-host escape vulnerability. Without it, VMs run on Firecracker, which has no /dev/kvm and no /dev/vhost-vsock. CoCo installs fine. The kata-qemu-coco-dev pod in step 5 then fails with host system doesn't support vsock. Seeing why it fails is part of the lesson. Once nested virtualization is back, switch each VM's Backend to Cloud Hypervisor before you start the playground, and the pod should run in a QEMU VM.
1. Check the cluster
From dev-machine:
kubectl get nodes -o wide
ssh node-01 containerd --version
2. Label a worker node
CoCo needs at least one node labeled node.kubernetes.io/worker:
kubectl label node node-01 node.kubernetes.io/worker=
3. Install CoCo with Helm
helm install coco oci://ghcr.io/confidential-containers/charts/confidential-containers \
--namespace coco-system \
--create-namespace
kubectl get pods -n coco-system --watch
The kata-as-coco-runtime DaemonSet (kata-deploy) copies Kata into /opt/kata on each node. It also adds the Kata runtime handlers to containerd and restarts containerd. Pulling the image takes about 1-2 minutes. Wait until every pod is Running.
To pin a chart version, add --version <VERSION>. Releases are listed at https://github.com/confidential-containers/charts/releases.
4. Verify the installation
kubectl get runtimeclass
kubectl get node node-01 --show-labels | tr ',' '\n' | grep kata
You should see kata-qemu-coco-dev (for non-TEE testing) next to the TEE classes kata-qemu-snp and kata-qemu-tdx. Look at what kata-deploy put on the node:
ssh node-01 ls /opt/kata/bin
ssh node-01 cat /opt/kata/containerd/config.d/kata-deploy.toml | head -40
ssh node-01 grep -E '^(path|kernel|image|shared_fs|default_memory)' \
/opt/kata/share/defaults/kata-containers/runtimes/qemu-coco-dev/configuration-qemu-coco-dev.toml
5. Run the simple workload
cat ~/coco/nginx.yaml
kubectl apply -f ~/coco/nginx.yaml
kubectl get pods
kubectl describe pod nginx | sed -n '/Events/,$p'
On Firecracker-backed VMs, 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
Check the host capabilities that Kata needs:
~/coco/check-host.sh
With a KVM-capable backend, you'd get nginx 1/1 Running, and kubectl exec nginx -- uname -r would print the guest kernel version, not the node's.
6. Uninstall
kubectl delete -f ~/coco/nginx.yaml
helm uninstall coco --namespace coco-system
kubectl delete namespace coco-system
Further reading
A real VM, not a container
Get root on a VM with its own kernel, so Docker, Kubernetes, and systemd just work.
Read the docs →
SSH from browser or CLI
Use the built-in web terminal, or connect with labctl ssh, plain ssh, scp, or rsync.
Read the docs →
Drive it with AI
Let Claude, Codex, or any MCP client start this playground and run commands in it.
Read the docs →
Expose HTTP(S) ports
Give any web app running inside the VM a public URL - for yourself or to share with others.
Read the docs →
Share terminals
Invite others into your terminal session, or open it yourself from another device.
Read the docs →
Customize with init scripts
Add shell scripts that run at boot to install packages, clone repos, or seed test data.
Read the docs →
Private networking
VMs reach the internet via NAT with no public IP; several VMs share bridge networks.
Read the docs →
Ephemeral or persistent
By default, VMs are destroyed when the session ends; enable persistence to keep the disks for next time.
Read the docs →
Built-in container registry
A private registry.iximiuz.com for every playground to share images across services and VMs.
Read the docs →