Proxmox GPU Passthrough Guide (NVIDIA Tesla P4)#
1. Proxmox Host Configuration#
Pre-requisites#
- Ensure PCIe Bifurcation is set to OFF in the server BIOS.
Enable IOMMU#
- Open the GRUB configuration:
nano /etc/default/grub- Modify the line
GRUB_CMDLINE_LINUX_DEFAULT="quiet"to:
GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"- Update GRUB:
update-grub- Reboot the host.
Verify IOMMU Status#
dmesg | grep -e DMAR -e IOMMUNote: Look for the line:
DMAR: IOMMU enabled.
2. VM Configuration (Ubuntu 24.04)#
VM Hardware Settings#
- Machine:
q35 - BIOS:
SeaBIOS - Note: Do NOT run
apt updateorupgradeyet.
Add PCIe Device#
- Shut down the VM.
- Go to Hardware > Add > PCI Device.
- Select Raw Device > Select your GPU.
- Ensure All Functions and PCI-Express are checked.
3. Driver Installation in VM#
Verify Hardware Detection#
lspci -vlspci -nnk | grep -iA2 nvidiaPrepare Build Environment#
Required for version 550+ drivers: