Me this past weekend trying to setup GPU passthrough to a VM. Bought an AMD card just to passthrough my existing Nvidia one and have had nothing but issues with multiple distros 😔
That might be a questionable choice given that this would leave the nvidia driver running on host machine and it’s usually the most fucky part of this whole operation.
Passthrough not actually working, VM not detecting the GPU or not loading qemu properly even with everything loaded properly. Tried on 3 different distros (Ubuntu and arch based) and none worked. Might try the other suggestion to swap the cards. Just means I’ll have to redo my water loop for the 2nd time this week 🙃
This is, indeed, uncommon. Typically the GPU either gets detected(abeit, often with errors), or the VM doesn’t start at all. Do you use libvirt by and chance?
But are you launching VM via virsh/virt-manager or directly using qemu-system-x86_64? Could you provide the XML or the command line you’re using? What does lspci -k say in regards to your GPU’s?
Good to know, I was just thinking of doing this exact thing. I haven’t pulled the trigger on the AMD card though. I wanted it for wayland, but I still want to do CUDA things with my Nvidia card.
Me this past weekend trying to setup GPU passthrough to a VM. Bought an AMD card just to passthrough my existing Nvidia one and have had nothing but issues with multiple distros 😔
oh yeah gpu passthrough is very shitty with nvidia cards (typical), try passing your amd card through instead
That might be a questionable choice given that this would leave the nvidia driver running on host machine and it’s usually the most fucky part of this whole operation.
Any specific issues? Pretty sure there’s lots of people in this sub who could help you out with that, myself included.
Passthrough not actually working, VM not detecting the GPU or not loading qemu properly even with everything loaded properly. Tried on 3 different distros (Ubuntu and arch based) and none worked. Might try the other suggestion to swap the cards. Just means I’ll have to redo my water loop for the 2nd time this week 🙃
This is, indeed, uncommon. Typically the GPU either gets detected(abeit, often with errors), or the VM doesn’t start at all. Do you use libvirt by and chance?
Yes, I installed libvirt along with the many other packages required
But are you launching VM via virsh/virt-manager or directly using
qemu-system-x86_64
? Could you provide the XML or the command line you’re using? What doeslspci -k
say in regards to your GPU’s?Dual GPU build?
Good to know, I was just thinking of doing this exact thing. I haven’t pulled the trigger on the AMD card though. I wanted it for wayland, but I still want to do CUDA things with my Nvidia card.