F5F Stay Refreshed Software Operating Systems How to connect a GPU directly to an Ubuntu virtual machine.

How to connect a GPU directly to an Ubuntu virtual machine.

How to connect a GPU directly to an Ubuntu virtual machine.

L
LeftAndRight
Junior Member
36
07-02-2019, 07:19 PM
#1
I've been interested in exploring Linux-based operating systems for some time and decided to test a virtual machine using Ubuntu. Since I'm not very familiar with programming or networking, I relied on online resources for guidance. VirtualBox was the most common choice. Once the VM ran Ubuntu, I noticed its performance was slow. I assumed the limitation came from only one CPU core, so I increased it to six, but the issue continued. I discovered my GPU wasn't being recognized by the VM, which prompted me to investigate further. Many suggested VirtualBox doesn’t support PCI-e passthrough, but others mentioned using the VirtualBox extensions package could help. I’m unsure how to make the VM detect the GPU properly. I’ve checked all the NVIDIA driver documentation and think it will work once detection is confirmed. If not, are there any virtual machine managers that support PCI-e passthrough? Or should I stick with dual booting, which I’ve been hesitant about due to the hassle? Thanks, Host system: i7 3960x 2080 ti 32gb memory Windows 10 VM (Ubuntu): 6 cores passed through 8gb memory
L
LeftAndRight
07-02-2019, 07:19 PM #1

I've been interested in exploring Linux-based operating systems for some time and decided to test a virtual machine using Ubuntu. Since I'm not very familiar with programming or networking, I relied on online resources for guidance. VirtualBox was the most common choice. Once the VM ran Ubuntu, I noticed its performance was slow. I assumed the limitation came from only one CPU core, so I increased it to six, but the issue continued. I discovered my GPU wasn't being recognized by the VM, which prompted me to investigate further. Many suggested VirtualBox doesn’t support PCI-e passthrough, but others mentioned using the VirtualBox extensions package could help. I’m unsure how to make the VM detect the GPU properly. I’ve checked all the NVIDIA driver documentation and think it will work once detection is confirmed. If not, are there any virtual machine managers that support PCI-e passthrough? Or should I stick with dual booting, which I’ve been hesitant about due to the hassle? Thanks, Host system: i7 3960x 2080 ti 32gb memory Windows 10 VM (Ubuntu): 6 cores passed through 8gb memory

A
Abqbear
Junior Member
12
07-02-2019, 09:43 PM
#2
You might need to change to Linux to ensure your graphics card is properly handled. It's feasible to pass your GPU now that NVIDIA supports it via QEMU and KVM. I don't know of other VM providers, but VirtualBox could work better with extensions—though KVM remains the most reliable option.
A
Abqbear
07-02-2019, 09:43 PM #2

You might need to change to Linux to ensure your graphics card is properly handled. It's feasible to pass your GPU now that NVIDIA supports it via QEMU and KVM. I don't know of other VM providers, but VirtualBox could work better with extensions—though KVM remains the most reliable option.

L
LuiCalidre
Junior Member
2
07-03-2019, 03:04 AM
#3
Thanks, now let's see what that means.
L
LuiCalidre
07-03-2019, 03:04 AM #3

Thanks, now let's see what that means.

G
gui1go
Member
177
07-06-2019, 01:03 PM
#4
Shifted to Linux, macOS and all platforms excluding Windows
G
gui1go
07-06-2019, 01:03 PM #4

Shifted to Linux, macOS and all platforms excluding Windows

H
HellaDapper
Member
225
07-06-2019, 01:27 PM
#5
GPU passthrough used to belong to premium Quadro cards and still needed extra fees plus caused frustration. Now it’s marginally easier and you might try Ubuntu via LiveUSB—there’s even a lingering option so it feels like a normal install, avoiding the dual-boot trouble.
H
HellaDapper
07-06-2019, 01:27 PM #5

GPU passthrough used to belong to premium Quadro cards and still needed extra fees plus caused frustration. Now it’s marginally easier and you might try Ubuntu via LiveUSB—there’s even a lingering option so it feels like a normal install, avoiding the dual-boot trouble.

C
CapedBaldie
Member
50
07-06-2019, 05:09 PM
#6
What your talking about is what's referred to as a "HyperVisor" not a VM manager (not talking about the package, I'm talking about the software classificaion), which is an application that connects to an existing remote VM Duel booting is only a pain because you have to reboot to use Linux or Windows Did you setup vbox right? Relevant guide link https://www.freecodecamp.org/news/how-to...irtualbox/
C
CapedBaldie
07-06-2019, 05:09 PM #6

What your talking about is what's referred to as a "HyperVisor" not a VM manager (not talking about the package, I'm talking about the software classificaion), which is an application that connects to an existing remote VM Duel booting is only a pain because you have to reboot to use Linux or Windows Did you setup vbox right? Relevant guide link https://www.freecodecamp.org/news/how-to...irtualbox/