Chapter 9. Configuring a RHEL VM on Azure with AMD SEV SNP
You can configure AMD Secure Encrypted Virtualization with Secure Nested Paging (SEV-SNP) on RHEL VMs on Azure to create a trusted boot environment. SEV-SNP protects your data from access by the hypervisor and cloud service provider, and is available only for AMD EPYC processor family.
Prerequisites
-
You have installed the
opensshandopenssh-clientspackages. - You have installed the Azure CLI utility. For details, see Installing the Azure CLI.
- You have created an Azure virtual machine (VM) that uses a supported AMD EPYC processor-based machine type. For a list of supported machine types, see Supported VM sizes for CVM.
Procedure
Log in to Azure by using the Azure CLI utility:
az login
$ az loginCopy to Clipboard Copied! Toggle word wrap Toggle overflow Create an azure resource group for selected availability zone:
az group create --name <example_resource_group> --location eastus
$ az group create --name <example_resource_group> --location eastusCopy to Clipboard Copied! Toggle word wrap Toggle overflow Deploy a RHEL instance with SEV-SNP, for example, the
Standard_DC4as_V5instance type:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Connect to the RHEL instance:
ssh <example_azure_user>@<example_ip_address_of_VM>
$ ssh <example_azure_user>@<example_ip_address_of_VM>Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Check kernel logs to verify status of SEV-SNP:
sudo dmesg | grep -i sev
$ sudo dmesg | grep -i sevCopy to Clipboard Copied! Toggle word wrap Toggle overflow ... [ 0.547223] Memory Encryption Features active: AMD SEV [ 4.843171] kvm-guest: setup_efi_kvm_sev_migration : EFI live migration variable not found ...
... [ 0.547223] Memory Encryption Features active: AMD SEV [ 4.843171] kvm-guest: setup_efi_kvm_sev_migration : EFI live migration variable not found ...Copy to Clipboard Copied! Toggle word wrap Toggle overflow