GTA V on Linux (Skylake Build + Hardware VM Passthrough)

I ended up doing a write up since none of the guides worked for me. I hope it will save someone some time, as I wasted far more than I hoped I would :)

GPU Passthrough with QEMU on Arch Linux

Yeah things have changed a bit the last year. I should really update this post to be more current or maybe the community can help with that.

I tried to also be somewhat distro agnostic but a lot of people found that difficult

1 Like

Yes, it is quite a complex topic to write a guide on, the second part of the article is still a draft months later :)

It might be better to reproduce the how-to here on the forum, and link it here on this thread, instead of linking off to your blog. I can make it a wiki post so the community can update it, or you can duplicate my post and fix the parts of it that need love again?

The part 2, the command line part, I feel like the replies on this topic are still on point as far as the CLI options someone might need for different configs.

I'd like to also cover the case where someone has two radeon adapters and wants to use one with the VM and one with linux.

1 Like

It's probably best to have all resources as the more info the better on a topic like this. My blog is easy to follow but very specific while the Arch wiki has a ton of info to go through and is still quite specific. It would be good to have something in between, most common scenarios covered and also multiple distros.

Dual radeon cards shouldn't be difficult at all, I have blacklisted all devices specifically so I believe all I would have to do is add an extra device to the list.

Don't have the will to come back to this right now after the hell I went through to set it up :) Maybe when ZEN and Polaris comes out I will have to come back to it.

@wendell: Just signed up to thank you for the tutorial and the video. I'm actually running this type of setup for over 4 years now, and I don't want to look back to the dark times when I had to dual-boot. I had written a popular how-to on doing this under Xen, and a year ago a similar one to yours using KVM, both over at the Linux Mint forum.
Still, I learned a thing or two reading through your tutorial, in particular the trick with the "intel_iommu=igfx_off" to remove the integrated Intel graphics from the IOMMU.
Ubuntu and Linux Mint ship with kernel 4.4, with the option to update to 4.8. This is what I'm running now. The new kernel may help with some issues that would require for example an ACS patch.
I am actually curious to see what happens when you remove the "pcie_acs_override=downstream" option. If you run ArchLinux and the linux-vfio kernel, the ACS override patch is already applied to the kernel, so your command line makes sense. However, I'm not aware of that ACS patch being applied to a standard kernel, so I would be surprised if that would work in any other distribution or even the standard ArchLinux kernel. Hope I haven't repeated something that had been discussed here (haven't read through the entire thread).

Thanks again for making this great technology more accessible. To me running Windows on bare metal is like riding in a car without a seat belt - it's alright as long as it doesn't crash.

1 Like

@wendell, great write up! I was running into an issue on my skylake and got it resolved through your guide here. Now if I could just figure out how to run two of these machines. I have two of the same video card to pass to my guests (easy since they have the same IDs for exclusion) they're both controlled by vfio-pci but the second machine hates me and refuses to utilize the video card. I shall prevail!

Keep up the great work!

(update for this coming 2017!!!!!!!!!!111one!!)

Can't wait to see this continued and expanded upon!

I'm looking at doing this in Fedora.

Hi !

I'm new here and I'd like (of course) to get hardware passthrough working. I've tried once before and failed. I was trying on integrated graphics but my cpu does not have any (doh!). Now I want my linux host to use an RX480 (the card I'm currently running on) and passtrough a GTX 760 (that I also possess but not currently plugged in). all via a intel i7 3930K processor and i do have 16GB of ram (F3-19200CL9Q-16GBZMD to be exact.) and an Asrock X79 Extreme 6/GB motherboard.

I'm currently running a freshly installed ubuntu 17.04 pretty much stock. haven't touched the kernel or anything yet.

first off, is this set of components a set that allows for hardware passthrough at all?

and how do I view the guide/tutorial? clicking on "show full post" doesn't work for me : it just loads infinitely.

Thank you all

Inb4 someone says to make a new thread.

I beleive everything that was under show more is in post 2.

The show more thing must have not worked, so he posted everything in post 2.

Also, welcome to the community!

here: https://tekwiki.beylix.co.uk/index.php/VGA_Passthrough_with_UEFI%2BVirt-Manager

Not that it matters, but a spelling mistake. D:

1 Like

Got it working a few days ago with Windows 10 Creators edition and was able to pass through a GTX 980ti with the new ID spoofing. When I get done with work I'll see about an updated write up for Fedora with my specific setup which should be common. i7 6700k and Nvidia GPU.

I was getting 100+FPS on Atilla, 60-70 FPS on squad.

2 Likes

I did : https://forum.level1techs.com/t/need-help-on-setting-up-hardware-passthrough-on-ubuntu-3930k/115090
but noone replied :cry:

Where's that?

Click on Wendells name and it will reveal all of post 2.

1 Like

Very very nice thread so far.

I am watching this thread for quite a while but something was holding me back to try it out myself. But I guess itā€™s now time to try it with Linux as main OS.

There are a few questions coming into my mind before I start off this project.

  • Will G-Sync, Freesync, HDR etc. work when I connect my monitor directly to the GPU I pass through to the Windows VM?
  • Can I use my driverless USB amplifier to listen to 7.1 sound of the VM and the sound of my host OS at the same time?
  • Will game play recording software like Shadow Play inside the Windows VM be able to pick up the microphone of my USB amplifier?

I am in a very similar situation as you. Using OVMF I cannot boot into any installation iso I have yet SeaBios will work fine. I donā€™t get kicked straight to the UEFI Interactive Shell though it actually shows me the TianoCore Logo then resets. Have you ever been able to solve this problem?