User Tools

Site Tools


proxmox:gpu_passthrough

This is an old revision of the document!


Proxmox - GPU Passthrough

PCI passthrough allows you to use a physical PCI device (graphics card, network card) inside a VM (KVM virtualization only).

If you “PCI passthrough” a device, the device is not available to the host anymore.

The hardware should, at the very least, support: VT-d, interrupt mapping, and UEFI BIOS.


There are multiple steps needed. Do these in the following order.


Configuring the VM

Edit the VM Config File

Edit /etc/pve/qemu-server/<vmid>.conf, where <vmid> is the VM ID Number you used during the VM creation (General Tab).

Add these lines.

machine: q35
cpu: host,hidden=1,flags=+pcid
args: -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_vendor_id=NV43FIX,kvm=off'

Add PCI Devices (Your GPU) to VM

Select the VM.

Under the Hardware Tab, click on the Add button towards the top.

Then under the drop-down menu, click PCI Device.

Look for the GPU in the list, and select it.

On the PCI options screen, you should only need to configure it like so:

  • All Functions: Checked.
  • Rom-Bar: Checked.
  • Primary GPU: Not Checked.
  • PCI-Express: Checked. This requires machine: q35 in the VM config file.

References

proxmox/gpu_passthrough.1623061790.txt.gz · Last modified: 2021/06/07 10:29 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki