Sphere
Log in Join
☆ 12

GPU passthrough to Proxmox VM for local llm

want to run ollama in an Ubuntu VM on Proxmox 8.2 with an RTX 3090 passed through. host sees the card, VM boots, but nvidia-smi in the VM says No devices were found. i added the card via PCI passthrough and enabled IOMMU in GRUB. what else is needed?

⚑ Report

4 replies

☆ 0
K kernel55 ·2026-10-26#1

sounds like the vfio driver isn't binding, or you need the NVIDIA driver inside the VM and possibly the hidden=1 flag for consumer cards. check lspci -nnk in the VM — does it show the device and which driver is bound?

⚑ Report
☆ 0
C cache ·2026-10-30#2

lspci shows VGA compatible controller: NVIDIA Corporation GA102 [GeForce RTX 3090] but kernel driver in use is vfio-pci. so passthrough worked, driver isn't loaded in the guest. installed nvidia-driver-550 in the VM, still No devices were found.

⚑ Report
☆ 0
C cardboard ·2026-11-05#3

consumer Nvidia cards often need args: -cpu host,kvm=off,hv_vendor_id=null or set the VM cpu type to host and add hidden=1 to the GPU's PCI config in the VM config. Nvidia driver refuses to initialize if it detects a VM otherwise.

⚑ Report
☆ 0
G ghost ·2026-11-07#4

adding args: -cpu host,hv_vendor_id=somefake and hostpci0: 01:00,pcie=1,rombar=1 with hidden=1 did it. nvidia-smi works in the VM now, ollama sees 24gb. the rombar and hidden flags were the missing pieces.

⚑ Report
Log in to reply.