I want to pass through a dedicated GPU to my Ubuntu VM but running into issues. When creating a VM and assigning the GPU, system reports:
"At least 1 GPU is required by the host for its functions.
With your selection, no GPU is available for the host to consume."
So I tried passing through the GPU as a PCI device, but the VM does not start at all.
I then tried to isolate the GPU but getting the same error in quotes above. My CPU does not have iGPU, so currently there is only the dedicated GPU in the system.
Is my only option to get an additional GPU to set as the main display device and then be able to isolate the secondary GPU? I don’t understand how it’s “required for functions” by the host if it runs totally fine without an iGPU and dedicated GPU?
So I went ahead and installed a GT710, and now I isolated my RTX 3070 which I want to pass through. I spent about 4 hours last night trying to pass it through to the VM and I am kind of giving up.
My problem is when adding the VGA and audio device to the VM, I get an infinite “Please wait” box prompt as I start the VM. And I have no clue what to do next. Somehow I managed to once get the GT710 passed through, but think it was sheer luck. i’ve tried swapping around physical PCIe slots and tried booting from each GPU independently. Perhaps my hardware setup is not optimal for TrueNAS SCALE.
For it to work, the GPU and the audio device needs to be in a discreet IOMMU group.
You can check by running this script:
#!/bin/bash
for d in /sys/kernel/iommu_groups/*/devices/*; do
n=${d#*/iommu_groups/*}; n=${n%%/*}
printf 'IOMMU Group %s ' "$n"
lspci -nns "${d##*/}"
done
Save this script on your truenas as IOMMU.sh
Then run it with