Prepare a bare-metal instance
Hardware and firmware setup
- AMD SEV-SNP
- Intel TDX
- Update your BIOS to a version that supports AMD SEV-SNP. Updating to the latest available version is recommended as newer versions will likely contain security patches for AMD SEV-SNP.
- Enter BIOS setup to enable SMEE, IOMMU, RMP coverage, and SEV-SNP. Set the SEV-ES ASID Space Limit to a non-zero number (higher is better).
- Download the latest firmware version for your processor from AMD, unpack it, and place it in
/lib/firmware/amd
.
Consult AMD's Using SEV with AMD EPYC Processors user guide for more information.
Follow Canonical's instructions on setting up Intel TDX in the host's BIOS.
Kernel Setup
- AMD SEV-SNP
- Intel TDX
Install a kernel with version 6.11 or greater. If you're following this guide before 6.11 has been released, use 6.11-rc3. Don't use 6.11-rc4 - 6.11-rc6 as they contain a regression. 6.11-rc7+ might work.
Follow Canonical's instructions on setting up Intel TDX on Ubuntu 24.04. Note that Contrast currently only supports Intel TDX with Ubuntu 24.04.
Increase the user.max_inotify_instances
sysctl limit by adding user.max_inotify_instances=8192
to /etc/sysctl.d/99-sysctl.conf
and running sysctl --system
.
K3s Setup
- Follow the K3s setup instructions to create a cluster.
- Install a block storage provider such as Longhorn and mark it as the default storage class.