GPUpassthrough with KVM

I’m trying to figure out how to get the GPU passthrough to work on the KVM QEMU to work so that I can utilize my GPU on virtual machines. I have IOMMU enabled in my motherboard BIOS and I have modified GRUB to where it is supposed to be enabling the passthrough to work, but I’m not able to figure out how to get the virtual machines to recognize my GPU. I have an ASUS x570 TUF Gaming-Plus (Wi-Fi) with the latest BIOS, AMD Ryzen 5700G, AMD Radeon RX6700.

have a look at this link i saved for when i get around to trying this.

1 Like

From what it is showing in this article, would I need to have both my iGPU and my dGPU active and have both of them plugged into my monitor? Since I have the Ryzen 5700G, the onboard graphics on my motherboard are accessible in addition to the graphics card. I appreciate the link as I want to make it to where I do not need to have dual-boot at all for anything and instead, I can just go into the VM when I have something that won’t run on Linux.

then you would want to blacklist the dGPU so linux doesn’t use it and let it find the iGPU for your linux desktop.

then when you fire up the VM the dGPU will begin to output signal (once properly set up) and likely you would need to have a dedicated monitor as well for the VM guest.

Would it need to be that the blacklisting would be the dGPU or is it able to be the iGPU? Is it not possible to utilize the GPU passthrough and have both Linux and the VM detect the dGPU?

i think you can only pass a dGPU to the VM so you would use the iGPU to run you linux session (at least that how i read the explanation).

if you need your dGPU for something in linux then you would need to reboot anyway in order to un-blacklist the dGPU and make it available to linux again.

1 Like