This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
1. Launch TD Guest
LeiZhou edited this page May 7, 2024
·
4 revisions
By default KubeVirt is not support TD Guest, it's not mature enough to be enabled by default.
This feature needs to be activated in kubevirt CRD manually.
kubectl edit kubevirt -n kubevirt
...
spec:
configuration:
developerConfiguration:
featureGates:
- WorkloadEncryptionTDX
Note: The provided pre-built image is only for validation TDX functionality.
- Custom Ephemeral Storage: ContainerDisk
- Custom Persistent Volume: Containerized Data Importer
kubectl create -f vmi-ubuntu-td.yaml
After deployment, the status of VMI could be check by kubectl
kubectl get vmi
NAME AGE PHASE IP NODENAME READY
vmi-ubuntu-td 36s Running 172.10.13.190 css-spr-prc1 True
When the status of vmi changes to True, it's time to login.
- virtctl
virtctl binary path: _out/cmd/virtctl
# console mode
./virtctl console vmi-ubuntu-td
# ssh mode
./virtctl ssh root@vmi-ubuntu-td
Run the following command in the TD guest.
dmesg | grep -i tdx
If the dmesg not contains such message, means TDX is not enabled.
[ 0.000000] tdx: Guest detected