From d7f6fabe65c2015b3508bffb2549291dd689ab84 Mon Sep 17 00:00:00 2001 From: Shunsuke Kimura Date: Fri, 4 Oct 2024 15:47:39 +0900 Subject: [PATCH 1/2] docs: fix build-kernel.sh option `build-kernel.sh` no longer takes an argument for the -x option. Fixes #10378 Signed-off-by: Shunsuke Kimura --- docs/how-to/how-to-run-kata-containers-with-SNP-VMs.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/how-to/how-to-run-kata-containers-with-SNP-VMs.md b/docs/how-to/how-to-run-kata-containers-with-SNP-VMs.md index 962e43698e..42dd952d52 100644 --- a/docs/how-to/how-to-run-kata-containers-with-SNP-VMs.md +++ b/docs/how-to/how-to-run-kata-containers-with-SNP-VMs.md @@ -29,9 +29,9 @@ __SNP-specific steps:__ - Build the SNP-specific kernel as shown below (see this [guide](../../tools/packaging/kernel/README.md#build-kata-containers-kernel) for more information) ```bash $ pushd kata-containers/tools/packaging/ -$ ./kernel/build-kernel.sh -a x86_64 -x snp setup -$ ./kernel/build-kernel.sh -a x86_64 -x snp build -$ sudo -E PATH="${PATH}" ./kernel/build-kernel.sh -x snp install +$ ./kernel/build-kernel.sh -a x86_64 -x setup +$ ./kernel/build-kernel.sh -a x86_64 -x build +$ sudo -E PATH="${PATH}" ./kernel/build-kernel.sh -x install $ popd ``` - Build a current OVMF capable of SEV-SNP: From 706e8bce8903473193c2444d489cc06499a9faa6 Mon Sep 17 00:00:00 2001 From: Shunsuke Kimura Date: Fri, 4 Oct 2024 15:47:56 +0900 Subject: [PATCH 2/2] docs: change from OVMF.fd to AmdSev.fd change the build method to generate OVMF for AmdSev. This commit adds `ovmf_build=sev` env parameter. Fixes #10378 Signed-off-by: Shunsuke Kimura --- docs/how-to/how-to-run-kata-containers-with-SNP-VMs.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/how-to/how-to-run-kata-containers-with-SNP-VMs.md b/docs/how-to/how-to-run-kata-containers-with-SNP-VMs.md index 42dd952d52..c0535ce390 100644 --- a/docs/how-to/how-to-run-kata-containers-with-SNP-VMs.md +++ b/docs/how-to/how-to-run-kata-containers-with-SNP-VMs.md @@ -37,8 +37,8 @@ $ popd - Build a current OVMF capable of SEV-SNP: ```bash $ pushd kata-containers/tools/packaging/static-build/ovmf -$ ./build.sh -$ tar -xvf edk2-x86_64.tar.gz +$ ovmf_build=sev ./build.sh +$ tar -xvf edk2-sev.tar.gz $ popd ``` - Build a custom QEMU @@ -106,7 +106,7 @@ 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" +firmware = "/path/to/kata-containers/tools/packaging/static-build/ovmf/opt/kata/share/ovmf/AMDSEV.fd" ``` - SNP attestation (add cert-chain to default path or add the path with cert-chain) ```toml