How to create a KVM gaming virtual machine in under 30 minutes!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey everyone this is faith of Raven repair Co and I'm gonna talk about setting up a gaming virtual machine now why would you do this one might ask you could just boot into Windows or just have a separate computer so I use Linux for all of my workflow everything I do is based around Linux like I do my website development on Linux I keep all my files on Linux like I browse the web on Linux etc etc I'm used to building open source like I'm used I'm so used to like compiling on Linux that it's like just second nature to me at this point and I don't want to have to interrupt my workflow to boot into Windows because I happen to be in the mood for couple games of like destiny to I've been really into destiny too but you can't run it on Linux through any means because of the fact that there is anti cheats and that has been one of Mines biggest faults for the longest time and it's not an issue of line it's nothing with their team they're doing an impressive job with how they've made all these like compatibility layers it's the anti-cheat developers who don't realize that people are going to be playing games on other operating systems and so unfortunately for edge cases like this we have two options we do boot or des single boot windows which I'm not personally ever going to do ever again or you make a virtual machine now using a virtual machine takes a lot of horsepower but it is worth it if you have the right parts and you have about an hour so of time free so let's get started with it so this is going to be for arch based distributions I'm using enter ghosts currently yes I will fully admit that I'm not using standard arch because I don't have that kind of time in my life and you're gonna want to install some basic packages so these packages are going to be as follows qw o BMA virt-manager eb tables and dns masks so I already have these installed so I'm not going to saw them but you'll want to just install every single one of those things you see there and now after you do that you're going to ought to find something called an Ellis PCI ID now how you do this for this specific process as you type ls' PCI - and NK and you'll see right at the bottom here a bunch of entries for Nvidia already have them written down my mouse pad here but 10 de 0 e 0 f refer to my audio device and 10 de 1287 referring to my video device so you're gonna want to write those down and while you're here you're actually just might as well put the full command here so in front of that put v f io - PCI IPS and have that just at the ready to copy and paste and the hard part is almost over I promise the next thing you're going to want to do with all this information is to edit your bootloader so how you do that I'm using system D look up how to do it on grub if you're doing on grub and don't know how it's really simple ICU system D because grub just kept breaking my install recently so I just fully switched over and I'm enjoying it a lot actually so I want to just edit you want to edit your bootloader and you're going to want to go to the options field here and just go all the way to the end of that and there are two things you want to put here you want to put Intel - iommu equals on if you're on an AMD processor this is gonna be different but for us Intel users that's what you put there I think what you do on my AMD is you type iommu - equals PT or something like that but I told I could be wrong I haven't use an AMD processor since like 2004 and then again you see that a vfi OPC I do you think we were talking about you want to put that in there and then that's all set and there's one more step here this last step and you can breathe a sigh of relief because we're almost through the whole text-based part is editing your qmu configuration file so that it has the proper nvram so the way you do that is you know data very calm I was wrong about that it's live bird not Liberty I'm too used to the daemon so there's a field down here location of master nvram file you're going to want to copy this exact command and I will put it in the description so you don't have to like sit here and stare and type at it and what this does is uses ovm F as your UEFI manager instead of going through traditional BIOS system which makes cards of like it modern-day card support you find a lot better and kind of blend right into it so that way the card has easier access to the virtual machine and vice versa alright now you're done the hard part so reward yourself by making sure you save this crack open a beer a Pepsi glass of water hydrate whatever you want to do and you're gonna want to reboot after this and after you've rebooted now you can get them to the fun part so remember they're virtual machine manager we were talking about earlier you're gonna want to open that I have a shortcut on my desktop I'm just gonna close all these lower here you'll have this policy kit thing it's okay I'll ready just thing in the description of how to bypass that from any point on were so you don't have to type in your password every time you want to access your VM hold on let me delete this this is what earlier tests so you're gonna want to make a new virtual machine so to do this you're going to want to I import I may already have a disk so I'm gonna import existing media so I'm just gonna foil in station otherwise it's a very similar process except you'll have to have a Windows 10 installation and you have to actually sit through the whole installation space in the same thing you'll be providing an ISO choose the operating system and then get like the same field after that besides well you get a prompt to put your file wherever you want but far from that then it's just this screen so you'll want to put for this field you want to have between two to four gigs of RAM for your system and the rest can be dedicated to the VM so I have 12 gigs so I find 8 gigs is ideal because I want many games or anything that I do in Windows uses more than 8 gigs and also it gives me 4 gigs free for other things on linux which is perfectly fine because i really do on linux is web browser email etc etc and for pores you want to 4 CPUs you one set all 8 and that sounds weird at first but it's not giving it all the CPU cores like passing them directly over it just allowing it to use all the cycles available in all the course so unless you're doing something on Windows that's actually using all of these logical CPUs you're not going to be heard by any performance issues so yes I won't forget a caller 110 yes will customize configuration before install that is really important and here's why so you'll want to go here you can name it whatever you want chipset you can choose either Q 35 or i-44 FX I personally would use i-44 FX because Q 35 always crashes for me although Q 35 in theory and documentation is a lot faster than i-44 FX so your mileage may vary if you're doing this on a laptop like I am you're probably better off with this chipset and firmware there is that NVRAM thing we're talking about it has an entry here that would normally wouldn't be there for you if you efi x86 64 so you want to hit apply and you want to go through cpus make sure thats all set and it's for configuration you want to change model from post to model to host pass-through so connect all the programs direct the seat directly interact with the CPU as if they are on bare metal instead of going through a translation layer which can degrade performance topology you'll want to modify because for some reason the topology that can detect sometimes is weird so for example I'm using an i7 437 20 QM now this is a CPU with one socket four cores as it is a four core processor a 45 watt I believe and two threads so why you would put four course in two threads is threads you wouldn't put two eight because it'll assume that each core has eight threads where's it but two assumes each core has two threads so therefore totaling eight cores super important to know that when you edit your topology sometimes your current allocation will change you want to change that back up to eight so go into memory make sure that's okay for your disk you'll want to set it to virt IO you'll want to download the vert is the vert IO ISO install that while you're installing Windows and then you'll have much faster storage than if you use the traditional SATA translation layer and so let's scroll down the list you can pass through an actual network card here if you want I don't do that because I just I use the Wi-Fi card on my laptop so I just leave it as this you can remove this if you're using an actual mouse like I do so I'm gonna remove Hardware for a display of spice that's up to you personally if you're gonna be using like qxl you're gonna be using lookingglass keep spice on otherwise you can really just get rid of it there's no point of it being there so I'll do that because everything I'm doing is gonna be controlled on my one monitor sound you can keep the same unless you need to change it for legacy reasons or whatever video cue excel if you're not going to be using that if you're gonna be passing it through directly to a monitor don't bother with cue excel if you have like a keyboard and mouse and all that they're gonna be good body just if none and on to the fun part got add hardware PCI host device into what is this or Nvidia card show up and what happens when we add our Nvidia card with that friendly but also they show up there so you want to do this for both your HDMI audio and the actual card itself or else you're not going to there's a chance that might not work that's also chance you just won't have audio or he won't have video that's is not fun what I'm going to do for this just to show it off with the video is I'm gonna pass through my mouse I don't have my keyboard set up because my room is kind of a mess I've been watching Murray condos show and I've made my room a complete mess instead so that's kind of awkward so I'm gonna pass through certain things I'm going to pass through my portable hard drive I'm going to pass through my back it says max or optical Gaming Mouse which sucks because it has a much better name than that the much better name is my cool ass pink diva Mouse and my Xbox one controller and that's all I really need to pass there I think so you want to hit begin installation but before you do that here's where we go back into the worship at your thing so begin installation it'll start creating domain which does you want to immediately hit force off now this sounds weird but you want to do that so that the the virtual file configuration is may the virtual manage the virtual machine configuration sorry about that don't allow I'm tripping over my words so much is already made and once you we crash the domain it makes it and then you can go to just go to your terminal sudo first patch your test error 43 - test vendor word that ID 1 2 3 4 5 6 7 8 9 8 be win 10 win 10 being your virtual machine name and there we go domain went an XML configuration and it did if you get that you're golden and now for the moment of truth I will start actually turning on my phone camera so you can see that this is is not but in fact works just perfectly is there we go whereas in there we are we're finally all initially booted you can see that lake station went end when the lay GP is back here somewhere it's too dark to actually show it but there was an evil - why are my controls up oh there we go now it had being registered the story continued I believe this should start me off from my save as Claire Redfield because I finally got the Allianz campaign last night this is a really really fun game definitely worth checking out definitely probably probably the right best resident evil since Code Veronica I would say or outbreak actually about break I'd say because it's to be fair my break was awesome theory arc and let's see we'll look around I really should have an FPS counter I wonder if this game has won I unfortunately don't have a keyboard plugged in so it doesn't I'm just kinda - so well yeah so that just does not seem to be the case here but this is gameplay coming from a GT 730 on a laptop passed through to a friend anyway like this is being played on a laptop with a mobile quad-core processor with an external graphics are hooked up to it in a virtual machine I'd say I get anywhere playing here around no less than 50 at any point I get like a little micro stutter sometimes but also it's mostly when I walk into new rooms and I'm playing off an external hard drive so I probably have something to do with it here are the settings I have set for the game mostly because the GT 730 is not a great card even if I was playing on a desktop I'd have to play on similar settings
Info
Channel: Raven Repair Co.
Views: 95,429
Rating: 4.9240222 out of 5
Keywords: egpu, external graphics card, kvm, virtual machine, virtualization, gaming, linux, antergos, arch linux, virtualized, gaming on linux, linux gaming, thinkpad, t530, vm, vms, kernel-based virtual machine, laptop, exp gdc beast, expresscard, graphics card, gpu, passthrough, gpu passthrough, qemu, libvirt, virt-manager
Id: HXgQVAl4JB4
Channel Id: undefined
Length: 15min 15sec (915 seconds)
Published: Mon Feb 04 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.