F5F Stay Refreshed Software Operating Systems GPU allocation for gaming virtual machine on Linux system

GPU allocation for gaming virtual machine on Linux system

GPU allocation for gaming virtual machine on Linux system

S
ser753951
Member
203
11-29-2023, 05:52 PM
#1
You're planning an experiment with your Lenovo W540. You want to run Linux Mint as the primary operating system, set up a gaming virtual machine that uses the eGPU as its physical GPU, and assign the internal workstation GPU to the host machine. The host will have three CPU threads allocated—three for the gaming VM and one for itself when the VM is active. This configuration sounds interesting if you manage it properly.
S
ser753951
11-29-2023, 05:52 PM #1

You're planning an experiment with your Lenovo W540. You want to run Linux Mint as the primary operating system, set up a gaming virtual machine that uses the eGPU as its physical GPU, and assign the internal workstation GPU to the host machine. The host will have three CPU threads allocated—three for the gaming VM and one for itself when the VM is active. This configuration sounds interesting if you manage it properly.

V
Vukmil
Member
94
11-30-2023, 01:03 AM
#2
I haven't encountered much success with transferring an eGPU to a VM. Still worth a shot.
V
Vukmil
11-30-2023, 01:03 AM #2

I haven't encountered much success with transferring an eGPU to a VM. Still worth a shot.

W
Windlander
Member
150
12-06-2023, 11:45 PM
#3
Level1 Techs offers useful documentation about IOMMU PCI passthrough. USB controllers can be routed similarly, though this approach is new and requires careful handling. CPU pinning doesn't function properly without cgroups. You can specify core counts, but the process may become unstable and guest tasks might interfere with the host.
W
Windlander
12-06-2023, 11:45 PM #3

Level1 Techs offers useful documentation about IOMMU PCI passthrough. USB controllers can be routed similarly, though this approach is new and requires careful handling. CPU pinning doesn't function properly without cgroups. You can specify core counts, but the process may become unstable and guest tasks might interfere with the host.

H
Herobrin39
Member
146
12-07-2023, 08:25 AM
#4
I'm not familiar with many of these tools, but I can tell you which virtual machine software is being used.
H
Herobrin39
12-07-2023, 08:25 AM #4

I'm not familiar with many of these tools, but I can tell you which virtual machine software is being used.

Q
quteDE
Junior Member
14
12-08-2023, 05:02 AM
#5
Essentially, you need KVM or XEN. Yes, QEMU/KVM works too. Bhyve can handle pass-through, though not for VGA at the moment.
Q
quteDE
12-08-2023, 05:02 AM #5

Essentially, you need KVM or XEN. Yes, QEMU/KVM works too. Bhyve can handle pass-through, though not for VGA at the moment.

G
Gamerboy134
Junior Member
13
12-08-2023, 05:10 AM
#6
I believe VirtualBox has compatibility with KVM, though I'm unsure about its performance.
G
Gamerboy134
12-08-2023, 05:10 AM #6

I believe VirtualBox has compatibility with KVM, though I'm unsure about its performance.