Skip to content

Instantly share code, notes, and snippets.

@kstevenson722
Last active April 1, 2022 23:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save kstevenson722/99e78a337b6326a12b6aa098349b489e to your computer and use it in GitHub Desktop.
Save kstevenson722/99e78a337b6326a12b6aa098349b489e to your computer and use it in GitHub Desktop.
Proxmox hardware passthrough

Remote Gaming and Video editing with Proxmox GPU passthrough in a Windows 10 VM.

Are you a PC enthusiast want to play around virtualization and have you just recently upgraded to a 3000 series RTX card and don't know what to do with your 2000 series well I have a project for you.

I am going to assume you have a Proxmox Host with an extra GPU setup.

Once you pass the GPU through to a VM the host will not have access to the GPU anymore. This is why I recomend adding a second GPU to your host. Also the GPU cannot be shared across guests.

Changes to Proxmox Server

ssh into your Proxmox Server and edit Grub

ssh root@yourproxmoxipaddress
nano /etc/default/grub

Update the "GRUB_CMDLIN_LINUX_DEFAULT" line. Bye default it will be set to quiet.
Alt

Intel CPU

For Intel CPUs add "intel_iommu=on", for example:

GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on"

Save changes and update grub:

update-grub

Reboot Proxmox Host

Edit Modules

add to /etc/modules

vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

On your windows 10 vm you will want to make sure remote destop is turned on. You may loose VNC access after you pass the GPU though.

Edit virtual machine's config file

cpu: host,hidden=1,flags=+pcid

from proxmox add pci device.

Block drivers from Host machine

edit /etc/modprobe.d/pve-blacklist.conf

block these drivers from being loaded

blacklist nvidiafb
blacklist nvidia
blacklist radeon
blacklist nouveau
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment