Post

Proxmox 8 PCI Passthrough

Setup

Bootloader: Grub
Graphics Card: AMD Radeon 5700xt

Working Configuration

Edit/create grub file located at /etc/default/grub

1
GRUB_CMDLINE_LINUX_DEFAULT="quiet amd_iommu=on iommu=pt nomodeset pcie_acs_override=downstream initcall_blacklist=sysfb_init"

Edit/create modules file located at /etc/modules

1
2
3
4
5
vendor-reset
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd

Edit/create vfio.conf file located at /etc/modprobe.d/vfio.conf

1
options vfio-pci ids=1002:731f,1002:ab38 disable_vga=1

Created a service to set the reset_method using method shown here

Edit/create vrwa service file located at /lib/systemd/system/vrwa.service

1
2
3
4
5
6
7
8
9
[Unit]
Description=vrwa Service
After=multi-user.target

[Service]
ExecStart=/usr/bin/bash -c 'echo device_specific > /sys/bus/pci/devices/0000:0c:00.0/reset_method'

[Install]
WantedBy=multi-user.target

Once created run the following command to enable to service:

1
systemctl enable vrwa

Resources

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