Proxmox GPU passthrough
GPU passthrough - PVE 9.1.2
- Run the post-install script
- 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
- 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
- NOTICE the orange changes in the VM->Hardware gui means that a reboot is needed.
- install
nvidia-drivers-580andnvtop - install
ollama - May be needed -> Forcing Ollama to bind to 0.0.0.0 instead of localhost · Issue #5905 · ollama/ollama
- If running local VMs and want to connect them with ollama without hassle.