VirtualBox – How to Passthrough Graphics Card

graphics cardlinuxvirtualboxwindows 7

So I'm trying to get my laptops NVIDIA fx 880m to pass to a virtual box running window seven on a linux mint 17 install.

So far everything seems to be (maybe) heading in the right direction:

the device passed through happily, when I booted the virtual box it installed a bunch of new drivers, but when I try to install the NVIDIA driver on the guest it can't find the card. I looked under the device manager and there's no listing for the nvidia card under the pci bus, my guess would be that I need to disable it in the host so that it can be passed through to the guest (the virtual box manual said they can't be shared) but I'm not sure how to do so. Can anybody help with this? This question does not seem to me to be a duplicate of Cannot setup PCI Passthrough for display adapter in VirtualBox, because here the given solution was that it was not possible with a windows host, however in this case the host is linux

Best Answer

This feature is not yet supported in Virtualbox.

Your only alternative virtualization software that supports this that I am aware of are Qemu and Xen and possibly VMWare. Most success tales of passing through GPUs to virtual machines come from either Qemu or Xen so I would suggest you turn towards that until Virtualbox supports this.

There is a blog devoted to the subject(that is their 2015 tutorial on how to do this with qemu as a focus) which you may want to look into.

Keep in mind that VGA Passthrough is still very experimental technology and it requires Motherboard/CPU combinations that support very specific features, and usually it also requires a custom kernel configuration to actually be able to access these features from within Linux (to be able to use them in the virtual machine).

In light of this, please try not to overcommit. You are very likely to run into bugs or issues that can render either your physical or virtual system unstable or in some ways inoperable while using VGA Passthrough. Don't expect it to work completely, nor easily. You need luck for that to really happen.

Related Question