Windows 10 VM with KVM, Good Enough For Pro Tools/ Gaming?
I've got a 2080ti in my desktop rig.. Right now I dual boot Arch and Windows 10... My proc is a 9700k. I'm thinking about trying Windows 10 as a KVM VM and using the built in GFX for the linux side, passing through the 2080ti to Windows 10. I'm new to this but, does this sound like it would work and still get me the same performance for the 2 games I run in Windows? Also wondering about running Pro Tools...
About this post
- Posted
- Archived
- Score
- 14 · 100% up
- Kind
- Text
- ID
- devh8g
22 comments
There's a whole subreddit to this: https://www.reddit.com/r/VFIO/
The gpu performance is pretty much native inside the vm. Raw cpu performance has very little overhead as well, but things like IO may need configuration to work well. You can just pass through a whole hdd for best performance.
So I can pass through a whole nvme drive and that will be where the VM exists? It doesn’t exist in a single file like on virtual box?
That depends. As already mentioned look up the whole concept about PCI passthrough, the subreddit has plenty of info about various configs.
you can also pass block devices ie /dev/nvme0n1p2
You can do either. Note that the passed through drive wont be accessible on the host os. On virtualbox, you can pass through full drives as well.
your 9700k supports VT-d. I've never personally set up a system as you've described, but have been interested in doing so, and from the bit of research I've done it should be possible, and run at 'close' to bare-metal performance.
One thing I do know for sure is that windows doesn't like changing hardware. So once you make a VM don't boot into it physically, or the license might get flagged as being installed on new hardware and you might have to get a new one...
I got you. Thank you.
I have a similar setup with an i7 9700k and a 2070 RTX, for gaming purposes it works very well using GPU passthrough even if IO storage performance is a bit lower than the dual boot setup. In the end I went back to dual booting for the following reasons:
- I don't have enough space (yet) on the desk to put two screens, two mouse and two keyboards (I tried to setup a software KVM switch to use only 1 pair of mouse+keyboard but didn't succeed)
- I had troubles passing audio to the host as described in the wiki, so I needed to dedicate USB headphones either to the host or the guest, which was a bit annoying
Why to need two monitors? I was thinking it would be possible on my setup to use HDMI from the mobo for linux and Displayport from the 2080ti for Windows to the same monitor.
Yes you are right, my monitors are a bit old and have only 1 HDMI and 1 VGA each, so I assumed you had to use two of them.
Setting this up is pretty in depth it took me a few weeks of trial and error to get it working. A word of advice: unlike many other things the process for Arch and the process for Ubuntu/Debian is very different. Make sure you are following a guide for Arch Linux w/ Nvidia GPU or nothing will work. I wish someone told me this to begin with. Good luck!
Thank you.
I used to do this for about a year in ~2017 but since moved back to a dual boot and install-with-lutris on Arch setup. My two primary reasons, which no-one mentioned yet, were:
Performance was fantastic though once I had hugepages and passthrough / blacklisting on Arch figured out. With my GTX970 at the time I saw a 10 fps dip in PUBG compared to a native Windows install.
For hardware longevity and I/O performance I recommend passing through an entire SSD instead of just a partition on it. You don't want Windows 10 and Arch fight for control over some SSD features like trim - ever.
Thank you. This is good advices.
Hm, what are those 2 games you are playing? Don't they run on linux?
For Pro Tools... I run a Win10 VM for Photoshop, Lightroom, and some other image editing stuff. Also a 9700k, 32GB RAM (24 dedicated for the VM + 6 cores). Works actually pretty good, even with really big panorama stitching and stuff. I'm using VMWare Workstation, which seems to use some GPU accelerating in some way. Never tried gaming on it though. It should be worth a try.
I thought about passing my NVIDIA GPU to a VM, but in my case, it was not worth it. Most games run with wine/dxvk pretty well. For programs I can't get to work on linux there is said VM. Passthrough also has some drawbacks I can't get around, check /r/VFIO.
If you need low buffers for recording I don't think a VM will be very good for a DAW. I wanted to do the same thing with Studio One, but eventually gave up on it.
yes it works fairly reliably. I run a setup with the host on a Vega56 and the guest on a seperate nvidia 1080.
https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF
helps. You can also check out level1techs forums for a bunch of useful guides and posts on the topic. You can actually boot your existing windows install with KVM - that is what I do (careful with drivers - windows can freak out).
Regarding Pro Tools. It should work fine as long as you can pass through your soundcard. I have a seperate USB audiocard that I use for the guest audio.