docs: update for SNP attestation

This updates how-to document for SNP attestation.

Signed-off-by: Niteesh Dubey <niteesh@us.ibm.com>
This commit is contained in:
Niteesh Dubey
2024-07-09 18:35:53 +00:00
parent ff04154fdb
commit e8a3f8571e
3 changed files with 15 additions and 2 deletions

View File

@@ -53,7 +53,14 @@ $ ./configure --enable-virtfs --target-list=x86_64-softmmu --enable-debug
$ make -j "$(nproc)"
$ popd
```
- Create cert-chain for SNP attestation ( using [snphost](https://github.com/virtee/snphost/blob/main/docs/snphost.1.adoc) )
```bash
$ git clone https://github.com/virtee/snphost.git && cd snphost/
$ cargo build
$ mkdir /tmp/certs
$ ./target/debug/snphost fetch vcek der /tmp/certs
$ ./target/debug/snphost import /tmp/certs /opt/snp/cert_chain.cert
```
### Kata Containers Configuration for SNP
The configuration file located at `/etc/kata-containers/configuration.toml` must be adapted as follows to support SNP-VMs:
@@ -100,6 +107,10 @@ sev_snp_guest = true
- Configure an OVMF (add path)
```toml
firmware = "/path/to/kata-containers/tools/packaging/static-build/ovmf/opt/kata/share/ovmf/OVMF.fd"
```
- SNP attestation (add cert-chain to default path or add the path with cert-chain)
```toml
snp_certs_path = "/path/to/cert-chain"
```
## Test Kata Containers with Containerd

View File

@@ -87,6 +87,7 @@ SELinux/B
SemaphoreCI/B
snapcraft/B
snapd/B
snphost/B
SQLite/B
StratoVirt/B
SUSE/B

View File

@@ -1,4 +1,4 @@
387
392
ACPI/AB
ACS/AB
API/AB
@@ -340,6 +340,7 @@ serverless
signoff/A
snapcraft/B
snapd/B
snphost/B
stalebot/B
startup
stderr/AB