Refer to this delta topic if you are configuring TKGS to support AI/ML workloads using vGPU and Dynamic DirectPath IO.

vSphere Administrator Workflow Adjustments for vGPU with Dynamic DirectPath IO

To use vGPU and Dynamic DirectPath IO, follow the same vGPU workflow with the following changes.

Admin Step 2: Enable Passthrough for the PCI Device

To use vGPU and Dynamic DirectPath IO, configure each ESXi host for vGPU has described here: Admin Step 2: Configure Each ESXi Host for vGPU Operations.

In addition, configure the GPU device as follows.
  1. Log on to the vCenter Server using the vSphere Client.
  2. Select the target ESXi host in the vCenter Cluster.
  3. Select Configure > Hardware > PCI Devices.
  4. Select the All PCI Devices tab.
  5. Select the target NVIDIA GPU accelerator device.
  6. Click Toggle Passthrough.
  7. Right-click the ESXi host and put it into maintenance mode.
  8. Reboot the host.
  9. When the host is running again, take it out of maintenance mode.

Admin Step 7: Create a Custom VM Class with a vGPU and Dynamic DirectPath IO

To use vGPU and Dynamic DirectPath IO, first configure a custom VM Class with a NVIDIA vGPU profile as described here: Admin Step 7: Create a Custom VM Class with the vGPU Profile.

Then, to this VM Class you add a second PCI Device configuration with Dynamic DirectPath IO specified and the supported PCI Device selected. When a VM Class of this type is instantiated, the vSphere Distributed Resource Scheduler (DRS) determines VM placement.

Refer to the following instructions to create a custom VM Class supporting vGPU and Dynamic DirectPath IO. For additional guidance, see Add PCI Devices to a VM Class in vSphere with Tanzu.
  1. Log on to the vCenter Server using the vSphere Client.
  2. Select Workload Management.
  3. Select Services.
  4. Select VM Classes.
  5. Edit the custom VM Class that is already configured with a NVIDIA vGPU profile.
  6. Select the PCI Devices tab.
  7. Click Add PCI Device.
  8. Select the Dynamic DirectPath IO option.

  9. Select the PCI Device.

    For example:

  10. Click Next.
  11. Review and confirm your selections.
  12. Click Finish.
  13. Verify that the new custom VM Class is available in the list of VM Classes.