Como usar a GeForce GTX 1050 no VirtualBox

1

Eu tenho um Surface Book 2 com uma GPU GTX 1050, quero usar essa placa gráfica enquanto executo minha máquina virtual do MacOS. Eu tenho procurado muito, mas não encontrei uma resposta satisfatória. Eu não quero dar o controle da GPU para a minha VM, eu só quero usá-lo da mesma maneira que a GPU da Intel está sendo usada. Eu tentei definir o VirtualBox no painel de controle da Nvidia, mas é o único programa que não aparece, isso me fez pensar se eu preciso de uma API.

Obrigado pela sua ajuda!

    
por Antonio Vela Gartner 02.02.2018 / 19:29

1 resposta

3

This made me wonder if I need an API.

Como usuário final do VirtualBox, você não precisa de uma API.

I want to use the graphics card while running my macOS Virtual Machine.

O suporte VirtualStack PCI Passthrough, necessário para o que você deseja fazer, é muito limitado e vem com requisitos de hardware específicos.

The PCI passthrough module is shipped as a VirtualBox extension package, which must be installed separately. See Section 1.5, “Installing VirtualBox and extension packs” for more information.

Essentially this feature allows to directly use physical PCI devices on the host by the guest even if host doesn't have drivers for this particular device. Both, regular PCI and some PCI Express cards, are supported. AGP and certain PCI Express cards are not supported at the moment if they rely on GART (Graphics Address Remapping Table) unit programming for texture management as it does rather non-trivial operations with pages remapping interfering with IOMMU. This limitation may be lifted in future releases.

To be fully functional, PCI passthrough support in VirtualBox depends upon an IOMMU hardware unit which is not yet too widely available. If the device uses bus mastering (i.e. it performs DMA to the OS memory on its own), then an IOMMU is required, otherwise such DMA transactions may write to the wrong physical memory address as the device DMA engine is programmed using a device-specific protocol to perform memory transactions. The IOMMU functions as translation unit mapping physical memory access requests from the device using knowledge of the guest physical address to host physical addresses translation rules.

Intel's solution for IOMMU is marketed as "Intel Virtualization Technology for Directed I/O" (VT-d), and AMD's one is called AMD-Vi. So please check if your motherboard datasheet has appropriate technology. Even if your hardware doesn't have a IOMMU, certain PCI cards may work (such as serial PCI adapters), but the guest will show a warning on boot and the VM execution will terminate if the guest driver will attempt to enable card bus mastering.

enter image description here

Passagem de PCI

I do not want to give the control of the GPU to my VM, I just want to use it in the same way that the Intel GPU is being used.

Para conseguir o que você quer, você terá que desistir do controle, isso é apenas uma questão de fato.

    
por 02.02.2018 / 19:55