A Guide on Creating a Gaming Virtual Machine!

Ғылым және технология

Welcome everyone to a pretty ambitious video that I've wanted to make for a short while now, this concerns the creation of a virtual machine that can game! See this as a 'response' (as such) to the SomeOrdinaryGamers video, which (at times) implicitly told you what to do, which can actually compromise the ability to create the VM or its performance! At the end of the day, I needed a gaming VM to use my PC due to hard drive problems which prevented me from using Windows 10 natively. I think this is all straightened out now, hence why I can get this video to you! Anyway, I hope you find some value from this video and let me know what you thought of it.
SOG original source (and inspiration!): • MAKING A GAMING VIRTUA...
At 25:45, this is a link to the virtio drivers iso file: docs.fedoraproject.org/en-US/...
EDIT: New link to an Arch Linux guide (if you want to check it out): wiki.archlinux.org/index.php/...
► Follow me on Twitch here: / themaster974streams
► Follow me on Twitter here: / thethemaster974
► Subscribe to my stream archive channel here: / @themaster974streams

Пікірлер: 66

  • @davechristoffersen6633
    @davechristoffersen66333 жыл бұрын

    Great video well done

  • @exsosus5002
    @exsosus50023 жыл бұрын

    This was a lot of fun to watch, TheMaster. A note for all of you: If you need a CPU-instense / graphics intense machine for, for example new games such as at the date of writing this in April 2021: Cybpunk 2077, VR games with your VR headset on PC and last but not least city simulators which eat CPU such as: Simcity 2013 and City Skylines, both my favorite city games, its best to go with the real stationary machine. (Don't do laptop for gaming).

  • @exsosus5002

    @exsosus5002

    3 жыл бұрын

    P.S. Your voice is great, no problems with it.

  • @TheMaster974

    @TheMaster974

    3 жыл бұрын

    Thanks for the comment!

  • @TheMaster974
    @TheMaster9743 жыл бұрын

    Hi all, hopefully you find the guide helpful! I have recently done a follow-up to this video where I go over some things from the video: kzread.info/dash/bejne/dZ5spKVrgJDWcrA.html I also came across an Arch Linux guide covering this stuff so I will link it here: wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF Plus I did another follow-up video where I go over the problem at the end of the guide where Windows would know it's a virtual machine when we don't want it to say that: kzread.info/dash/bejne/lohnksaRqta2hZc.html If you have any questions/corrections, read through the comments/responses in this video and check out the two follow-up videos then let me know and I will see what I can do. Take care!

  • @davechristoffersen6633
    @davechristoffersen66333 жыл бұрын

    Great video do you think it would be better to use fedora as it has the latest virt manager release

  • @TheMaster974

    @TheMaster974

    3 жыл бұрын

    I would say it doesn't matter too much, I did this on Ubuntu and it works fine so if you choose to use Fedora/Debian or something else, that's fine.

  • @njtehordekian5813
    @njtehordekian58132 жыл бұрын

    Thank you for the interesting video, the concept was tottaly new for me, therefore I'm very curious if the whole process gives you any sort of tangible performance boost in terms of GPU rather than the one which you're actually using?

  • @TheMaster974

    @TheMaster974

    2 жыл бұрын

    Thanks for the comment! I don't think this process would lead to any different GPU performance, since the virtual machine has full access to the dedicated GPU so it would be the same as using a native install of Windows 10. However, I would expect slightly lower CPU performance, since the processor needs to support the virtual machine and the hypervisor.

  • @njtehordekian5813

    @njtehordekian5813

    2 жыл бұрын

    @TheMaster974 so as I am trying to understand the immediate benefit of creating a virtual machine, can we conclude that saying "it's only worth if you wanna create a safe and isolated environment to try out new things with no other advantages"?

  • @TheMaster974

    @TheMaster974

    2 жыл бұрын

    Pretty much, I do mention the reasons for doing this in the video, but getting better performance out of games isn't really one of them.

  • @shauncampbell969
    @shauncampbell9695 жыл бұрын

    I have been thinking about building a gaming pc, for two years.I thought this was a live "Vid" . I'll listen anyway. All the best Shaun of NYC

  • @TumbleGamerTK
    @TumbleGamerTK3 жыл бұрын

    isnt threads where the cpu has a number of jobs to do and it does them at the same time by interlacing the individual tasks of the jobs

  • @101pcgamer
    @101pcgamer4 жыл бұрын

    can you use 2 dedicated gpu's? as i don't have onborad gpu on my MB

  • @TheMaster974

    @TheMaster974

    4 жыл бұрын

    I think you should be able to, as long as the dedicated gpu you want to use is plugged into your pc and is in its own separate iommu group (you can determine this by following the steps presented in the video up to around the 20 minute mark, as this goes over the overall setup and initial Linux steps to get the virtual machine working as intended). So one dedicated gpu outputs to the Linux distro you want to use (i.e. Ubuntu) and the other outputs the virtual machine feed. Hopefully this is helpful!

  • @jo-ellenphilander1230

    @jo-ellenphilander1230

    4 жыл бұрын

    @@TheMaster974 I have an AMD 3400g APU, the integrated or iGPU, that I want to use for the host OS and a dedicated GPU that I want to use exclusively for my Windows 10 virtual machine. My question is if I enable the integrated graphcs in the BIOS do I connect the first monitor for the host OS directly to the motherboard and the second monitor to the graphics card for the virtual machine?

  • @TheMaster974

    @TheMaster974

    4 жыл бұрын

    Yes you would, also make sure that the display output setting in the BIOS is set to the option that is not PCI to ensure that the installation of the host OS/usage of the host OS displays to the monitor that is connected to the motherboard, as you don't want to use the dedicated GPU in your host OS at all (you want to pass through 100% of the dedicated graphics to the virtual machine). I hope this answers your question!

  • @jo-ellenphilander1230

    @jo-ellenphilander1230

    4 жыл бұрын

    @@TheMaster974 Thank you.

  • @alisaen2128
    @alisaen21284 жыл бұрын

    42:40 error: XML document failed to validate against schema: Unable to validate doc against /usr/share/libvirt/schemas/domain.rng Element domain has extra content: qemu:commandline Failed. Try again? [y,n,i,f,?]:

  • @TheMaster974

    @TheMaster974

    4 жыл бұрын

    I think this is happening because you have put the wrong url into the domain bit at the top of the virtual machine settings at this step, the top line is supposed to be: I know I say https in the audio, but it is supposed to be http. Hopefully this helps!

  • @LinusMOGEL
    @LinusMOGEL3 жыл бұрын

    Does it matter if there is just two devices in the iommu [20:09] edit: I have a brand new Ubuntu install, what about PCIe Link? edit: my linuxOS is completly black

  • @TheMaster974

    @TheMaster974

    3 жыл бұрын

    Firstly, I have absolutely no idea if PCIe Link affects anything about this procedure! Anyway, to answer your question, it depends on what two things are there. If it's, for example, showing something like 01:00.0 and 01:00.1, then this is the graphics output and the sound controller for your graphics card, which is good, meaning you can continue with the guide. If it says something like 00:01.0 and 01:00.0, then this is the PCI link and the graphics output for your graphics card, which is bad, as this means you will not be able to hear audio in the VM as the audio controller hasn't been passed through. If it's the first case, then the PCI Link not showing isn't really important as it's the other ID's that matter (as these are needed to obtain the relevant hardware ID numbers that means you can pass the graphics card through to the VM). Otherwise, if it's the latter case, you may not be in a position to continue. Hopefully this helps!

  • @embedyt
    @embedyt3 жыл бұрын

    I couldn't find the the onboard graphics change on my tuf gaming x570-plus

  • @TheMaster974

    @TheMaster974

    3 жыл бұрын

    The internal/onboard graphics is purely on the processor not the motherboard, so there may be the possibility that your processor has no internal graphics hence why no option is present. It might be worth searching the processor model online and seeing if it has onboard graphics or not. If the processor you have has an internal graphics card, enable advanced mode in the BIOS (F7 from screenshots, from what I've seen) and browse through the different tabs until you find the right option. Otherwise, you can't really follow this guide since this is a must have requirement to progress. I don't have this type of motherboard so I can't really tell you where to go. I hope this helps!

  • @shauncampbell969
    @shauncampbell9695 жыл бұрын

    A very interesting vid. Of course, I'll have to view this, over and over, just for the items to build the machine. I wanna play BattleFront Star Wars. Ok bye

  • @99joehogan
    @99joehogan4 жыл бұрын

    can I use 2 amd graphics cards? for example a r7 250 and and a 5700xt

  • @TheMaster974

    @TheMaster974

    4 жыл бұрын

    I think you can, you have to follow the guide in a similar fashion as I show and make sure you can isolate one of the dedicated graphics cards (iommu group stuff at around 19:40 is important), just look out for the fact the amd drivers may try and take a hold of the graphics card you want to isolate, which may introduce difficulties with later steps. That's all I can really say, as I cannot try this myself (I don't have 2 dedicated graphics cards). Hopefully this is helpful!

  • @mridunnolol11
    @mridunnolol112 жыл бұрын

    Whats the game at 50:00? looks like wipeout but I cant find it!

  • @TheMaster974

    @TheMaster974

    2 жыл бұрын

    It's BallisticNG: store.steampowered.com/app/473770/BallisticNG/

  • @MWJH_
    @MWJH_4 жыл бұрын

    I love the idea, but isn't it just easier to make a dual boot?

  • @TheMaster974

    @TheMaster974

    4 жыл бұрын

    Easier? Yes, absolutely! As I say in the video, you may want to follow this guide to demonstrate that you can make a gaming virtual machine, do it as a passion project or want to test viruses i.e. the PUBG ransomware. You wouldn't want to do something like the latter on your main OS (or an OS that is part of a dual boot setup), as you wouldn't want to risk compromising your files, and as PUBG is a graphically intensive game, a gaming VM serves as a good way of testing that sort of stuff out. I understand the leap in terms of ease of access when it comes to this, though I have to say that this does have some perks that a dual boot doesn't necessarily provide.

  • @acryllic6752

    @acryllic6752

    3 жыл бұрын

    I

  • @acryllic6752

    @acryllic6752

    3 жыл бұрын

    TheMaster974 I

  • @shahrill5818
    @shahrill58183 жыл бұрын

    Can i use this on hybrid graphic laptop Nvidia gtx1650?

  • @TheMaster974

    @TheMaster974

    3 жыл бұрын

    I have no idea, probably not since the graphics card may be integrated with the motherboard so there's only one display output, not two (which is needed). If the BIOS doesn't allow you to change the graphics output (there probably won't be an option in your case) then you cannot use this laptop for this guide. Hopefully this helps!

  • @avaneeshghosalkar5845

    @avaneeshghosalkar5845

    3 жыл бұрын

    I couldn't install drivers on mine

  • @avaneeshghosalkar5845

    @avaneeshghosalkar5845

    3 жыл бұрын

    (my laptop ofcourse)

  • @CoolguyTheClone
    @CoolguyTheClone4 жыл бұрын

    Im getting stuck at this part 25:22 my gpu (nvidia gtx 2070 super) saids the drivers are being used by NVIDIA. Before hand my graphics card has been showing 4 different ports i tried including them with the other ports but when i did and tried to log in I would get stuck in a login loop. Im able to use it again but its still having the same issue.

  • @TheMaster974

    @TheMaster974

    4 жыл бұрын

    Hmm, I'm no expert when it comes to this so I'm sorry if I can't help more than what I'll say here. I think you're using the NVIDIA graphics card on the Linux system when you shouldn't, hence why it would say NVIDIA is using the graphics card. The other ports mentioned could be the alternative DisplayPort/HDMI outs that can be seen in the NVIDIA control panel maybe? Anyway, what you should have done is enabled the internal graphics of your computer, change the output from PCI to the option that is not PCI in the BIOS and install Linux (preferably a minimal install) with these settings. That way, the Linux install outputs to the monitor that is connected to the internal graphics card and it also defaults to using the internal graphics instead of the NVIDIA graphics, so the process shown in the video works. Given your situation, I would advise you to check if this is the case and maybe reinstall Linux, as I know from experience if you change the output source in the BIOS it can lead to a looped boot sequence. If you go down the road of reinstalling Linux, it may help to not connect it to a monitor, as it should still show up when looking into PCI devices and it shouldn't install NVIDIA drivers. I'm not sure about how to get around this issue when Linux is installed, however. The only other thing I can suggest is to look into how to uninstall NVIDIA drivers in Linux, and maybe that would solve your problem. As I said, I'm no expert when it comes to this stuff! The whole point of this method is to passthrough 100% of a dedicated graphics card to a virtual machine, so using it in Linux is not what you should do. Installing NVIDIA drivers and all that defeats the purpose of doing this, which may have put you in the position you're in, though I wouldn't know! Hopefully this helps.

  • @CoolguyTheClone

    @CoolguyTheClone

    4 жыл бұрын

    @@TheMaster974 I managed to get it working using another method and a script used for the manjaro distro, I think the problem was that I was using my nvidia (2070 super) as the main graphics card for boot and was messing up the configuration so I switched my graphics card for boot I was also able to use the script (Manjaro, with a few modifications) to passthrough an NVMe ssd to virt-manager. Thx for the video really help me understand how the process works

  • @killerofjustice431

    @killerofjustice431

    3 жыл бұрын

    @@TheMaster974 Thanks so much for this! I had the same issue as the other guy and when I went with your instruction to make the integrated graphics the main display it fixed the login loop, I don't know why I didn't think of that before

  • @Lanevader
    @Lanevader3 жыл бұрын

    I still can’t understand how to do this for the life of me lmao

  • @TheMaster974

    @TheMaster974

    3 жыл бұрын

    It's nerdy, difficult technical stuff so I wouldn't get too disheartened by it! Even I don't fully understand how this whole thing works...

  • @Lanevader

    @Lanevader

    3 жыл бұрын

    @@TheMaster974 Can you use save states on this? For example, if I wanted to save a game and go back to it later?

  • @TheMaster974

    @TheMaster974

    3 жыл бұрын

    I'm not sure, this is what I'm finding regarding something like this: access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/virtualization_administration_guide/sub-sect-starting_suspending_resuming_saving_and_restoring_a_guest_virtual_machine-save_a_guest_virtual_machine And: access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/virtualization_deployment_and_administration_guide/sect-starting_suspending_resuming_saving_and_restoring_a_guest_virtual_machine-starting_a_defined_domain Follow the steps shown on these pages and see if it achieves what you want.

  • @Lanevader

    @Lanevader

    3 жыл бұрын

    @@TheMaster974 I have an i7-8700k and a RTX 2080super, 16gb of ram, do you think the vm would be capable of running call of duty black ops/ bo2 while recording on my main pc?

  • @TheMaster974

    @TheMaster974

    3 жыл бұрын

    It depends on what you mean by 'main pc', if you mean the Linux hypervisor then probably not (the recording may have a lot of dropped frames and look rather crappy, as the work is being solely done by the processor), if you mean the Windows VM then I think you should be able to, as you would be able to make full use out of the RTX 2080 Super just like you would with a native Windows 10 install. It sounds like you have the specs to be able to play and record a game like CoD at the same time in the Windows VM, so I would suggest you give it a try and see how it goes.

  • @Natfromtheinternet
    @Natfromtheinternet3 жыл бұрын

    I don't have integrated graphics I have an intel i5-9400f

  • @TheFoxstory
    @TheFoxstory4 жыл бұрын

    23:56 it's vfio_virqfd

  • @TheFoxstory

    @TheFoxstory

    4 жыл бұрын

    so how do you use your graphic card on linux after you've done this?

  • @TheMaster974

    @TheMaster974

    4 жыл бұрын

    Firstly, I thought it was supposed to be vfio_virqfo, as that's what SomeOrdinaryGamers said to do in his video about this (if memory serves). If it is meant to be vfio_virqfd then I would say that this is what everyone should be using instead! At the same time, I noticed I put 3 m's in iommu in the line above this (at this timestamp of 23:56) instead of 2, so I will also say it should be spelt with 2 m's and not 3! For the second point, you don't use your dedicated graphics card in Linux at all by following this process, as it will get locked out and passed through to a virtual machine. What I would say is to ensure you install Linux while the internal graphics of your PC is enabled and the output is changed from PCI to the option that is not PCI in the BIOS, so Linux gets outputted to the monitor that is connected to the internal graphics card, bypassing the dedicated graphics entirely (so you can possibly get away without connecting the dedicated graphics card to a monitor throughout this process). So, Linux only uses the internal graphics and not the dedicated graphics throughout this procedure, if that answers your question. If your question is how to use this is in a virtual machine later on, then watch the video up until around 33:00. If you want to use your dedicated graphics card in Linux after doing this, go into the grub file and remove the vfio-pci.ids line (at about 22:00), as this prevents vfio from grabbing the dedicated graphics card on boot. The point of this method is to passthrough 100% of a dedicated graphics card to a virtual machine, so using the dedicated graphics card in Linux is not advised. I hope this helps!

  • @shibu273
    @shibu2734 жыл бұрын

    are u ed sheeran's younger bro ???

  • @TheMaster974

    @TheMaster974

    4 жыл бұрын

    Sadly not, I probably wouldn't be doing KZread stuff if that was the case!

  • @egzonhajdari1734
    @egzonhajdari17344 жыл бұрын

    is this free

  • @TheMaster974

    @TheMaster974

    4 жыл бұрын

    From a software standpoint (i.e. a Linux OS, virt-manager, Windows 10 etc.) then yes, you don't have to pay for anything I show in the video. From a hardware standpoint (i.e. a gaming computer, external USB flash drive, a second keyboard/mouse etc.) then no, you have to pay for those. Hopefully that clears things up for you!

  • @egzonhajdari1734

    @egzonhajdari1734

    4 жыл бұрын

    TheMaster974 thanks bro

  • @James-wd9ib
    @James-wd9ib3 жыл бұрын

    Ron ??

Келесі