Home Home Server - GPU Passthrough to Proxmox VM
Post
Cancel

Home Server - GPU Passthrough to Proxmox VM

GPU Passthrough - Proxmox 7.2

BIOS/UEFI options

1
Enable IOMMU / VT-d in BIOS options

Edit /etc/default/grub/

Change intel_iommu for amd_iommu on amd systems

1
GRUB_CMDLINE_LINUX_DEFAULT="textonly quiet intel_iommu=on video=vesafb:off video=efifb:off video=simplefb:off"

Update GRUB

1
update-grub

Edit /etc/modules/

1
2
3
4
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

Edit /etc/modprobe.d/vfio.conf

Change id’s to match your graphics card.

1
options vfio-pci ids=10de:1430,10de:0fba disable_vga=1

Update module blacklist

1
2
3
4
5
echo "blacklist radeon" >> /etc/modprobe.d/blacklist.conf
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
echo "blacklist nvidia" >> /etc/modprobe.d/blacklist.conf
echo "options kvm ignore_msrs=1" > /etc/modprobe.d/kvm.conf
update-initramfs -u

create /root/fix_gpu_pass.sh

1
2
3
4
cd /root/
touch fix_gpu_pass.sh
chmod +x fix_gpu_pass.sh
nano fix_gpu_pass.sh

replace pci device with correct number from lspci

1
2
3
#!/bin/bash
echo 1 > /sys/bus/pci/devices/0000\:04\:00.0/remove
echo 1 > /sys/bus/pci/rescan

Edit crontab

1
crontab -e
1
@reboot /root/fix_gpu_pass.sh

Reboot the system

Passthrough gpu using web ui

This post is licensed under CC BY 4.0 by the author.