Using GPU Passthrough
Using GPU Passthrough in Virtual Machines¶
Now that you've installed the NVIDIA GPU operator, and your nodes have been configured for GPU passthrough and VFIO, we can attach our GPU to a KubeVirt VM.
Info
If you haven't installed the GPU operator, or configured your nodes for GPU passthrough you can see our guide here
Attach GPU to a KubeVirt VM Workload¶
- Navigate to Workloads in Juno
- Select your VM template
- In the GPU section, you'll see a True/False toggle
- Enable GPU passthrough
- Enter the exact device name from the allocatable resources:
- Example:
nvidia.com/TU104_GEFORCE_RTX_2080
GPU allocation rules¶
- Currently: Each VM can request exactly one GPU
- Multiple GPUs: Multiple GPU passthrough per VM is coming soon (TBD)
- Device name: Must match the exact string from
kubectl get nodesoutput