AMDESE / sev-guest

Tools, scripts, and configuration files necessary to demonstrate an end-to-end remote attestation example with SEV-SNP.
Apache License 2.0
56 stars 28 forks source link

Unable to get attestation report #18

Closed caiqs-sys closed 2 years ago

caiqs-sys commented 2 years ago

It looks like when execute sev-guest-get-report, it will open "/dev/sev-guest", but i checked the /dev/ and I didn't have this device. I want to insmod sev-guest.ko, and got the following error message:

insmod: ERROR: could not insert module ./linux/guest/debian/linux-image/lib/modules/5.19.0-rc6-snp-guest-a7065246cf78/kernel/drivers/virt/coco/sev-guest/sev-guest.ko: No such device

I have installed guest kernel in AMDSEV with branch sev-snp-devel and enable SEV.

[    0.051663] Memory Encryption Features active: AMD SEV
[    2.243079] SVM: KVM is unsupported when running as an SEV guest

How to solve this problem, thanks!

caiqs-sys commented 2 years ago

The guest vm have to update the kernel,then modprobe sev-guest