EQTY LabDocs

Install/Upgrade EQTY PodVM

Install or upgrade the EQTY notary PodVM image on a bare-metal node.

View as Markdown

This guide assumes a k3s cluster with the upstream Confidential Containers Helm chart already installed, the kata-qemu-* runtime class present, and an NVidia GPU is in CC mode bound to the node.

This guide will help you use the prebuilt EQTY notary enabled PodVM (either the CPU initrd or the GPU-TDX image.raw). No repo checkout and no repo scripts are required.

1. Get the artifact

Get the URL for the EQTY PodVM artifact(s) for the target you are installing/updating from. The URLs can be received from deployment artifacts page:

  • eqty-vcomp-baremetal-tdx-prod-initrd.img
  • eqty-vcomp-baremetal-gpu-tdx-image.raw
  • eqty-vcomp-baremetal-gpu-tdx-kata-config-dropin.toml
  • eqty-vcomp-baremetal-snp-prod-initrd.img

Paste the required values here to automatically apply them in this doc.

2. Install the new PodVM

bash
PODVM_URL="{{PODVM_DOWNLOAD_URL}}"
PODVM_DIR="/opt/eqty/podvm/current"

mkdir -p $PODVM_DIR
curl -fSL -o "$PODVM_DIR/initrd" "$PODVM_URL"
bash
PODVM_URL="{{PODVM_DOWNLOAD_URL}}"
DROPIN_URL="{{PODVM_DROPIN_URL}}"
DROPIN_FILE=/opt/kata/share/defaults/kata-containers/runtimes/qemu-nvidia-gpu-tdx/config.d/70-eqty-podvm.toml
PODVM_DIR="/opt/eqty/podvm/current"

mkdir -p $PODVM_DIR
curl -fSL -o "$PODVM_DIR/image.raw" "$PODVM_URL"

rm -f $DROPIN_FILE
curl -fSL -o "$DROPIN_FILE" "$DROPIN_URL"
sed -i "s|^\([[:space:]]*\)image[[:space:]]*=.*|\1image = \"$PODVM_DIR/image.raw\"|" $DROPIN_FILE
bash
PODVM_URL="{{PODVM_DOWNLOAD_URL}}"
PODVM_DIR="/opt/eqty/podvm/current"

mkdir -p $PODVM_DIR
curl -fSL -o "$PODVM_DIR/initrd" "$PODVM_URL"

3. Restart Kubernetes (if needed)

No restart required

bash
systemctl restart k3s
kubectl wait --for=condition=Ready node --all --timeout=120s

kubectl get node "$(hostname)"  -o jsonpath='{.status.allocatable.nvidia\.com/pgpu}'   # expect: 1

No restart required

4. Restart guests

Restarting k3s reloads the drop-in, but it does not touch a guest that is already running. A pod scheduled before the swap keeps its old CVM — and therefore the old notary and rootfs — until it is deleted and recreated:

bash
kubectl delete pod <pod> --grace-period=30
kubectl apply -f <pod>.yaml

Reminder: Never use --force --grace-period=0 on a live GPU pod. The kata-shim and QEMU can still hold an iommufd binding to the GPU at that point, and a force-delete leaks it, leaving the next pod unable to claim the device.

Note: No host reboot is needed.