Configuring the Host
The Host OS Administrator receives a system with the BIOS configured for Confidential Computing, installs the host OS, and configures the host to provision CVMs.
The NVIDIA Confidential Computing components run in the guest VM. Tuning the host OS and the hypervisor is outside the scope of this guide.
Performance Recommendations for Intel Hosts
For maximum CVM performance on Intel CPUs, NVIDIA recommends the following settings:
- Before you start the CVM, use the standalone version of pepc to make the following changes:
- Set the CPU frequency governor to
performance. - Disable the C1E and C6 CPU C-states.
- Set the CPU frequency governor to
- After the CVM boots, pin the vCPUs of the QEMU process by using
taskset. - Keep the Intel TDX Module firmware up to date. Use TDX Module version 1.x with Emerald Rapids CPUs and version 2.x with Granite Rapids CPUs.
Preparing the Host
-
Create the
/shareddirectory for the downloads and scripts in this guide, and give your user read and write permission on the directory: -
Update the host packages, and reboot if the upgrade requires a reboot:
-
Clone the NVIDIA GPU admin tools repository:
-
Install QEMU, OVMF, libvirt, and the InfiniBand diagnostics:
-
Install the
nvlsmpackage:
Validating SEV-SNP on AMD Hosts
-
Confirm that the host runs kernel 7.0 or later:
-
Confirm that the kernel is configured with the elliptic curve cryptography options:
-
Confirm that the kernel detects SEV-SNP:
If the output doesn’t show that SEV-SNP is enabled, review the BIOS settings in Configuring the Hardware. If the output reports that SEV-SNP requires a newer firmware version, upgrade the SEV firmware.
-
Confirm that KVM enables SEV, SEV-ES, and SEV-SNP. Each command prints
Y:
Upgrading the SEV Firmware
SEV-SNP requires SEV firmware version 1.51 or later.
If the firmware is older, the dmesg output is similar to the following example:
The latest SEV firmware is available from AMD and from the linux-firmware project.
The following steps install the firmware for AMD family 19h, model 0xh CPUs.
For other CPU generations and newer firmware versions, refer to the AMD documentation.
-
Download the firmware, copy the firmware to
/lib/firmware/amd, and reboot: -
After the host reboots, confirm that the firmware update succeeded:
-
Confirm that KVM enables SEV, SEV-ES, and SEV-SNP, as described in the previous section.
Configuring TDX on Intel Hosts
Intel and Canonical provide scripts that help you set up the host and the guest.
-
Download the Canonical TDX scripts:
-
Edit
/etc/default/gruband set the kernel command line: -
Update GRUB:
-
Add your user to the
kvmgroup and reboot: -
Confirm that the kernel detects TDX and initializes the TDX Module. Your TDX Module version can differ from the example:
If the output includes an error such as
SEAMCALL (0x0000000000000022) failed: 0xc0000c0000000000, the TDX Module is out of date. Contact your OEM for an updated BIOS, refer to Updating Your Intel TDX Module, or update the TDX Module.
Updating the TDX Module
-
Download the TDX Module for your CPU.
-
Emerald Rapids:
-
Granite Rapids:
-
-
Install the TDX Module in the EFI system partition and reboot:
Loading the VFIO Modules Automatically
Linux Virtual Function I/O (VFIO) is the passthrough driver that binds a GPU on the host to a guest VM.
The ib_umad module controls the NVLink Switches in multi-GPU Blackwell systems.
Create the /etc/modules-load.d/vfio.conf file with the following content so that the modules load at boot and are ready for the NVIDIA GPUs and NVLink Switches:
Preventing NVIDIA Drivers from Loading on the Host
Create the /etc/modprobe.d/blacklist-nvidia.conf file with the following content:
Installing Fabric Manager for Multi-GPU Blackwell Systems
Multi-GPU CC mode on Blackwell GPUs requires NVIDIA Fabric Manager. You can run Fabric Manager in a maintenance VM or in the guest VM. The following steps install Fabric Manager on the host.
-
Install Fabric Manager:
If the package isn’t available, enable the Ubuntu
-proposedrepository and run the command again:Beginning with driver branch 590, the Ubuntu package names don’t include the branch number. To switch branches, install specific driver versions, or upgrade and downgrade, use the version-locking (pinning) packages. Refer to Ubuntu 590 and later packages in the NVIDIA Driver Installation Guide.
-
Edit
/usr/share/nvidia/nvswitch/fabricmanager.cfgand changePARTITION_RAIL_POLICY=greedytoPARTITION_RAIL_POLICY=symmetric. CC mode on Blackwell GPUs requires the symmetric rail policy. -
Enable and start Fabric Manager:
After you configure the host, continue with Configuring the GPUs.