cyberus-technology / virtualbox-kvm

KVM Backend for VirtualBox. With our current development model, we cannot easily accept pull requests here. If you'd like to contribute, feel free to reach out to us, we are happy to find a solution.
GNU General Public License v3.0
917 stars 117 forks source link

GPU Passthrough support #24

Open matbee-eth opened 5 months ago

matbee-eth commented 5 months ago

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

parthy commented 5 months ago

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 service@cyberus-technology.de!

tpressure commented 4 months ago

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

matbee-eth commented 4 months ago

@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

tpressure commented 4 months ago

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.