Posted on ::

GPU passthrough - PVE 9.1.2

  1. Run the post-install script
  2. Enable IO-MMU

In the BIOS menu: AMD CBS > NBIO Common Options > IOMMU: Enabled.

In the proxmox's shell check if it's enabled:

dmesg | grep IOMMU

Add amd_iommu=on iommu=pt to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub:

vi /etc/default/grub

Update and reboot:

update-grub && update-initramfs -u -k all && reboot
  1. Blacklist the driver
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
echo "blacklist nvidia*" >> /etc/modprobe.d/blacklist.conf

Then reboot. After reboot, the GPU could be selected as PCIe device by a VM instance.

Ollama

Resources

Table of Contents