Skip to content

Instantly share code, notes, and snippets.

@bryan-bar
Created December 27, 2021 20:16
Show Gist options
  • Save bryan-bar/bf505e717e3e80915590b8ef9530c64e to your computer and use it in GitHub Desktop.
Save bryan-bar/bf505e717e3e80915590b8ef9530c64e to your computer and use it in GitHub Desktop.
NVIDIA GPU passthrough guides used to get a Windows 10 gaming VM

Dual GPU with Hotswapping

Single GPU passthrough

Helper script for gpu ** used tranparent hugepages script, as suggested on their github

Keyboard/Mouse passthrough for host/guest | Guest needs virtio drivers | Set storage io from native to threads to reduce mouse-lag

CPU pinning helped reduce some but not all stuttering

Further optimizations as well as changing used cores to "performance" on AMD stopped most stuttering and improved fps ** lscpu -e - shows cores and cache groupings quickly

** some anti-cheats actively block VM users

Setup

  • Motherboard: Asrock TRX40 Taichi
  • CPU: AMD Threadripper 3960x
  • GPU: NVIDIA 1080TI - EVGA SE Black Edition

Issues

  1. AMD GPUs (only had a knockoff radeon 550x miner card that was $80 and AMD MSI R9 380 from an old build*need to double check name)
  • GPU crashes when starting graphical interfaces, disabled for grub by adding nomodeset and removed rghb quiet and then disabled display-manager(lightdm in my case) w/ systemctl
  • Black screen/bios wont post at times when using CSM "enabled", disable it (AMD gpus would still be picked up w/ CSM enabled but blackscreen during boot process and hanged unless nvidia was primary)
  • ** Xserver still crashed w/ these AMD GPUs but could use it as a second screen/offloading if NVIDIA ran xserver or headless(during passthrough).
  • ** skipped for the time being as legit AMD card passed down and 550x card is bricked for the time being and could not be rescued w/ any ATI version as it is not detected, including dos, might try some of the hardware suggestions for reset or I'll just get another real AMD card later)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment