r/archlinux•
K4lim

[noob] vm - gpu passthrough

Hey, so I'm pretty new to arch/linux and I tried to create a vm and passthrough my gpu to play some games and do some rendering on windows. I followed this youtube tutorial here: https://www.youtube.com/watch?v=awTeUrCm7xw

and everything worked just fine until 9:00 in the video. When I start the VM again I don't get a video signal. Neither on onboard nor at my gpu.

My setup: cpu: i7-4790k gpu: gtx 970 mobo: msi z97 ram: 8gb

All the configs etcetera should be the same as they are in the video.

Posted May 8, 2017, 8:42 PM UTC

163
boxxcar•

Have you tried r/VFIO? Also the Arch Wiki? And lastly Alex Williamson's blog? These should help get you started.

7
BlastoffSundae•

Yeah, it's a known problem caused by VM putting your videocard in low-power shutdown mode, from which it never comes back without restarting the host. Detach the videocard from the virtual machine before shutting it down. Attach it back when starting the VM again.

I wrote this shitty script to switch my GPU and mouse/keyboard between two VMs and it worked flawlessly. Don't forget to update device IDs in {gpu,input{0,1}}_xml variables.

7
Commander_R79•

Don't follow guides in a video, follow the arch wiki.

Videos will become outdated at some point (which might even weeks after the video got released) due to us updating our stuff very fast.

The archwiki will always be kept (more or less) up to date and also explains some things to you, so you might start to know what you're actually doing and can fix things yourself.

4