Vfio-pci passing through gpu's script (hah! look at what i did)

I got tired of re/setting up vfio pci to for passthrough on my fedora system, so i made a series of bash commands to do it for me.

this sets up all of the software/background/nonsense that allows vfio-pci to bind to vga devices and then pass them to a vm. I basically turned http://vfio.blogspot.com/2015/05/vfio-gpu-how-to-series-part-3-host.html into a shell script.


the formatted text thing is weird or im weird or something. so pastebin it is.

3 Likes

Very very cool....thanks for sharing, my only question is why would you need the script?, so you can run the system without the KVM and have all the resources (ie passed through GPU) available? still very cool....thanks.

I'm currently using steam streaming to play windows games streamed from the vm, setting up the passthrough is kinda annoying (several of my friends wanted me to do it for them), so that's what the script is for.

as a side note, the steam streaming is kinda slow, even if its streaming on the same system > . < I will probably plug my windows vm into my monitor and use the different sources to change back and forth

1 Like

Thank you....that makes sense.

Awesome, too bad script does not work with Intel as mentioned in a comment, it won't fit into my configuration, but this is a definite bookmark for the future :)

well, it should work with intel, it just cant pass through the intel igpu. i havent tried, but passing through integrated gpu's seems to be more of a wish than a reality