Ce contenu n'est pas disponible dans la langue sélectionnée.
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>... "CpuOptions": { "CoreCount": 2, "ThreadsPerCore": 2, "AmdSevSnp": "enabled" }, ...If SEV-SNP is not enabled, get ID of a RHEL Amazon Machine Image (AMI):
$ aws ec2 describe-images \ --owners 309956199498 \ --query 'sort_by(Images, &Name)[].[CreationDate,Name,ImageId]' \* --filters "Name=name,Values=RHEL-10" \* --region us-east-1 \ --output tableNoteDo 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:
$ aws ec2 run-instances \ --image-id <example-rhel-10-ami-id> \ --instance-type m6a.4xlarge \ --key-name <example_key_pair_name> \ --subnet-id <example_subnet_id> \ --cpu-options AmdSevSnp=enabled
Verification
Check kernel logs to verify status of SEV-SNP:
$ dmesg | grep -i sev... [ 7.509546] Memory Encryption Features active: AMD SEV SEV-ES SEV-SNP [ 8.469487] SEV: Using SNP CPUID table, 64 entries present. [ 9.433348] SEV: SNP guest platform device initialized. [ 33.314380] sev-guest sev-guest: Initialized SEV guest driver (using vmpck_id 0) ...