Page 1 of 1

how to install Nvidia driver in the virtual box

Posted: 12. Aug 2022, 03:18
by stonexu
hi guys for running the machine learning code in the virtual box, I want to use the Nvidia driver to run the physical GPU, but I cannot download the driver correctly, can you guys help me? really thanks, (mod edit: email removed)

Re: how to install Nvidia driver in the virtual box

Posted: 12. Aug 2022, 03:22
by scottgus1
You wouldn't run the Nvidia driver in the VM, because the VM will not see the Nvidia card in the host, and so the Nvidia driver won't find it when run in the VM.

The only physical computer part the VM sees is the CPU, nothing else. All the other 'hardware' in the VM, including the video card, is virtual, and Virtualbox has no way to pass a physical video card into the VM.

Re: how to install Nvidia driver in the virtual box

Posted: 12. Aug 2022, 03:25
by stonexu
scottgus1 wrote:You wouldn't run the Nvidia driver in the VM, because the VM will not see the Nvidia card in the host. The only physical computer part the VM sees is the CPU, nothing else. All the other 'hardware' in the VM, including the video card, is virtual, and Virtualbox has no way to pass a physical video card into the VM.
really appreciate for your reply, I get that, so if I want to run the physical GPU, do you know any method to make it? thanks!

Re: how to install Nvidia driver in the virtual box

Posted: 12. Aug 2022, 03:26
by scottgus1
If you want to do programming on the host video card you'll have to do it in the host OS, not inside Virtualbox.

Re: how to install Nvidia driver in the virtual box

Posted: 12. Aug 2022, 03:32
by stonexu
scottgus1 wrote:If you want to do programming on the host video card you'll have to do it in the host OS, not inside Virtualbox.
okay~ thanks, I will try to use the host OS