Chapter 7. Configuring a RHEL VM on Azure with Intel TDX
By using Intel Trusted Domain Extensions (TDX), you can create hardware-assisted isolated VMs known as trusted domains (TDs). It ensures that only the VM has access to its resources, while remaining inaccessible to hypervisors and hosts.
Prerequisites
-
You have installed the
opensshandopenssh-clientspackages. - You have installed the Azure CLI utility. For details, see Installing the Azure CLI on Linux.
- You have launched the RHEL instance from a supported Azure instance type. For details, see Azure Confidential VM options.
Procedure
Log in to Azure by using the
azure cliutility:az login
$ az loginCopy to Clipboard Copied! Toggle word wrap Toggle overflow Create an Azure resource group for the selected availability zone:
az group create --name <example_resource_group> --location westeurope
$ az group create --name <example_resource_group> --location westeuropeCopy to Clipboard Copied! Toggle word wrap Toggle overflow Deploy a RHEL instance with TDX enabled, for example, the
Standard_DC2eds_v5instance type:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Connect to the RHEL instance:
ssh <example_azure_user>@<example_ip_address_of_the_instance>
$ ssh <example_azure_user>@<example_ip_address_of_the_instance>Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Check kernel logs to verify status of TDX:
sudo dmesg | grep -i tdx
$ sudo dmesg | grep -i tdxCopy to Clipboard Copied! Toggle word wrap Toggle overflow ... [ 0.733613] Memory Encryption Features active: Intel TDX [ 4.320222] systemd[1]: Detected confidential virtualization tdx. [ 5.977432] systemd[1]: Detected confidential virtualization tdx. ...
... [ 0.733613] Memory Encryption Features active: Intel TDX [ 4.320222] systemd[1]: Detected confidential virtualization tdx. [ 5.977432] systemd[1]: Detected confidential virtualization tdx. ...Copy to Clipboard Copied! Toggle word wrap Toggle overflow Check metadata of the RHEL instance configuration:
az vm show --resource-group <example_resource_group> \ --name <example_rhel_instance> \ --query "securityProfile.enableTrustedDomainExtensions" \ --output json
$ az vm show --resource-group <example_resource_group> \ --name <example_rhel_instance> \ --query "securityProfile.enableTrustedDomainExtensions" \ --output jsonCopy to Clipboard Copied! Toggle word wrap Toggle overflow