Help with Proxmox + Debian + Docker /w Nvidia 5060TI

Posted by EarEquivalent3929@reddit | LocalLLaMA | View on Reddit | 14 comments

Hi! Im at my Witts end here. I've been trying for the past few days with varying levels of success and failure. I have proxmox running with a Debian VM running docker containers. I'm trying to use a 5060ti in passthrough mode to the Debian VM

I have the cpu set to host and passed through the 5060TI using PCI.

I'm super confused, I've tried following multiple guides. But get various errors. The farthest I've gotten is running the Nvidia official installer for 575. However nvidia-smi in the Debian VM says "no devices found". But I do have a device in /dev/nvidia0.

My questions are:

What (if any) drivers do I need to install in the proxmox host?

What drivers do I need in the guest VM (Debian)?

Anything special I need to do to get it to work in docker containers (ollama)?

Thanks so much!