GTX 1050 on VM

Discussions related to using VirtualBox on Windows hosts.
Locked
iomichiamolollo
Posts: 1
Joined: 25. Apr 2020, 01:27

GTX 1050 on VM

Post by iomichiamolollo »

Hello, I wanted to know if it's possible to use my 1050 as a GPU on a VM

These are my specs:
CPU Intel Core i7 2600k
Motherboard ASUS P8Z68-V PRO/GEN3
GPU XFX Radeon RX 480 GTR 4GB

and I have the GTX 1050 that I want to use on the VM
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: GTX 1050 on VM

Post by BillG »

No. The vm uses its own emulated video card. All peripherals are emulated. Only the CPU is not.
Bill
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: GTX 1050 on VM

Post by mpack »

Enable 3D acceleration in the VM. That way the VM can benefit from the power of accelerated host graphics. But, as Bill mentions you cannot access host hardware directly. It wouldn't be a VM if you could.
damineps
Posts: 2
Joined: 26. Apr 2020, 17:45

Re: GTX 1050 on VM

Post by damineps »

Virtualbox and pcie passthrough is still not here. You'd need something like hyper-v or vmware.
Last edited by mpack on 28. Apr 2020, 09:54, edited 2 times in total.
Reason: Remove additional off topic remarks.
towo2099
Volunteer
Posts: 374
Joined: 18. Aug 2014, 21:53
Primary OS: Debian Sid
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Android, Linux

Re: GTX 1050 on VM

Post by towo2099 »

Virtualbox and pcie passthrough is still not here. You'd need something like hyper-v or vmware.
Aha, i don't see pci passthrough in Hyper-V or vmware.

Only in ESXi, qemu and xen i see pci passthrough.
damineps
Posts: 2
Joined: 26. Apr 2020, 17:45

Re: GTX 1050 on VM

Post by damineps »

towo2099 wrote: Aha, i don't see pci passthrough in Hyper-V
Hyper-V on windows server 2016+ can do pci passthrough: just google "deploying-graphics-devices-using-dda"
cant post links...
towo2099 wrote: Aha, i don't see pci passthrough in (...) vmware.
VMware vsphere.
towo2099 wrote:
Only in ESXi, qemu and xen i see pci passthrough.

ESXi belongs to the VMWare ecosystem.
QEMU does not allow pci passthrough by itself, it requires kernel access such as KVM. If that was the case then you could just use QEMU on windows for pci passthrough.
Last edited by mpack on 28. Apr 2020, 09:48, edited 2 times in total.
Reason: Remove off topic remarks.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: GTX 1050 on VM

Post by mpack »

damineps wrote:Virtualbox and pcie passthrough is still not here.
Not only "not there", the experimental feature which was there has been deleted. It won't be back, because it was never useful. The only people asking about it were gamers hoping it was possible to share a graphics card with the host (it isn't).

ESX-i is a type 1 hypervisor, so is Hyper-v. Even there they still mediate access to the hardware (like I said, if the guest had direct access it wouldn't be a VM). However the mediation layer is thin. In any case the Type-1 server style VM platform is not the focus of these forums.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: GTX 1050 on VM

Post by scottgus1 »

Per damineps request for a clear answer to the OP's question:
iomichiamolollo wrote:I wanted to know if it's possible to use my 1050 as a GPU on a VM
One has already been given:
BillG wrote:No.
mpack wrote:you cannot access host hardware directly.
Some versions of Virtualbox up to 6.0.x had PCI passthrough. And you'd need a Linux host, not a Windows host.

Starting in 6.1.x Virtualbox does not have PCI passthrough anymore. PCIe passthrough never existed in any version of Virtualbox, so a GTX 1050, a PCIe card, could never have been inserted into a Virtualbox guest.

So in Virtualbox you cannot insert a PCIe card into a guest.

I do not know what other hypervisors can do PCIe passthrough. That question is good for Google.
Last edited by mpack on 28. Apr 2020, 09:52, edited 2 times in total.
Reason: Remove reaction to off topic comments.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: GTX 1050 on VM

Post by mpack »

I decided to prune this topic of all off-topic discussion, as it did not serve the OP. Hopefully this now gives damineps a clearer idea of the tone of discussion we expect. All further off topic posts will be deleted (at least).
nbanba
Posts: 24
Joined: 27. Feb 2023, 10:48
Primary OS: Debian Sid
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: all efi os

Re: GTX 1050 on VM

Post by nbanba »

Hello

Reading this topic https://docs.oracle.com/en/virtualizati ... rough.html
show that PCIExpress was supported (the attached card of the example is a PCIExpress card, not an oldstyle PCI card)

But this feature had been removed from Virtualbox 6.1

It would be nice if it will be re add in a future release.

Kind regards
nbanba
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: GTX 1050 on VM

Post by scottgus1 »

Both, regular PCI and some PCI Express cards, are supported.
nbanba's link and the 6.0.0 Virtualbox manual do in fact say that some PCIe was partially supported.

6.0 is still available for download.
https://download.virtualbox.org/virtualbox/
https://www.virtualbox.org/wiki/Download_Old_Builds
If one wants to try to get PCIe passthrough going one can still try it. Keep in mind it's "passthrough" not "sharing", so your host also needs a spare device besides the one it is using now. In other words, you can't share the GTX 1050 video card. You'd need an extra video card. And a Linux host, BTW, this is the wrong forum for the wrong host OS for this feature.
nbanba wrote:It would be nice if it will be re add in a future release.
You'd have to convince the devs of this on the Bugtracker.
Locked