GPU Pass-through On Linux/Virt-Manager

Sdílet
Vložit
  • čas přidán 4. 03. 2022
  • In this video I show you how to pass through your graphics card to a virtual machine (virt-manager) on Artix Linux.
    ₿💰💵💲Help Support the Channel by Donating Crypto💲💵💰₿
    Monero
    45F2bNHVcRzXVBsvZ5giyvKGAgm6LFhMsjUUVPTEtdgJJ5SNyxzSNUmFSBR5qCCWLpjiUjYMkmZoX9b3cChNjvxR7kvh436
    Bitcoin
    3MMKHXPQrGHEsmdHaAGD59FWhKFGeUsAxV
    Ethereum
    0xeA4DA3F9BAb091Eb86921CA6E41712438f4E5079
    Litecoin
    MBfrxLJMuw26hbVi2MjCVDFkkExz8rYvUF
    Dash
    Xh9PXPEy5RoLJgFDGYCDjrbXdjshMaYerz
    Zcash
    t1aWtU5SBpxuUWBSwDKy4gTkT2T1ZwtFvrr
    Chainlink
    0x0f7f21D267d2C9dbae17fd8c20012eFEA3678F14
    Bitcoin Cash
    qz2st00dtu9e79zrq5wshsgaxsjw299n7c69th8ryp
    Etherum Classic
    0xeA641e59913960f578ad39A6B4d02051A5556BfC
    USD Coin
    0x0B045f743A693b225630862a3464B52fefE79FdB
    Subscribe to my CZcams channel goo.gl/9U10Wz
    and be sure to click that notification bell so you know when new videos are released.
  • Věda a technologie

Komentáře • 574

  • @Calajese
    @Calajese Před 2 lety +1215

    Remember kids, when using windows always use protection, use a VM.

    • @AbdAbdAbdAbd
      @AbdAbdAbdAbd Před 2 lety +40

      don't forget to use windows 10 debloater to remove the telemetry and other bloatware

    • @rockytom5889
      @rockytom5889 Před 2 lety +50

      @@suspiciousstew1169
      Ah yes, msi's bios updates, which for some reason wipes the NVRAM of the uefi, even though that part has shit to do with the actual update. Fucking grade A engineering right there.
      Anyways, if you need a solution, get a live usb and chroot into the drive, then run efibootmgr. Can't remember the full command right now, but it boils down to you selecting what disk your efi part is, what partition it is, and the path to the efi executable, relative to efi part root, and the last argument is the name of the nvram entry, you can call it whatever.

    • @LukasTheWizard
      @LukasTheWizard Před 2 lety +1

      thamks

    • @vertukv
      @vertukv Před 2 lety +20

      @Not Convinced yes, windows has the best keylogger undetectable by any antivirus (why people even use antiviruses ?)

    • @rawmaterials3909
      @rawmaterials3909 Před 2 lety +1

      ... and if he complains and want to enter from the front door, you have the right to say no.

  • @Wilfightyounaked
    @Wilfightyounaked Před 2 lety +83

    This is unbelievable, I have been trying to do this for months since I started using Linux for the first time

    • @sergsergesrgergseg
      @sergsergesrgergseg Před 2 lety +2

      whats the performance like on lower end cpus (4c/8t)?

    • @stifenjans4342
      @stifenjans4342 Před 2 lety +1

      Do u even met hardware requirement intel Vtd/vtx motherboard support?

  • @TroJanBerk
    @TroJanBerk Před 2 lety +5

    This is a great guide since you also provide the reasons for doing certain things, which some guides leave out for some reason or leave unclear.
    Thanks!!

  • @TheHorse_yes
    @TheHorse_yes Před rokem +18

    Mad props from a long-time viewer for trying to help out in intermediate level Linux/VM stuff! ;o) -- I agree, virt-manager GPU passthru can be a hassle to set up (even with an instruction video like this), but can be used for so many cool stuff, just as you described. Sadly, some games nowadays have VM detection and blocking in their anti-cheat systems (due to i.e. farmbotting etc.), so just having a GPU pass-through might not work with every game -- that is, unless you've got low-level hypervisor support on your motherboard (i.e. Hyper-V), have it enabled for the CPU architecture as well from your UEFI/BIOS menu, and use that to pass-through your architecture (=CPU & motherboard topology) in virt-manager, which also makes things obviously way faster, but might come with some risks, such as Virtual Machine Escape (see Wikipedia article under that title, also the "Hyperjacking" article for VM risks). So, a word of caution on what you should run with those. You didn't mention Hyper-V (probably because it can be enough of a subject for a video of its own?), but it's also definitely worth looking into. If bare metal-level performance is what you're after, then it's Hyper-V + GPU-passthrough FTW. On the PCI(e) graphics pass-through frontier, there's been some developments in other adaptations like Looking Glass that you might want to look into (they have their own website & wiki), although I must say idk about the current status of the project and what caveats it might have. As others pointed out, there's many tweaks to a VM in virt-manager that might make it way faster (enabling xmp), even stuff like RNG (/dev/random, /dev/urandom) hardware passthru is recommended to be set up correctly for faster performance (albeit the more you let things pass through the hardware, the more hypothetical security risks there _might_ be). Then again, if you're running a few pieces of legit software on the Windows side, shouldn't be too concerning. Anyway. I recommend looking up Looking Glass and into Hyper-V and other bells 'n' whistles 'n' other Gyro Gearloose-doohickey-options in virt-manager to make your VM run faster. Thank you, have a great day!

  • @ange115
    @ange115 Před 2 lety +3

    I literally spent all of last week trying to figuring this out. Now, you post the video that solved my problems with the driver loading too fast for my GPU.

  • @beregg9159
    @beregg9159 Před 2 lety +4

    I plan on upgrading my PC later on this year once the RX7000 cards release, thanks for making the vid since theres a definite lack of full video guides on this topic

  • @LongestYardstick
    @LongestYardstick Před 2 lety +1

    THANK YOU!!!! GPU passthrough has stumped me for ages on KVM/QEMU

  • @dylon4906
    @dylon4906 Před 2 lety +1

    recently started test driving linux with the idea of keeping a windows install on another ssd but using it with a vm inside Linux. I was going to use virtualbox until I saw your video about how to use qemu/kvm, so I decided to do that instead. got it all working and then realized I need gpu passthrough. only a couple days later you release this video. thanks for reading my mind

  • @LawlessSentry
    @LawlessSentry Před 2 lety +59

    Great video! Just wanted to mention that single GPU passthrough (as in only having one GPU in the entire system) is also viable and works pretty well, even though it's recommended to set up qemu hooks to detach and attach the GPU while system is running to avoid hassle.

    • @AROAH
      @AROAH Před 2 lety +5

      How does that work? Does the Linux machine become headless while the VM is in control?

    • @LawlessSentry
      @LawlessSentry Před 2 lety +3

      @@AROAH yes

    • @offset.5727
      @offset.5727 Před 2 lety

      can you use this method with 2 gpus? like hooking one and leaving the other for the host or is normal vfio easier?

    • @LawlessSentry
      @LawlessSentry Před 2 lety +4

      @@offset.5727 Yep, since when you detach you use a command where you need to specify the PCIE device id, something like: _virsh nodedev-detach pci_0000_0a_00_0_

    • @em_the_bee
      @em_the_bee Před rokem +4

      Dumb question: where do you plug your monitor's video cable, if, say you have an iGPU and a dGPU? How would the iGPU work if you plugged it into the video card?
      (I only have one dedicated GPU, so I can't go and check)

  • @leediffusion
    @leediffusion Před rokem

    Excellent tutorial which helped considerably in me wrapping my head round GPU passthrough. Thankyou!

  • @seanld444
    @seanld444 Před 2 lety +1

    Once again, Kenny with a video that's exactly relevant to a current question I have.

  • @milkgrapes6420
    @milkgrapes6420 Před 2 lety +2

    Would love to see a single gpu passthrough guide soon from you Mr. kenny outlaw, great video.

  • @oaktwig
    @oaktwig Před 2 lety +4

    For those using Proxmox, there are some great guides out there as well. This video is pretty close to what you need anyway. I got my GTX1060 passed through to a Windows 10 VM and works great.

  • @czos9239
    @czos9239 Před 2 měsíci

    Damn dude, u da GOAT! Did some quick lookups and got this up with an amd card. Also got the usb 3.2 card up right off. Incredible. Casual user who only watched some vids about pass through before doing it. Got games going. Got professional software going. Amazing.

  • @SkyenNovaA
    @SkyenNovaA Před 2 měsíci

    Thanks for this simple guide. Now I can actually run all the proprietary software my college requires me to use without compromising my system!

  • @rightwingsafetysquad9872

    I remember tying to do this a couple years ago and gave up after 3 days. Good to see it mostly actually works now.

  • @MrArrakis9
    @MrArrakis9 Před 2 lety +1

    instant like just from the title alone bud. thanks for the guide!

  • @jupitersky
    @jupitersky Před rokem +1

    _THANK YOU_ for the softdep tip. Very nice find!

  • @sewertendo
    @sewertendo Před 2 lety +131

    Hey, just wanted to say I really like what this guide set out to do - because it covers a lot in a very comprehensive way, but having done this myself before, there can be a lot of gotchas and caveats with doing this. I just want to point some of those out because I think a lot of people who may be attempting to try this off this video alone are going to hit walls.
    - To actually use the GPU for gaming (not just compute tasks), you'll need to hook a seperate monitor into the gpu. I can't remember if I *needed* to disable the virtio display as well but I'm pretty sure I did. This goes for almost any hardware passthrough - it will steal the device from the host system, so you'll either need a second keyboard/mouse/usb controller/sound device OR a KVM switch. Basically it's like running two computers off one computer. Alternatively you can use a low latency remote application, but there are compromises there too.
    - There's something you may need to add to your xml config so that you can avoid error 43 in device manager (also get around "most" anti VM drm on games)
    - The video card needs it be in its own IOMMU group unless you attempt a complicated workaround (if you only have a motherboard that supports 1 gpu and no iGPU, you may not be able to pull this method off). I recommend anyone doing this has a AMD Threadripper or Intel-X workstation motherboard - it's not just about the number of physical slots. Some lower end boards will work but it may require a totally different method.
    Personally I can say VirtManager/IOMMU is probably the best way to get to the metal performance VMs, especially on arch. But I had quite a bit of difficulty using it as a daily driver. I ultimately decided to build an ESXI server for virtualization, even though arch is really really cool. Performance wise it's the best and I even like virtmanager's software acceleration better than VMwares. But it can get convoluted really quick and I don't think I had the linux chops to troubleshoot all the little details and hiccups I was experiencing.

    • @sewertendo
      @sewertendo Před 2 lety +2

      ​@@jotsa The passthrough will technically work as-is because your VM will have the GPU installed - and that definitely has use cases even without the direct connection to it. My understanding is that you're still using the Virtio QXL Drivers for the display that's built into virtmanager/QEMU (it's the one in device manager that shows up as Red Hat QXL controller). Therefor it's still doing a majority of the work in applications that display on it.
      I could be wrong though. This was a while ago and methods change, or I just misremember. But I did have to go and buy a KVM switch to get it all working in the end. Test some games out on it and you'll know for sure.

    • @sewertendo
      @sewertendo Před 2 lety +4

      ​@@jotsa Hmm, I guess it'd be worth me revisiting in the future then. I could never get that working properly. I had to basically stick with 1 gpu per system. But it was basically bare metal.

    • @panloczek
      @panloczek Před 2 lety +5

      That's not 100% true. There is a way to have one GPU, one monitor and single keyboard+mouse and have GPU passthrough. I've set up my PC like that a long time ago and it works.
      One caveat is that when using this setup, you can't simultaneously use your Linux and Windows, it's either one or another cause here, when you start your VM, you kill your X (or any other UI), then VM starts up and steals your GPU and Windows boots. One thing with this is that when something crashes (even your keyboard or mouse will not setup properly), you won't be able to control VM or in worse case, you'll need to reset your whole PC, because something broke, your GUI didn't start and you ended up with black screen.
      I've tried using GPU passthrough with two GPUs inside PC, but then (because I chose wrong MoBo) I was able to pass only secondary GPU and having 5700XT on a, IIRC, 1x PCIe sounded very, very bad. So that's when I've found single GPU passthrough.

    • @battokizu
      @battokizu Před 2 lety

      You can do many of the things in this video and in others pretty much as is, with most consumer boards. I have at least 3 different x370/x570 boards that had zero issue with actually passing thru, but some gotchas that kept it from working till I configured either Linux or scripts or the dreaded ACS patch.
      As long as windows is installed it acts like a regular windows install, no crazy bs.
      And for what its worth, its been super stable for what I do, multiple pcie devices passthru and when it works it works excellently. Just need a board for later that has proper iommu groups.

    • @battokizu
      @battokizu Před 2 lety +1

      @@sewertendo oh and you don't need to use the virtual display thing, you can use looking glass if you want to go "headless" in windows.

  • @aliqandil
    @aliqandil Před 2 lety +2

    Thanks again! After follow the last tutorial and getting rid of virtual box, I did look into GPU passthrough on my laptop, but got scared a bit and postponed it for later. this helps a lot, but for decent gaming, I think spice isn't fast enough, and it looks like the solution is something called "looking glass". (since I don't want to haul another monitor with my laptop.)
    Also I still haven't found any methods that suggest an elegant way of switching the display between the host and guest OS.
    I wish we could just press alt+ctrl+f1 and f2 to use different ttys to switch seamlessly!

  • @ARitzCracker
    @ARitzCracker Před 2 lety

    This is definitely going to help me get started on stuff like this, thanks a lot!

  • @mayonaiseking
    @mayonaiseking Před 2 lety +192

    As much as I appreciate you doing this video, this is *NOT* "single GPU passthrough".
    Yes you just passing through one GPU of your system, but you have two in there. The goal of single GPU passthrough is, that you are passing your one and only GPU through to the VM and get back into your linux system after playing or whatever you might need Windows for.
    You title does not suggest "single", but you are saying it a lot. The comment also asked for "single".
    Although most of the steps are kinda the same, passing the GPU that you are currently using in Linux through to Windows and getting back to Linux safely is much more complicated and fiddlely.
    It would be great, if you'd cover that, too, though 😉

    • @battokizu
      @battokizu Před 2 lety +3

      Nvidia usually, usually, is going to be easy in and out, where as amd might present problems depend on which generation you have. I believe the newer cards are less problematic but might still have the reset bug of which you can alleviate in windows by setting the device to be enabled and disabled via a scheduled task. I don't have any issue with my r9 380 but my wx7100 gave me so much shit for the longest time, but I did the task schedule script and it work like magic. But there's always a gotcha somewhere that makes this more a bitch than it should be.

    • @askiiart
      @askiiart Před 2 lety

      @@battokizu Could you explain a bit more? I'm trying to do the same thing but with a w4100, so I'm guessing the troubleshooting would be very similar to what you're doing.

    • @battokizu
      @battokizu Před 2 lety

      @@askiiart It's been a bit since I've actually set up the system, aside from setting up virt-manager in manjaro, I don't remember what actually got the passthru working. I have that system still available so I'll update my comment if I see anything that I did that might help you out. But I do have to ask what specific issue are you having? Or what step are you on that is still causing issue.

    • @askiiart
      @askiiart Před 2 lety

      @@battokizu Didn't see your reply, sorry. Turns out my motherboard doesn't support iommu. Don't think there's anything I can do about that.

    • @battokizu
      @battokizu Před 2 lety +1

      @@askiiart no problem, we're all busy with stuff. Sorry to hear that, you should be able to get a cheap Asus x570 mobo and have no issues, if your intel or on some older platform that doesn't have support, which might be the case on Intel's side of things and amd pre ryzen. But anyhow used motherboards and cpus aren't the worst thing you can invest in if you really want to experiment with iommu.

  • @Woodywoodah
    @Woodywoodah Před 2 lety

    On my old box I was using GPU passthrough with Linux as both the host and guest, then using Proton on the guest for games. Worked great!

  • @Secretly-Based
    @Secretly-Based Před 2 lety +8

    Been doing this for about a year now with a Displayport KVM switch, works great! and I recommend just using two Logitech Unifying dongles with mouse and keyboard that allow easy device switching. I also passthrough a PCIe wifi card and usb card to get reliable direct access.

    • @pizzamana
      @pizzamana Před 2 lety

      I tried adding a PCIe sata card to mine for hard drives, but whenever i try and boot with it my host crashes. Any words of wisdom? GPU passthrough working fine on it from what I can tell.

  • @PoeLemic
    @PoeLemic Před rokem

    Thank you for covering this, @MO. Yes, this is a very hard thing to find the steps on the web. I plan to do this very soon, because I just had another windows update went and borked my system. It really fucked up my Office 2010 apps (like Word) and now it won't load. And, it took hours to figure out what went wrong and get it so that Office would load correctly; and, even still, some of my add-in, purchased software doesn't work yet. So, I've got to virtualize windows and eliminate these problems.

  • @mckidlet
    @mckidlet Před 10 měsíci

    i was able to do this on ubuntu (kubuntu) with some tweaking of commands on the cmd line and i got it working! awesome tutorial!

  • @killertigergaming7395
    @killertigergaming7395 Před 2 lety

    Finally this is exactly what i have been looking for

  • @GoonRaccoons
    @GoonRaccoons Před 2 lety +61

    Now if you take the extra steps to make it think it's bare metal and enable Hyper-V in Windows it will enable Virtualization and confuse any anti-cheats into thinking you're not on a VM. I've used this method before to play things like Escape From Tarkov but games like Valorant with their root kit anti-cheat may be a bit more annoying to deal with.

    • @warhawk_yt
      @warhawk_yt Před 2 lety +12

      Actually that same method works for Valorant last I knew but you need to add a couple flags to the vm xml as well. I don’t know if that still works but it did for a while. Haven’t looked into it recently. Most all anticheats run on the kernel level just that Vanguard goes to far in running 24/7.

    • @D00000T
      @D00000T Před 2 lety +20

      You can get games like valorant to work but that requires you to either really know what you’re doing or be constantly kept up with whatever esoteric black magic workaround the vm gaming community has found for the most recent version of the game

    • @gayusschwulius8490
      @gayusschwulius8490 Před 2 lety +3

      @@D00000T it's not that hard, usually spoofing hwids is all it takes. There's little they can do about it.

    • @santiblocks
      @santiblocks Před 2 lety

      @@gayusschwulius8490 Unless it is one of those fancy rootkits that uses some instruction that is slower on a vm. There's a way to spoof that too, but you need to compile the kernel with some modifications

    • @DavidJonSpem
      @DavidJonSpem Před 2 lety

      I believe Valorant and Rainbow Six Siege already patched this out

  • @deepkhamaru
    @deepkhamaru Před 9 měsíci

    Man, the "bring this video on phone" advice stole my heart!!

  • @SomeRandomPiggo
    @SomeRandomPiggo Před 2 lety

    ive been waiting for this for so long YES

  • @SpaceCatNikko
    @SpaceCatNikko Před 2 lety

    thank you. I found this walkthrough very useful!

  • @Flika-ul9tl
    @Flika-ul9tl Před 2 lety

    I love VMs! I'd love to see more videos like this.

  • @BeethovenHD
    @BeethovenHD Před 2 lety

    I missed your tutorials !!!

  • @slavko5666
    @slavko5666 Před 2 lety +1

    Thanks! Been waiting for this for some time. Also SomeOrdinaryGamers made a similar video months ago.

  • @error_404_nofound
    @error_404_nofound Před 11 měsíci

    thank you for show us a quick and successfull way to do this process.

  • @LifeIsACurse
    @LifeIsACurse Před 2 lety

    i love you big D energy to simply not even bother with de-noising your voice audio track XD

  • @sheldonkupa9120
    @sheldonkupa9120 Před 2 lety +7

    Well explained! Just to note, if you have only one gpu u wanna passthrough, this is still possible as "single gpu passthrough". Might be useful in specific cases. With proxmox for example u get a web interface for the host, have the single gpu free for vms. As long as you have ssh or cockpit or anything available, it works with any distro.

    • @ritzmat
      @ritzmat Před rokem +1

      Hey bud I know this is 6 months old comment but yeah you can totally do single gpu passthrough but it adds step in the process like building a hook so the graphics card gets picked up when vm is launching and it does require also the bios file for the graphics card.
      You can find single GPU pcie passthrough guide on youtube

    • @Lameless
      @Lameless Před 11 měsíci

      ​@@ritzmatsad part is for me the hook scripts don't work

  • @spx2327
    @spx2327 Před rokem +2

    Thank you sir, excellent guide! I really don't understand why in 2022 this option is still not available in Virt-Manager...

  • @r3qu13m
    @r3qu13m Před rokem +1

    This is EXACTLY what I needed! To decide to go and keep on using dual boot.
    Wasted the better part of my day yesterday trying to get GPU and USB devices to work properly on virtualbox; then installed virt-manager with Qemu/Kvm and faced similar problems.
    Today I say no, NO MORE! I'm done! xD
    Anyway, the only thing I can't do better on linux is play driving game with a sim wheel; so why bother. (Yeah it does work, the ffb is just dreadfuly bad compared to windows)

  • @STOPPEDINCOLORADO
    @STOPPEDINCOLORADO Před rokem

    I love you for this. Thanks.

  • @livingcodex9878
    @livingcodex9878 Před 2 lety

    Excellent timing!

  • @Nirim000
    @Nirim000 Před 2 lety +3

    No worry, most tutorials are incomplete, I had to get my friend help to get me out of a false negative when I did it 3y ago.

  • @NathanielMcCaffrey
    @NathanielMcCaffrey Před 7 měsíci

    thank you so much chief, this worked wonders for me

  • @MH-kc5jr
    @MH-kc5jr Před 2 lety +12

    I've noticed, your RAM is still running at stock speed, might want to enable the XMP profile or overclock the RAM yourself, otherwise you are probably leaving performance on the table. Ryzen/Threadripper really benefits from higher RAM clocks. Thanks for the guide though, been wanting to do this for a while.

  • @milkgrapes6420
    @milkgrapes6420 Před 2 lety +12

    If this process was easier, more streamlined, and friendly for new linux users we would get a lot more people in the linux desktop world. I couldn't do this on a laptop on somebody and he went back to Windows. Oh well. This is one of the best videos i've ever seen, Mr. kenny outlaw

    • @TwiggehTV
      @TwiggehTV Před 2 lety +16

      "If this process was easier, more streamlined, and friendly for new linux users we would get a lot more people in the linux desktop world." Unfortunately, this is true for waay to many things about Linux :/

    • @shredwerd009
      @shredwerd009 Před rokem +1

      i tried this but i am apparently too dumb. i just have a second disk for my winders install for the few games that require easy anticheat with no support on linux.

  • @FranciscoMarcosMilhomemAbreu

    Caramba, meu irmão! Bem no momento que eu tô pesquisando sobre o assunto!

  • @JeffyPDiddy
    @JeffyPDiddy Před 2 lety

    They took down your BitTorrent streaming video. Bastards! Thank you for all you do. Love your channel!

  • @OverlordTrump420
    @OverlordTrump420 Před 2 lety

    Very good tutorial, I just set this up a few months ago for a Mac VM I needed for an IOS app I am developing and this would have saved me a lot of headache. There are still a few extra steps if you are doing Mac VM, but these are a good enough just to get your windows machine up and running

    • @unreleasedjuicewrld9792
      @unreleasedjuicewrld9792 Před 2 lety

      How do you get a mac ISO?

    • @TheSuperBoyProject
      @TheSuperBoyProject Před 2 lety

      @@unreleasedjuicewrld9792 you need to rip it from a machine running macOS. Just go to your local computer shop and do it there if you dont have one. There are tutorials online.

  • @Jango1989
    @Jango1989 Před 2 lety

    Great walkthrough

  • @hugo-garcia
    @hugo-garcia Před 2 lety +1

    The thumbnails keep getting better

  • @LeslieZA
    @LeslieZA Před měsícem

    This had some useful info.

  • @averysnacks6834
    @averysnacks6834 Před 2 lety +6

    If I ever manage to get another GPU I'll have to try this set-up. Would love to see my VR rig working in a VM, Windows is genuinely awful to use all the time.

  • @salamdamai
    @salamdamai Před 2 lety

    Thank you for your vids.

  • @nexsych
    @nexsych Před 9 měsíci

    Great video!

  • @koolwond4264
    @koolwond4264 Před 2 lety

    Happy your doing this, pray to god that it works. Nice :)

    • @koolwond4264
      @koolwond4264 Před 2 lety

      I am worry, that this will break the system

  • @imagreatguy1250
    @imagreatguy1250 Před 2 lety

    Beautiful 🐧👍

  • @AvradeepPatra23
    @AvradeepPatra23 Před rokem

    Very good tutorial 👌🏼

  • @kloroformd
    @kloroformd Před 2 lety

    Good timing, I'm sitting here trying to get a Voodoo 3 to pass through.

  • @jeffpussylol2578
    @jeffpussylol2578 Před 2 lety +1

    This has nothing to do with the video, but a few days ago I installed Linux without a usb or dvd by creating partitions on two of my drives and i felt like a god when i finally did it

  • @stevenmulvay3292
    @stevenmulvay3292 Před 2 lety

    Hi Mental Outlaw, I love your channel. I would very much like to see a video on CPU pinning for use in a VM please. Also, what's the best way to contact you? I could do with advice on a desktop build I'm planning. I'm willing to pay for your time. A lot of my questions are follow-up questions to things I've learnt from your videos, but it would be easier to put my questions to you in one place rather than break them up into individual video comments.
    Many thanks. :)

  • @noomondai
    @noomondai Před 2 lety

    Thanks Kenny!

  • @Denyzyne
    @Denyzyne Před 11 měsíci

    174k views and 6 k likes, wowz, wutt... keep it up with your libre podcast and maybe some updates, but ya your on the farm :)

  • @mushenji
    @mushenji Před 2 lety +1

    cool stuff

  • @GabrielM01
    @GabrielM01 Před 2 lety +13

    Just a couple of things, this is not a single pass-through, in single gpus pass-through you detach your one and only gpu from the host and pass it to the guest, and another point is, sure windows reconized your gpu, but if you try any games in the state you ended up in this video it will not be accelerated by the card you passed through, but by RedHats virtual display adapter, if you want to use the 1080ti in all its glory you need to remove any other video devices from the hardware options on virtmanager and connect a monitor to your 1080ti to get its video out or setup a looking glass capture (but that requires a dummy plug on the 1080ti i think)

    • @HorrorUberAlles
      @HorrorUberAlles Před 2 lety

      So what you're saying is, VFIO works best if you have an SLI setup. One dedicated GPU for the host OS, and the other GPU can be used for the VMs.

    • @hezuikn
      @hezuikn Před 2 lety +1

      fr fr

    • @grialion
      @grialion Před 2 lety

      @@HorrorUberAlles when did he say that?

    • @warhawk_yt
      @warhawk_yt Před 2 lety +4

      @@HorrorUberAlles No. The preferred method is to have another GPU. It removes a lot of the headache. If you only have one gpu it requires a lot more work and will probably have more issues as well.

    • @HorrorUberAlles
      @HorrorUberAlles Před 2 lety +2

      @@warhawk_yt Yea that's what I meant with SLI, having at least more than 1 physical GPU installed on your rig. Maybe even different brands, an AMD GPU on the host OS and an Nvidia GPU for VFIO purposes.

  • @user-ug1eo4xb7z
    @user-ug1eo4xb7z Před 13 dny

    Bit late to the party, but great vid, Really well explained.

  • @MrUploader14
    @MrUploader14 Před měsícem

    For those confused about what outlaw is doing with grub hes just editing kernel parameters. If you need it for systemd-boot you can use the file path /etc/boot/loader then go to the main config file and add the same test hes typing in the options section.

  • @narciliocosta
    @narciliocosta Před rokem

    Nice video. Please, do a video showing how to make a shared folder between the host and the guest.

  • @migo5461
    @migo5461 Před 2 lety

    Just thank you a lot :)

  • @FlavorTownResident
    @FlavorTownResident Před 2 lety

    Mining on the VM while using your Linux main works pretty well with the passthrough

  • @Smokkedandslammed
    @Smokkedandslammed Před 2 lety

    I hope you know your thumbnails are the best hahaha

  • @RmFrZQ
    @RmFrZQ Před 2 lety +5

    [11:00] You can simply blacklist "nvidia" module, so it won't be loaded, if your second VGA is not nvidia-based, obviously.
    KVM/QEMU/libvirt don't need "nvidia" kernel module to function, you install nvidia drivers inside windows guest os instead.

    • @PuReXtremeGaming
      @PuReXtremeGaming Před rokem

      hey man sorry to bother you so late, how do i blacklist the nvidia drivers on bootup? currently im using them and im on arch but im wanting to make it so my linux is using my iGPU esclusively now so i can use looking glass and nvidia on windows. t hanks

  • @CesarPetrescu
    @CesarPetrescu Před 2 lety

    thanks worked for a single cpu passtrough

  • @presi3005
    @presi3005 Před 2 lety +1

    This, compared to getting single gpu pass trough without any 2nd gpu to work is so much easier

  • @arturssilis381
    @arturssilis381 Před 2 lety

    Hollyyyy shittt i needed this

  • @FinderX
    @FinderX Před 2 lety

    Thanks for the video, now I know how to do it :¬)
    Surprise you don't use LESS , lspci -k | less , and then slash nvidia or /NVIDIA , then press 'n' until find the lines you looking for.

  • @paxdriver
    @paxdriver Před 2 lety

    "Sudo reboot"?! What're you doing? Lol
    "shutdown -r now" man, never use sudo unless absolutely necessary 😜
    Glad you made this one, virtualization is gonna be the next big thing with so many cores and ram being standard these days.

  • @R.K_Chalkboard
    @R.K_Chalkboard Před 2 lety +3

    For people on phones: Please use zoom to fill, and set the quality to 1080p, or at least 720p.

  • @theextramundane4803
    @theextramundane4803 Před 2 lety +1

    Very helpful video Mr. Outlaw! I was wondering if you maybe would be able to compare PCI Passthrough vs Wine/Proton. I think there'd be an interesting comparison to make there.

    • @zenova9926
      @zenova9926 Před rokem

      PCI passthrough ofcourse way faster, but in some cases proton can perform so well it surpassed native windows, and for wine kinda meh for most cases

  • @SuperMarioInRealLife
    @SuperMarioInRealLife Před 2 lety

    Can you make/show me a video explaining the experience of setting up Linux and which OS to buy/get

  • @origamitom
    @origamitom Před rokem +1

    Nice video Kenny. Do you know how to set the vfio PCI ID if you've got two identical video cards? Can you identify the cards by PCI Bus ID instead? 01:00.0 and 01:00.1 in your example.

  • @toxicfem69
    @toxicfem69 Před 2 lety

    cool ive been doing this for a couple years now its pretty great AND im not a black nazi, so things are going really well for me

  • @midimusicforever
    @midimusicforever Před 2 lety +1

    Cool!

  • @MightyElemental
    @MightyElemental Před 2 lety

    oh geez, this is more complex than I expected ngl.

  • @gassarro
    @gassarro Před 2 lety

    wanted to try that for a long time now. thanks for the guide!
    btw, it seems like if there is no vt/iommu option in bios then this wont go?

  • @aidenbuterbaugh1478
    @aidenbuterbaugh1478 Před 2 lety +13

    THANK you for this, this helped a lot. could you please make a video about how to hide the fact that youre using a vm? so that you're able to play online games like cs and valorant without getting banned. that would be awesome, great content regardless!

    • @slubus
      @slubus Před 2 lety +3

      czcams.com/video/L1JCCdo1bG4/video.html I introduce you to Mutahar. This guy knows his VMs and makes guides on how to bypass Anti-Cheats on VMs. Really worth checking this video out.

    • @PenguinCrayon269
      @PenguinCrayon269 Před 2 lety +5

      cs is on linux

    • @grialion
      @grialion Před 2 lety +3

      sadly it's a difficult thing to do, vm detection on anticheats are always improving. one way to hide that fact is adding kvm state hidden to your XML config and also enable HyperV completely in Windows. it worked for me with r6, for ~2 months after a battleye patch it doesn't work now :(. good luck with that and if you manage to do that sharing your solution would be appreciated! also check out muta's (someordinarygamers) channel, he used to talk about gaming vms, bypassing vm blocks.

    • @Nirim000
      @Nirim000 Před 2 lety

      It's not needed that much anymore but it can try to find the settings for full obfuscation.

    • @aidenbuterbaugh1478
      @aidenbuterbaugh1478 Před 2 lety +1

      @@slubus I am subbed to him actually, i was just unaware that this video was about that! thank you!

  • @marcq1588
    @marcq1588 Před rokem +1

    Great video. Maybe good to tell at the start that the sytem must have 2 graphics card... :)
    Now I have 2 identical vendor/model GPUs, Both show the same IDs... How can I then isolate one from the other? Can I use the first nunbers on the line? In your situation it would be "01:00.0" for the 1080 Ti and 01:00.1 for its audio device.
    How?

  • @IvanStepaniuk
    @IvanStepaniuk Před 2 lety

    Great! My laptop has a GTX 1050 that I permanently DISABLE not to fiddle with Bumblebee et al. I normally use VBox to run windows apps (CAD/CAM stuff), perhaps I could give this a try.

  • @More_Row
    @More_Row Před 2 lety

    Thanks kenny

  • @adrianorocha-dev
    @adrianorocha-dev Před 2 lety +36

    GPU passthrough is something that interests me a lot. Unfortunately, I set up the passthrough, but the multiplayer games that I wanted to play would simply not let me do it cause their anti-cheat doesn't allow VMs.

    • @Calajese
      @Calajese Před 2 lety +11

      I used to have a windows VM just for this one game, but the anti-cheat started to block VM's so I just started to patch out the anti-cheat. It works even better on wine than on a VM so I guess I'll keep doing it this way.

    • @myself50094
      @myself50094 Před 2 lety +1

      There is a way to bypass those by adding a single flag but I forgot what it was.

    • @kxuydhj
      @kxuydhj Před 2 lety +6

      @@myself50094 kvm flag , cpu flag . when running kvm at least.

    • @hello_iam_potato
      @hello_iam_potato Před rokem

      @@kxuydhj excuse me, does this work on pubg? cos their anti-cheat is hardbanning linux :( I would really dive into gpu passthrough if this was possible.

  • @Ozibits
    @Ozibits Před 9 měsíci

    great video thanks found it very helpfull. can you please confirm that you can get HDMI output threw the GPU HDMI direct to monitor???...

  • @jesse7631
    @jesse7631 Před měsícem +1

    I have followed every step, and I still see the nouveau drivers for my nvidia card loaded and my hda_intel sound modules loaded for the sound card part of it. I followed your steps exactly..

  • @ozzieggg
    @ozzieggg Před 2 lety +4

    Anyone attempting this, do make sure you have a fuck-ton of free time to solve the random bugs you will encounter, there are an absurd amount of gotchas you can hit, and then there is PCI-E communication standards hardware manufacturers failed to implement, and, if you run into that you probably won't be able to get anything running reliably without replacing hardware. This entire thing will likely not be a single weekend project.

  • @xiwi
    @xiwi Před rokem +5

    *Don't forget to add iommu=pt to your boot options, not having this option will greatly reduce performance!*

  • @obfuscateidentity2329
    @obfuscateidentity2329 Před 2 lety

    Gonna try this again. Never got my ATI 5450 to pass through maybe you have the secret now

  • @user-sb5vt8iy5q
    @user-sb5vt8iy5q Před 2 lety +1

    if you get error 43 when installing nvidia drivers go into your vm options, go to the "Overview" tab and click on XML, scroll down to and somewhere in there add the line

  • @seronymus
    @seronymus Před 2 lety +1

    Does this work with stuff like older Japanese programs like Visual Novels and Painttool SAI?

  • @froggy9803
    @froggy9803 Před 2 lety

    Another Video Request/Suggestion. Installing Whonix on KVM/QUEMU. Since its a fair bit more complicated compared to VirtualBox.

  • @Misuune
    @Misuune Před 2 lety +7

    Another day another based and GNU-pilled Mental Outlaw tutorial.

  • @dannytopete9703
    @dannytopete9703 Před 2 lety

    This means I can finally stop commenting about the progress on the GPU Passthrough video. I love using Windows in a container for all my gaming needs

  • @LampJustin
    @LampJustin Před 2 lety +1

    Awesome! You missed one thing tho. The Audio Controller must be a subdevice of the GPU. If you don't the two devices will show up to the os as being 2 different PCI devices on two different buses. Because of that my AMD GPU driver freaked out. Unfortunately you'll need to edit the XML for that but that's not hard with Virt-Manager.