Chapter 7. Configuring a RHEL instance on Amazon Web Services with AMD SEV SNP
You can configure AMD Secure Encrypted Virtualization with Secure Nested Paging (SEV-SNP) on Red Hat Enterprise Linux (RHEL) instances on Amazon Web Services (AWS) to create a trusted boot environment.
SEV-SNP is a security feature of confidential virtual machines (CVMs). SEV-SNP aims to protect your data from access by the hypervisor and cloud service provider, and is available only for the AMD EPYC processor family.
Prerequisites
-
You have installed the
awscli2,openssh, andopenssh-clientspackages. - You have created an AWS EC2 instance using an AMD EPYC processor-based machine type from the supported list. For details, see supported instance types.
Procedure
Check if SEV-SNP is enabled for the RHEL instance:
aws ec2 describe-instances --instance-ids <example_instance_id> \ --region <example_region>
$ aws ec2 describe-instances --instance-ids <example_instance_id> \ --region <example_region>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Copy to Clipboard Copied! Toggle word wrap Toggle overflow If SEV-SNP is not enabled, get ID of a RHEL Amazon Machine Image (AMI):
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteDo not modify the command option
--owners 309956199498. This is the account ID for displaying Red Hat images. If you need to list images for AWS GovCloud, use--region us-gov-west-1and--owners 219670896067.Launch a RHEL instance with SEV-SNP enabled:
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
Verification
Check kernel logs to verify status of SEV-SNP:
dmesg | grep -i sev
$ dmesg | grep -i sevCopy to Clipboard Copied! Toggle word wrap Toggle overflow Copy to Clipboard Copied! Toggle word wrap Toggle overflow