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

Latest commit

 

History

History
60 lines (48 loc) · 1.68 KB

cloud-host-setup.md

File metadata and controls

60 lines (48 loc) · 1.68 KB

Cloud Host

Kernel, Hypervisor, and Guest UEFI Image

Currently, the simplest way to install a SEV-SNP environment with the proper kernel, qemu, and OVMF support is to use the AMDSEV repo.

  1. Clone the sev-snp-devel branch of the AMDSEV repo:
git clone --single-branch -b sev-snp-devel https://github.com/AMDESE/AMDSEV.git
cd AMDSEV
  1. Run the build.sh script:
./build.sh
  1. Install the resulting debian packages:
sudo apt install linux/host/*.deb

The Qemu and OVMF binaries are now installed in ./usr under the AMDSEV directory.

SEV-SNP Firmware

The SEV-SNP firmware version needed to run this example can be downloaded here. The firmware can be installed as follows:

mkdir -p /lib/firmware/amd/
cp attestation/firmware/sev.fw /lib/firmware/amd/sev.fw

sev-host Tool (Optional)

This tool is used to store the certificate chain (if any) needed to validate the VCEK signature on the SNP guest reports.

Building the sev-host tool requires the linux-libc-dev package from the SEV-SNP host kernel build:

sudo apt install ../AMDSEV/linux/host/linux-libc-dev*.deb

The sev-host utility also requires the following development packages to be installed:

sudo apt install uuid-dev

Lastly, OpenSSL >= 3.0.0 must also be available on the system:

pushd ..
git clone https://github.com/openssl/openssl.git
cd openssl
./Configure
make -j $(getconf _NPROCESSORS_ONLN)
sudo make install
sudo ldconfig /usr/local/lib64
popd

The sev-host utility can then be built using make:

make -j $(getconf _NPROCESSORS_ONLN)