F5F Stay Refreshed Software Operating Systems No one mentioned a working setup for VFIO/IOMMU GPU passthrough.

No one mentioned a working setup for VFIO/IOMMU GPU passthrough.

No one mentioned a working setup for VFIO/IOMMU GPU passthrough.

Pages (2): Previous 1 2
N
Nixation
Member
222
01-04-2024, 06:51 PM
#11
I built something using Gentoo without systemd. I needed a setup that could run two copies of a game and stream one version to another system that couldn’t handle it. The hardware included a Ryzen 7 (first gen), RX580 GPU, R9270x slave GPU, B350 Mobo ZFS pool with storage. I spent considerable time adjusting KVM’s processor mapping so the guest recognized the Ryzen 7’s four cores and eight threads correctly—avoiding it being mistaken for an opteron. I also set CPU pinning to IO threads. Running two AMD cards was tricky, but I disabled their PCI bus in the kernel boot option so only the primary card connected to the AMDGPU module. Synergy helped coordinate mouse input between both systems. It functioned adequately: games played smoothly or sufficiently. However, I observed that host processes often dominated the guest environment. Even though the host retained full CPU access, tasks assigned to guest cores would drop significantly if the host allocated them. This behavior persisted unless I restricted shared resources using Linux cgroups and assigned non-shared cores to specific users. The process became too complex for my needs, so I abandoned it. Ultimately, if you need a portage build on the host, consider skipping the guest entirely—Windows would still struggle with multi-threaded tasks on the same machine. This approach isn’t a complete solution for cross-platform gaming, nor does it aid native Linux game development.
N
Nixation
01-04-2024, 06:51 PM #11

I built something using Gentoo without systemd. I needed a setup that could run two copies of a game and stream one version to another system that couldn’t handle it. The hardware included a Ryzen 7 (first gen), RX580 GPU, R9270x slave GPU, B350 Mobo ZFS pool with storage. I spent considerable time adjusting KVM’s processor mapping so the guest recognized the Ryzen 7’s four cores and eight threads correctly—avoiding it being mistaken for an opteron. I also set CPU pinning to IO threads. Running two AMD cards was tricky, but I disabled their PCI bus in the kernel boot option so only the primary card connected to the AMDGPU module. Synergy helped coordinate mouse input between both systems. It functioned adequately: games played smoothly or sufficiently. However, I observed that host processes often dominated the guest environment. Even though the host retained full CPU access, tasks assigned to guest cores would drop significantly if the host allocated them. This behavior persisted unless I restricted shared resources using Linux cgroups and assigned non-shared cores to specific users. The process became too complex for my needs, so I abandoned it. Ultimately, if you need a portage build on the host, consider skipping the guest entirely—Windows would still struggle with multi-threaded tasks on the same machine. This approach isn’t a complete solution for cross-platform gaming, nor does it aid native Linux game development.

R
Rekt_PvP
Junior Member
21
01-05-2024, 08:37 PM
#12
You need to connect a monitor to the GPU via a cable, as the VM requires a display linked directly to the card. I suggest using a cable from the card to your screen and adjusting the input settings on the display when you switch to Windows. EDIT: They mentioned a concept called "looking glass" in their video, but I haven't tested it yet, so I can't say how challenging it is to implement. Link to the video:
R
Rekt_PvP
01-05-2024, 08:37 PM #12

You need to connect a monitor to the GPU via a cable, as the VM requires a display linked directly to the card. I suggest using a cable from the card to your screen and adjusting the input settings on the display when you switch to Windows. EDIT: They mentioned a concept called "looking glass" in their video, but I haven't tested it yet, so I can't say how challenging it is to implement. Link to the video:

D
DeatopCraft
Member
72
01-19-2024, 11:19 AM
#13
I managed to get it partially functional, but I think I'll delay the project until I have a new SSD. I'm exhausted from constantly reinstalling Windows whenever it fails. Also, the GPU was linked to the monitor and it did send data, though some settings might have been incorrect (probably my mistake). This meant Windows recognized the card's details but couldn't accurately identify its VRAM size, which caused benchmarks to crash.
D
DeatopCraft
01-19-2024, 11:19 AM #13

I managed to get it partially functional, but I think I'll delay the project until I have a new SSD. I'm exhausted from constantly reinstalling Windows whenever it fails. Also, the GPU was linked to the monitor and it did send data, though some settings might have been incorrect (probably my mistake). This meant Windows recognized the card's details but couldn't accurately identify its VRAM size, which caused benchmarks to crash.

A
Ampersander
Member
119
01-19-2024, 01:14 PM
#14
Hi, don't worry it is not that hard. The main fact is that even the Arch Wiki is not totally complete and there is no clear and easy documentation about PCI pass through-ing about some issues that can occur. You are probably missing the VBIOS for your GPU. Also, using an UEFI bios is required...
A
Ampersander
01-19-2024, 01:14 PM #14

Hi, don't worry it is not that hard. The main fact is that even the Arch Wiki is not totally complete and there is no clear and easy documentation about PCI pass through-ing about some issues that can occur. You are probably missing the VBIOS for your GPU. Also, using an UEFI bios is required...

V
198
01-20-2024, 12:09 AM
#15
Wait, I wasn't aware you required the VBIOS. It could very well be the issue then.
V
VassacreGaming
01-20-2024, 12:09 AM #15

Wait, I wasn't aware you required the VBIOS. It could very well be the issue then.

L
Llabros
Senior Member
740
01-20-2024, 11:17 AM
#16
In certain situations, using the same GPU (GTX 1060) and Intel CPU worked fine, yet switching to Ryzen triggered a VBIOS update.
L
Llabros
01-20-2024, 11:17 AM #16

In certain situations, using the same GPU (GTX 1060) and Intel CPU worked fine, yet switching to Ryzen triggered a VBIOS update.

I
icon_nexy
Junior Member
16
01-20-2024, 07:55 PM
#17
I'll examine it further next month. It seems like a fresh SSD might be the best choice due to some odd dual-boot problems. Plus, I just realized you're joining us for the first time—welcome to the forum! Edited September 8, 2018 by Cyberspirit
I
icon_nexy
01-20-2024, 07:55 PM #17

I'll examine it further next month. It seems like a fresh SSD might be the best choice due to some odd dual-boot problems. Plus, I just realized you're joining us for the first time—welcome to the forum! Edited September 8, 2018 by Cyberspirit

Pages (2): Previous 1 2