[demo] VFIO in 2024 // windows + linux

Поділитися
Вставка
  • Опубліковано 16 тра 2024
  • you can find my other endeavors at:
    blandmanstudios.com
    / discord
    / blandmanstudios
    blandmanstudios.itch.io
    / blandmanstudios
    / blandmanstudios
    blandmanstudios.square.site/
    ko-fi.com/blandmanstudios
  • Наука та технологія

КОМЕНТАРІ • 77

  • @nzmnisam
    @nzmnisam 18 днів тому +1

    Just what I was looking for, amazing

  • @suryanshpatel604
    @suryanshpatel604 2 місяці тому +17

    Your Single GPU Passthrough video was so awesome and still works flawlessly. I recently setup my own single passthrough setup! Your content is really really good!

    • @alexal4
      @alexal4 6 днів тому +1

      The same, took me some time, but after Steve's video I was able to get it done.

  • @TechDave
    @TechDave 2 місяці тому +9

    epic af, very impressive!
    also: "is my audio working?" *without missing a beat* "no" hahaha

    • @BlandManStudios
      @BlandManStudios  2 місяці тому +2

      Thanks! I also love that the sarcastic answer was faster than all the people who said "yes" 😂

  • @Ervine4
    @Ervine4 2 місяці тому +8

    I do love that we all have the same discord friends

    • @BlandManStudios
      @BlandManStudios  2 місяці тому +1

      The unprompted reactions were priceless 😂

  • @AR-ey1ur
    @AR-ey1ur 14 днів тому +2

    At first, I was very excited to try to replicate your setup on my new PC. I hoped to have various Windows VMs (with Win98, WinXP, Win7, etc.) to have better compatibility with old games.
    Then my dream died when I realized that this won't work because there are no GPU drivers for new GPUs that work with old Windows versions...
    So, as far as I understand, this setup is only useful for security - important stuff on Linux, gaming on Windows VM.

  • @jtsiomb
    @jtsiomb 2 місяці тому +3

    That's a beautiful setup. I'm definitely putting this in my TODO list...

    • @BlandManStudios
      @BlandManStudios  2 місяці тому

      Thanks! Best of luck to you when you get a chance to try it out!

  • @jdratlif
    @jdratlif 2 місяці тому +1

    This is amazing. I've wanted something like this for years. Not sure if it'll be this weekend, but there's definitely a weekend in my future dedicated to this.

  • @drsparklagasm
    @drsparklagasm 2 місяці тому +1

    Holy COW! Living the dream! Thank you so much for this demo. I did this following your earlier videos (just manual passthrough and restarting my window manager) and while I loved it, it was a bit unstable and I didn't care to keep it. Still dual booting, but I may give this another shot soon! Thanks for all you do Steve!

  • @alextuby
    @alextuby 2 місяці тому +3

    Hi Steeve. Thanks for the video. Your previous tutorials was what brought me to VFIO. Still, one comment. You actually don't HAVE to have something in your discrete GPU port. You can install an IddDisplayDriver which will emulate a real monitor on your Windows machine and Looking Glass can grab the video from it. I use the one from ge9 but there are other implementations

    • @BlandManStudios
      @BlandManStudios  2 місяці тому

      Great idea! Thanks for the specifics! I'll check that out if I get time, could be good content for another video and I'll be nice to carry one less thing with my laptop 😂

  • @phamaral249
    @phamaral249 2 місяці тому +1

    This is perfect!. I really want to try this someday but with two external GPUs so I have the extra ports for a multi monitor setup on linux. Till then I'll stick to old dual booting

  • @discovery_af
    @discovery_af 2 місяці тому +1

    Awesome setup. A few months back, I created a Proxmox server and made a Windows VM while passing through my 7900 XT. I stream the content over my network to my Mini PC, which runs Arch. To stream the content, I use Moonlight/Sunshine. Vfio is amazing!

    • @kevinpthorne
      @kevinpthorne 2 місяці тому

      How's the lag on that setup? I did a setup between my gaming laptop and a Steam Deck and had a pretty smooth experience with Sniper Elite 4, but my brother in the replay noted that my frames, while smooth, were definitely delayed which meant I was missing fairly easy shots. Curious if you've noticed the same thing

    • @discovery_af
      @discovery_af 2 місяці тому

      @kevinpthorne For me it has been smooth sailing. I dont notice any lag or latency issues. It's all dependent on your connection, software, and hardware used. Streaming over a wired LAN connection is the most ideal. For software, I used Moonlight as the client and Sunshine as the server program. This has been the best option for me when streaming over the network as it allows me to mess with the encoding and bitrate options. Having a newer GPU is also beneficial as they have better and improved encoders.

  • @tylerbarr2740
    @tylerbarr2740 28 днів тому +2

    I've been struggling with this on and off for like 5 years now. Would you be willing to post an updated tutorial based on the newer set up ?

  • @pohuy2180
    @pohuy2180 2 місяці тому +2

    You can attach/detach GPU drivers automatically on VM's startup/shutdown via libvirt hooks, just make sure that nothing is occupying your GPU when you start the VM.

    • @pohuy2180
      @pohuy2180 2 місяці тому

      like this files.catbox.moe/vekymw.png

    • @BlandManStudios
      @BlandManStudios  2 місяці тому +1

      Good idea, I guess the reason I haven't done that is because if he scripts do fail I don't want to end up with a semi-launched VM
      This makes it a little easier to undo it or try again if things go wrong
      Like you said, "just make sure"

  • @nokts3823
    @nokts3823 Місяць тому +1

    This is a really powerful setup and for the most part I got it working. I have however this issue where the system will decide to use the iGPU when booting (obviously, since vfio modules are loaded) and will not switch to the dGPU even when I enable it. The graphic environment will still make use of the iGPU and any new applicaitons I launch will do so as well. I was able to run apps with the dGPU even so by setting the appropriate environment variables, but for some reason that doesn't seem to work for steam, when I set them as launch options.
    I'm also using an ASUS ROG laptop with and AMD CPU with integrated graphics and Nvidia GPU, and Fedora 40 KDE on Wayland, just like you used in your guide. I tried a bunch of things but couldn't get this to work exactly like it does for you. It's not a dealbreaker since I don't plan on doing much gaming on linux, but it's been irking me a lot. If you or anyone has any idea what's up, please let me know!
    Anyway, thanks a lot for your guides. They've been really really helpful :)

    • @BlandManStudios
      @BlandManStudios  Місяць тому

      Glad to hear it helpful and nice job getting all those pieces to work!
      Did you try the environment variables just like they are in section 2.2.2 in this article
      wiki.archlinux.org/title/PRIME
      Other than that, I'm not sure if I have other ideas for you (and now I'm nervous something will break when I upgrade to Fedora 40 😂)

  • @Ethorbit
    @Ethorbit 2 місяці тому

    Been rocking a dual dedicated gpu setup with Windows 11 + Linux NixOS under Proxmox, monitors side by side and switching input between them using evdev and it has been great and seamless. I experimented heavily with Hyper-V's vGPU technology to see if a single GPU could do desktop graphics on both Windows and Linux but we are not there yet (soon though!!)

  • @lI_Simo_Hayha_Il
    @lI_Simo_Hayha_Il 2 місяці тому +1

    Great work Steeve! I have a pretty similar setup, however I prefer to switch inputs and not using Looking Glass. My monitor (Alienware) supports hotkeys for switching inputs, so I am doing pretty much the same.
    Thank you for sharing, and hopefully, this will lead more users to use Linux for desktop.

    • @BlandManStudios
      @BlandManStudios  2 місяці тому +1

      Pretty cool! Physical switch makes a lot of sense. A well designed button in real life is definitely faster than interacting with software
      Glad you like it, I agree, one of those days we'll look up and realize it's "the year of the Linux desktop" 😂
      Always cool to hear from other early adopters

  • @EthanLR
    @EthanLR 2 місяці тому +1

    Freaking Genius!

    • @BlandManStudios
      @BlandManStudios  2 місяці тому

      Thanks! This stuff is too cool not to share

  • @Tarbard
    @Tarbard 2 місяці тому +1

    Very interesting.

  • @RichardThaddeus
    @RichardThaddeus 2 місяці тому +1

    what
    is
    this
    dark art!!

    • @BlandManStudios
      @BlandManStudios  2 місяці тому

      Big software companies don't control us. We can make our machines as complicated as we like...

  • @FoxyDrew
    @FoxyDrew 2 місяці тому

    I don't know if this is your everyday setup, but I also use gdm on KDE instead of sddm. It's so much cleaner lol

  • @blackstar_1069
    @blackstar_1069 2 місяці тому +2

    The giveaway will happen... Eventually 😅

  • @ruxcooking
    @ruxcooking 2 місяці тому +1

    Love your videos. Helped me out getting passthrough working on my old m6600. Do you by chance have a steam deck and do you have any pointers to get it working on it?

  • @Marmalard
    @Marmalard Місяць тому

    Keep in mind some games using anti cheat really dislike when you use a VM and will try to block you from doing so. Battleeye and EAC are the ones I’ve seen the most come up with patches that try and block users playing on a VPN but there are ways of masking your VPN.

  • @0goblen
    @0goblen 2 місяці тому +1

    This is exactly what I was looking for. Please make a tutorial !

    • @BlandManStudios
      @BlandManStudios  2 місяці тому +1

      Glad to hear it!
      This tutorial might have everything you need
      ua-cam.com/video/m8xj2Py8KPc/v-deo.html
      This series is also more beginner friendly if you'd like to learn about the concepts in addition to the step-by-step ua-cam.com/play/PLG7vUqRxMOG6gsPXohhFht3UJbcCxYgcL.html

  • @alexandrehuot3326
    @alexandrehuot3326 2 місяці тому

    I think we need a updated version of single GPU passthrough. I had some small issues on gnome... And didn't work on Kde plasma 6. (All fedora 40)
    Also just being sure that the informations are still relevant would be nice!

  • @linux_doggo
    @linux_doggo Місяць тому +2

    is there a chance you could do a guide on how to set this up? i'd love to try it

    • @Marmalard
      @Marmalard Місяць тому +1

      He has all this stuff on his site.

  • @Marmalard
    @Marmalard Місяць тому

    You don’t have to run a script each time you want to bind and unbind the GPU. At least with AMDs cards you’d do dri_prime=‘pci address’ when launching a command and it’ll automatically render on that specific GPU and then unbind to default when not gaming any more. I’m assuming Nvidia’s prime render offloading works the same.

  • @useraccount4201
    @useraccount4201 2 місяці тому +2

    Can you please tell me if you have set up nvidia drm modeset (nvidia_drm.modeset=1) at boot?
    I have noticed a major issue when not setting nvidia drm modeset. All the games runs at like half the fps they get with modeset.
    Problem is, that I am not able to detach the GPU when nvidia modeset is enabled. Command just hangs (and then one thread is always at 100% usage). I sometimes get this issue even if modeset is not enabled. Command hangs trying to detach gpu (reattach always work).
    Also, native Wayland applications do not work (when run on nvidia) if modeset is not enabled, only xwayland apps work.
    Also, can you tell me if you are using nvidia open kernel module (nvidia-open) or proprietary (nvidia) package?

  • @xshagagy
    @xshagagy 17 днів тому

    Dear Steve, this is really amazing, i followed what you did and some other things from the internet and now i got everything working, could you please provide the aliases you use in a pastebin or a text file and i will change things according to my specs, thank you so much

  • @danio3d8
    @danio3d8 11 днів тому +1

    alright, i have some questions right away... umm.. the hdmi cable is plugged into the motherboard i suppose? then what about multimonitor setups, because thats the deal breaker for me.. will it work?

    • @BlandManStudios
      @BlandManStudios  11 днів тому +1

      @@danio3d8 I have 2 ports on my motherboard. One HDMI one Display Port. So I can do two monitors like this
      Then if I want to do a third, I can plug it into the GPU and VM display the VM only

  • @vikingcat794
    @vikingcat794 2 місяці тому +1

    Are you using the nouveau drivers when attached to the host os, or proprietary nvidia drivers for your discrete gpu?

    • @BlandManStudios
      @BlandManStudios  2 місяці тому

      The latter
      I'm using the proprietary Nvidia driver on the host (while the discrete GPU is connected) and the Intel drivers (when using the iGPU)

  • @joesandwhich3909
    @joesandwhich3909 2 місяці тому +1

    Would you be able to do a tutorial on the project WinApps?

  • @angusberry3254
    @angusberry3254 Місяць тому +1

    This looks really amazing and i'm going to try setting it up on my PC (Running Manjaro with KDE Desktop currently). I just have 1 potential issue though regarding the whole cables situation. My iGPU has both HDMI and Displayport, and my GPU has 3DP and 1 HDMI, however i am running 3 screens, with an aditional TV that i also use from time to time.
    TV aside, is there any way to do this reliably while running a 3 screen setup if i don't have the ports available to use from my iGPU...?

    • @angusberry3254
      @angusberry3254 Місяць тому

      Sorry if this doesn't make sense, just lmk :P

    • @BlandManStudios
      @BlandManStudios  Місяць тому +1

      @@angusberry3254 that makes sense to me
      Would you want to have one or more monitors dedicated to the VM all the time?
      Also, you could buy an inexpensive dGPU to run on the host that has more ports than your iGPU

    • @angusberry3254
      @angusberry3254 Місяць тому

      @@BlandManStudios I'm planning to move fully away from Windows, or at least as much as i can, so it would just be 1 monitor. I already have another GPU lying around somewhere actually, although it's a Nvidia one and my main is AMD at the moment... any idea if there would be conflicts with the drivers?

    • @BlandManStudios
      @BlandManStudios  Місяць тому

      @@angusberry3254 I assume that would be possible, but I haven't tried it myself
      Passthrough should be fine, but I don't know about how it would work for gaming on the host
      Maybe you can Google around and see if anyone else has done PRIME render offloading with both Nvidia and AMD
      Or maybe your best bet is to just try it out and let us know how it goes

    • @angusberry3254
      @angusberry3254 Місяць тому +1

      @@BlandManStudios I'm going to see how i get on using just the iGPU and dGPU i have installed for now i think. I have an idea that i can use the Thunderbolt / USB-C for 1 display and the other 2 with the motherboard connectors so i might just be able to fudge it that way to be fair :) thanks for the quick responses though, really helps!

  • @1Abdullah
    @1Abdullah 2 місяці тому

    I only need windows for some mobile tools that needs some drivers to be installed and to get access to the USB
    I want something like usb slot 1 to always passthrough to the VM
    is that possible ?

  • @kebugcheck
    @kebugcheck 2 місяці тому

    H blandman. great work. I am still on Intel haswell 4790k with z97 motherboard. I have GTX 1080. Will I still be able to do vfio? I think my hardware supports it (vtx and vtd).

  • @johanes_steven
    @johanes_steven 2 місяці тому +1

    would this work on older igpu? like the igpu from 7th gen intel

    • @BlandManStudios
      @BlandManStudios  2 місяці тому

      Yes, but...
      Check and make sure your CPU supports VT-d
      It is pretty common now-a-days, but a few years ago it was only available with the top-end CPUs. The Intel webpage for your GPU should tell you

  • @Being_Joe
    @Being_Joe 2 місяці тому

    Would this work with a MacOS VM? I have some mac only apps and a setup like this would be great for me.

    • @toseltreps1101
      @toseltreps1101 2 місяці тому

      should work with a dGPU supported by macOS, like the Radeon RX 6000 series.

  • @ryan6102
    @ryan6102 2 місяці тому +1

    How would this work with dual monitors? Is your previous tutorial still applicable to what you do here? Thanks!
    Edit: How does this work with games with an anti-cheat e.g. Valorant or Fortnite? Is this really viable?

    • @BlandManStudios
      @BlandManStudios  2 місяці тому

      It does work with multiple monitors. For me I only use two at a time tho because I only have two ports on motherboard. You'd have to get creative to use the ports on the GPU too
      The previous tutorials as still applicable, this just adds some extra stuff on top for usability
      I have had luck with some games that use anti-cheat and I listed some of them here: ua-cam.com/users/shortsqWL8_vT6ZjY
      But I haven't played fortnight
      And I've heard Valorant is almost impossible to work in a VM. They might be the most overzealous about prohibiting VM players. One video I found was called "[nevermind this doesn't work] How to play valorant in a VM" 😂

  • @chemaalonso7931
    @chemaalonso7931 Місяць тому +1

    How can I have the same setup??

    • @BlandManStudios
      @BlandManStudios  Місяць тому

      By following either of these tutorials
      Laptops:
      ua-cam.com/video/m8xj2Py8KPc/v-deo.html
      Beginner VFIO Tutorial: ua-cam.com/play/PLG7vUqRxMOG6gsPXohhFht3UJbcCxYgcL.html

  • @ivv3393
    @ivv3393 2 місяці тому +1

    Hi Guys, I tried his guide on laptop and it end up badly. I am using legion 2024 model. Does anybody know a way to achieve GPU-PT in legion laptops. I am using Nobara 39

    • @jeremy4491
      @jeremy4491 Місяць тому

      Have you tried using fedora instead?
      Im still using nobara 39 as well I attempted to install gpu passthrough unsuccessfuly.. But I might give a try with fedora 40 kde on my Desktop...

    • @ivv3393
      @ivv3393 Місяць тому

      @@jeremy4491 No, I didn't. I just gave up GPU-PT.

  • @haven216
    @haven216 Місяць тому

    How is the input latency in the VFIO? I play a game that is highly reliant on very responsive inputs, and while it runs with Proton, it has a very noticeable input lag penalty.

    • @BlandManStudios
      @BlandManStudios  Місяць тому +1

      Latency is not bad (when configured correctly)
      Checkout my full testing video: ua-cam.com/video/Ol9O3Jow740/v-deo.html

    • @haven216
      @haven216 Місяць тому

      @@BlandManStudios Thank you! I also found out that you can just pass the USB controller into the VFIO as well

  • @lomsjoj469
    @lomsjoj469 2 місяці тому +1

    But what about tests?
    With actual FPS (AVG/1%Low) differences.
    “Reasonable frame rate” seriously?

    • @BlandManStudios
      @BlandManStudios  2 місяці тому +1

      I like the way you think!
      You might like these videos which take a look at FPS, latency, and disk speeds
      ua-cam.com/play/PLG7vUqRxMOG6svx97KUW_Zy-Wyeu_yIqS.html

  • @jonnyspeed8974
    @jonnyspeed8974 2 місяці тому +1

    yawn. could you be more dull.

    • @BlandManStudios
      @BlandManStudios  2 місяці тому +6

      brb changing the name to "dull man studios"