virtualbox-kvm icon indicating copy to clipboard operation
virtualbox-kvm copied to clipboard

GPU Passthrough support

Open matbeedotcom opened this issue 1 year ago • 4 comments

Is it possible to pass through a dedicated GPU to the VM now that it uses KVM as a backend?

matbeedotcom avatar Apr 07 '24 03:04 matbeedotcom

While it is currently not officially supported or very well tested, you can try to use the PCI pass-through functionality we added for SR-IOV. If you adapt the instructions to only deal with your dedicated GPU, it might work.

If you need any further assistance with this, feel free to reach out to [email protected]!

parthy avatar Apr 08 '24 06:04 parthy

@matbee-eth just out of curiosity: did it work?

tpressure avatar Apr 17 '24 13:04 tpressure

@matbee-eth just out of curiosity: did it work?

The docs mentioned Intel quite a lot and I use AMD so I didnt even attempt

matbeedotcom avatar Apr 17 '24 15:04 matbeedotcom

You need to adapt the tutorial a little bit. In a nutshell, you need to make sure that the device is claimed by the vfio-pci driver, and pass the device to virtualbox via --attach-vfio. Hope this helps.

tpressure avatar Apr 17 '24 15:04 tpressure