Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

sev-guest-get-report fails with firmware error 27 #43

Open
DiWangShePi opened this issue Aug 9, 2023 · 2 comments
Open

sev-guest-get-report fails with firmware error 27 #43

DiWangShePi opened this issue Aug 9, 2023 · 2 comments

Comments

@DiWangShePi
Copy link

I'm having a bit of trouble trying to get a report.

$ sudo ./sev-guest-get-report guest_report.bin -x
Generating report using the following hash:
    0000000000000000000000000000000000000000000000000000000000000000
    0000000000000000000000000000000000000000000000000000000000000000

firmware error 27
get_extended_report: Directory not empty

I'm not quite sure what's going on, this is the first time I've tried using this tool. I looked at the system logs and confirmed that AMD SEV-SNP was enabled

$ sudo dmesg | grep -i SEV
[    1.566544] Memory Encryption Features active: AMD SEV SEV-ES SEV-SNP
[    2.129720] SEV: Using SNP CPUID table, 64 entries present.
[    2.565234] SEV: SNP guest platform device initialized.
[    8.790464] sev-guest sev-guest: Initialized SEV guest driver (using vmpck_id 0)

I would appreciate it if you could tell me what I did wrong or what steps I missed. The commands I execute are, in order:

git clone https://github.com/AMDESE/sev-guest.git
cd sev-guest
make sev-guest-get-report
make sev-guest-parse-report

Then I use this command and met the problem

sudo ./sev-guest-get-report guest_report.bin -x
@DiWangShePi
Copy link
Author

The tutorial I refer to is https://docs.aws.amazon.com/zh_cn/AWSEC2/latest/UserGuide/sev-snp.html
The OS image I use is Amazon Linux 2023
The instance type I use is c6a.xlarge
The region I chose is ohio (us-east-2)

@tanaybaswa
Copy link

This is exactly the same issue I am facing right now! Did you manage to figure it out?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants