[SOLVED] FiveM crashing in VFIO VM

So I created a VM and passed through my RTX 2060, tested some games (fiveM included) and they all worked fine. So I wiped my windows NVME and passed that through to a new VM and installed windows 10 on it. Installed a few games but now FiveM keeps crashing with random different DLL errors every time. R6 Siege and GTA 5 work perfectly though.

I tried to boot directly into the windows drive and run FiveM and it runs fine. But in my VM it no longer works. I’ve tried a lot of different things to get it working and I’m kind of at a loss as to what to do.

My VM XML: https://pastebin.com/cvRhNyUs

The FiveM crash log: https://pastebin.com/H6Y1p569

neofetch
                     ./o.                  korin@korinflakes-endeavorOS 
                   ./sssso-                ---------------------------- 
                 `:osssssss+-              OS: EndeavourOS Linux x86_64 
               `:+sssssssssso/.            Host: B550M DS3H 
             `-/ossssssssssssso/.          Kernel: 6.8.7-arch1-1 
           `-/+sssssssssssssssso+:`        Uptime: 15 hours, 12 mins 
         `-:/+sssssssssssssssssso+/.       Packages: 1709 (pacman), 6 (flatpak) 
       `.://osssssssssssssssssssso++-      Shell: zsh 5.9 
      .://+ssssssssssssssssssssssso++:     Resolution: 1920x1080, 1920x1080 
    .:///ossssssssssssssssssssssssso++:    DE: GNOME 46.1 
  `:////ssssssssssssssssssssssssssso+++.   WM: Mutter 
`-////+ssssssssssssssssssssssssssso++++-   WM Theme: Adwaita 
 `..-+oosssssssssssssssssssssssso+++++/`   Theme: Adwaita-dark [GTK2/3] 
   ./++++++++++++++++++++++++++++++/:.     Icons: Qogir [GTK2/3] 
  `:::::::::::::::::::::::::------``       Terminal: kgx 
                                           CPU: AMD Ryzen 5 3600 (12) @ 4.038GHz 
                                           GPU: NVIDIA GeForce RTX 2060 
                                           GPU: AMD ATI Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT 
                                           Memory: 23736MiB / 31991MiB 

On my windows I have:


                                ..,   korin@DESKTOP-VOJRFO7
                    ....,,:;+ccllll   ---------------------
      ...,,+:;  cllllllllllllllllll   OS: Windows 10 Pro x86_64
,cclllllllllll  lllllllllllllllllll   Host: QEMU Standard PC (Q35 + ICH9, 2009)
llllllllllllll  lllllllllllllllllll   Kernel: 10.0.19045
llllllllllllll  lllllllllllllllllll   Uptime: 2 mins
llllllllllllll  lllllllllllllllllll   Packages: 4 (scoop)
llllllllllllll  lllllllllllllllllll   Shell: bash 5.2.26
llllllllllllll  lllllllllllllllllll   Resolution: 1920x1080
                                      DE: Aero
llllllllllllll  lllllllllllllllllll   WM: Explorer
llllllllllllll  lllllllllllllllllll   WM Theme: Aero
llllllllllllll  lllllllllllllllllll   CPU: AMD Ryzen 5 3600 (8) @ 3.600GHz
llllllllllllll  lllllllllllllllllll   GPU: Caption
llllllllllllll  lllllllllllllllllll   GPU: Microsoft Basic Display Adapter
`'ccllllllllll  lllllllllllllllllll   GPU: NVIDIA GeForce RTX 2060
       `' \*::  :ccllllllllllllllll   GPU
                       ````''*::cll   Memory: 3458MiB / 16364MiB

Any help would be greatly appreciated.

As far as I can tell it seems to be a DLL initialization routine failure every time. It just seems to point to a different dll each crash. Sometimes it gives me windows error 1114 if that helps.

I “think” I’ve figured it out. It seems to be geforce experience “optimizations” breaking the game explicitly in the VM.

If I boot into the windows drive directly I don’t need to change a thing, but in the VM every time I have to turn on and off the Geforce Experience game optimizations and it seems to let me load in.