mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-28 08:17:37 +00:00
Merge pull request #10386 from kimullaa/fix-build-error-when-using-sev-snp
docs: Fix several build failures when I tried the procedures in "Kata Containers with AMD SEV-SNP VMs"
This commit is contained in:
commit
e46d24184a
@ -29,16 +29,16 @@ __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)
|
- Build the SNP-specific kernel as shown below (see this [guide](../../tools/packaging/kernel/README.md#build-kata-containers-kernel) for more information)
|
||||||
```bash
|
```bash
|
||||||
$ pushd kata-containers/tools/packaging/
|
$ pushd kata-containers/tools/packaging/
|
||||||
$ ./kernel/build-kernel.sh -a x86_64 -x snp setup
|
$ ./kernel/build-kernel.sh -a x86_64 -x setup
|
||||||
$ ./kernel/build-kernel.sh -a x86_64 -x snp build
|
$ ./kernel/build-kernel.sh -a x86_64 -x build
|
||||||
$ sudo -E PATH="${PATH}" ./kernel/build-kernel.sh -x snp install
|
$ sudo -E PATH="${PATH}" ./kernel/build-kernel.sh -x install
|
||||||
$ popd
|
$ popd
|
||||||
```
|
```
|
||||||
- Build a current OVMF capable of SEV-SNP:
|
- Build a current OVMF capable of SEV-SNP:
|
||||||
```bash
|
```bash
|
||||||
$ pushd kata-containers/tools/packaging/static-build/ovmf
|
$ pushd kata-containers/tools/packaging/static-build/ovmf
|
||||||
$ ./build.sh
|
$ ovmf_build=sev ./build.sh
|
||||||
$ tar -xvf edk2-x86_64.tar.gz
|
$ tar -xvf edk2-sev.tar.gz
|
||||||
$ popd
|
$ popd
|
||||||
```
|
```
|
||||||
- Build a custom QEMU
|
- Build a custom QEMU
|
||||||
@ -106,7 +106,7 @@ sev_snp_guest = true
|
|||||||
```
|
```
|
||||||
- Configure an OVMF (add path)
|
- Configure an OVMF (add path)
|
||||||
```toml
|
```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)
|
- SNP attestation (add cert-chain to default path or add the path with cert-chain)
|
||||||
```toml
|
```toml
|
||||||
|
Loading…
Reference in New Issue
Block a user