I used your tutorial 2 years ago to run VFIO on my desktop, which I have been loving. Now I just bought a laptop and google VFIO laptop and you are the first result. You've really been there for me, and I appreciate the heck out of you.
Woah, thanks! That means a lot If I step back and realize that something I made has impacted the daily life of a real person for 2 whole years...that's pretty cool Thanks for saying so and good luck with your laptop!
Unfortunately I figured it out by guess and check. I bought a laptop with a good return policy, tried it out, and was ready to return it Alternatively, the slightly better answer is to look at blogs and reddit for success stories and buy what they bought
Thank you for your continued efforts on helping people with VFIO and Linux. Maybe you went a little overboard with 1M views lol but I do hope it does get viral. It was an awesome video. Best of luck with your endeavors!
@@BlandManStudios can you make the command used to attach and detach GPU switch to windows VFIO a GUI. Thanks I'm very lazy and busy to be typing commands iv got bills.
@@BlandManStudios research on a cheaper chuwi Chinese laptop that can do this and sell a preinstalled version. I ain't got Time 😭 for tinkering. ''bonefied window user''
@@univera1111 bruh, it's a 13-14 characters long alias… you can even get autocompletion in the terminal with zsh or fish to type it faster. You could even bind it to a key with sxhkd or something!
After fully watching this video I can tell the insane amount of work this took to research and configure, this is also one of the most comprehensive videos on gaming virtualization ever. Thanks a lot for making this video!
I'm a newbie linux enthusiast, getting a laptop and i don't want to have to boot into windows anymore, this is amazing, you saved my life, i love your work!!!
best channel for vfio! i will say, usually i agree with people who say don't follow video guides but your videos really make vfio more approachable and it is much easier to get started images speak louder that words
Thanks! Another part of the reason I like video for vfio is because I didn't believe this was possible until I saw it for myself "Seeing is believing" I guess 🤷♂️
Just wanted to say thanks for your time here, I've learned a lot about virtualization from this channel. The few remaining titles that demand to run in Windows are annoying but it's good to see Linux gaming moving forward regardless. This past winter sale it was a joy to discover some great titles that play on my deck and desktop alike, many of which are also already native to Linux.🐧
Your channel has been extremely helpful in educating me about the capabilities, and limitations, of VM gaming on Linux. I tried Proton a few months ago and was severely disappointed by how many of my games failed to work. The community loves to spout that it's perfect outside of Anticheat issues, but that's just factually untrue, and so many games still have unplayable issues or performance drops. First I heard of VM gaming, it sounded like the holy grail: The perfect way to solve all my problems. But your tutorials and demo videos also clearly showed the downsides and workarounds you need to make, no clickbait "THIS IS THE PERFECT WAY TO PLAY" similar to how people treat Proton. Hopefully when I upgrade my rig sometime in future, I can start experimenting with passthrough myself and finally be able to drop windows, only using it ever for games!
Man, keep up the good work, you are a savior. I thought the process was simple at first, but then I started looking into it, and there wasn't any place that explains this thoroughly for a newbie. Finding this video is like stumbling across a golden ingot in a river.
I think you are shooting too high with the video count.100k sounds reasonable. That video is going to stay with you for a long time until this hits 1m.
Man this video is absolutely perfect, i heard Mutahar mention Looking Glass in passing a couple of times but i somehow never made the connection hat could be useful to me and i was here struggling with Moonlight & Sunshine without success. I will recommend this video to anyone who will listen and everyone who doesn't even, this should be mainstream indeed.
@@takablepigon9686 glad you liked the video! I think this stuff should be mainstream too, that's why I've been working so hard to make it approachable for more people! Enjoy your new setup!
You definitely created the video I was looking for!! I was on the verge of switching to Linux, but I always seemed to run into a few issues with VMs, but your video really helped me figure out and iron out some issues.
Amazing work, nothing to add. You even respond to questions sent by emails like bro ! Love that, just continue like this, it sounds to me like true passion for computer science.
Absolutely great vid! Have been trying to get Linux gaming to work for a while now, never thought to go this route w the VM. You have earned yourself a new subscriber my guy.
Very cool stuff man. I'm still in gtx 950 era, so many stuff you talk about is a magic to me. But gaming on VM is super cool. Thanks to you're guides I was tinkering with vfio on my pc. To no success but this is old nvidia drivers stuff. Some day I will make it work. Anyway have a nice day and keep spreading you're knowledge.
Ayyy, glad to hear it, thanks. It's good to know that this is helpful/interesting/educational even if you're not able to implement it with your current hardware Thanks and happy GPU-ing!
ay if you are in GTX950 era you could also be using an old CPU and mobo and they could be hindering the VFIO usage. Check on cheap AM4 B450 mobos and CPU's which could end up being a cheap upgrade with a future for more power with another CPU upgrade later on!
Is it possible to have something like this with a desktop pc? I'm guessing you'd just need a monitor with two inputs, one for the IGPU and one for the GPU. Curious to see how any extra monitors connected to the GPU would behave. This might be a good video idea! Would love to see something like this in pratice.
Thank you. My entire software setup is based on your videos (not just this one). It's black magic, and it's amazing. This is how I went from being a Windows user to a Linux user. And just for that, thanks again. The only problem I have, but it may be out of your use, is having a real local IP address for the guest machine (still using Virtual Machine Manager), using Wi-Fi. I'm not sure why, but even black magic doesn't seem to be able to do it.
Even though this is too much of an effort for me, I appreciate the effort that YOU put into this video. Broke my system once with a VFIO setup so I do not want to try it again.
One quick note, after executing nvidia-enable and you want to disable nvidia drivers, use gnome-terminal to execute nvidia-disable, this is because Konsole uses the GPU for some reason. And, sometimes, it will report nvidia is in use, just a quick ‘lsof /dev/nvidia*’ will show you what application is using the device. Simply kill the application with the PID showed, you can run the command nvidia-disable again. : )
I already use kvm in my main, pc. This helped a lot! I now know where to look for a new laptop! (The current one I have is too slow, meaning I need dual-boot).
maybe I missed something but rather than a virtual disk for the Windows VM I'd try installing a second NVME (if the laptop has space) and using it for dual booting Windows/launching that Windows install as a VM Edit: awesome video btw, I didn't even consider the MUX switch
Really helpful and good, but a bit fast and If I didn't watch the previous gaming VM videos, it would be missing a lot detail. Sadly I have a weak processor + motherboars so I wont check the things that you mentions in this video too. But overall it's a really damn good video because No One did a video like this when I searched it.
Yo just wanted to come back and say thanks for trying to help me when I was having trouble, I'm now a full fledged fedora user, both my laptop and desktop have it and I'm happy with it. My only thing is vr, I unfortunately at least for now I need to have a tiny windows install just for my few vr games especially since I have a wmr headset. Maybe one day I'll grab an index or the next gen of that so I can cut my last ties with windows
Wow dude, thanks so much for all the effort and succesful attempts you put in! Your work has helped me last days to also create this, wich I was never able to do! Also what do you think about about the legion 5 serie laptops for this?
Amazing video! I love how this guide briefly touches everything. When the video game's anti-cheat doesn't allow VM's, and you then boot directly into windows, is that the same OS instance as the windows VM? Or two separate installs? I'm guessing that if this is qcow2 it's different, but if you partitioned the drive or used a separate one, then it's possible to have both be the same OS instance maybe?
You're correct, this is two different windows installs The VM is qcow and win10 The host is drive partitions and win11 It is possible to have them use the same partition. The only way I've been able to do it is by doing it in the following order Step1. Assign a partition to a VM Step 2. Install Windows to the partition with it running as a VM Step 3. Reboot and try to get the windows partition to boot (be recognized by a bootloader like grub)
Thank you very much for your work. It created a deep excitement within me. 😊 Is there anything special we need to do for Debian-based Linux? I didn't understand Phase 3 very well.
This is an amazing, very clear and thorough tutorial! I'm thinking about switching to Linux completely, but I'm curious if this would let me play games with battleeye like rainbow 6, and if it works well with the newest CoD. I know r6 has a hard stance against using it with VMs. It would be great if battleeye had linux support though, but maybe one day if Steam has their way. For now I don't want to risk getting banned. I subscribed and hope to see more content like this in the future. If anyone reading this was brave enough to try or knows if it works, please let me know. Thank you for posting this!!!
Is the performance good enough that I can just do all the gaming under the windows VM? Would be nice to have games seperate so that I can run dubious game mods without concern.
This might expose my lack of knowledge on this topic, but I've wondered for years now why someone hasn't made a Linux distribution purely designed for this task. Like imagine some extremely user friendly GUI that starts up after you install the OS and reboot that would automatically setup everything, including downloading windows 10 legitimately from their server and doing all the this work automatically.
The unfortunate truth is that maintaining a distribution is extremely difficult (or, more accurately, labor intensive) whereas this task is distribution agnostic (this guide works just as well on an Arch system and presumably would on a Debian/Ubuntu based system as well) which makes the amount of work not really worth it for the added value for the user. Full automation would also be non trivial to correctly detect all possible situations that would make the setup subtly different whereas the user could adjust it as they go if they do it manually, at which point the automation potential from a dedicated distro is wasted.
The benefit of keeping the original install is in case you want to use it to play any games that fail to work in a VM (like Valorant) I don't have any of those tho, so I usually remove the windows partition to have more space for linux
@@BlandManStudios In a general sense, is it true that if you replace a laptop with linux, you lose things like gestures and power management since the company usually doesn't provide software for linux?
You made this at the perfect time for me, i was just thinking about switching over fully on my laptop but was worried about VR support because i have a windows only wmr headset (reverb G2) I'm hoping using the virtualized version of windows i can use just to play VR games
Hey man, I loved the way this video was paced and the amount of information is just fantastic. I just wanted to know whether there's a way to perform GPU passthrough on a laptop that doesn't have a MUX switch or is it necessary?
Incredible! I was thinking about having KVM with my next laptop and this was really helpful. I just got a question. Let's say I have two nvme n1 is fedora host and n2 is windows 10/11 bare metal. Is it posible to use n2 as guest in qemu or should I better have a different Windows to use in it? Thanks
Thanks for all videos you made about VMs with GPU passthrough. I managed to set up my ASUS Dash F15 in arch linux. I'm currently trying to use it without a hdmi dummy with windows-side virtual monitor drivers, yet no success.
Dude, where have you been all this time? :D With this hdmi plug I will finally be able to realize a normal virtual machine. Finally Intel will be on the host, and Nvidia with its bugs will move to Windows. No multilib, no wine, no 100500 monitors, just an aesthetically pleasing and fast system.
Hey, i love watching your videos, you are amazing, i followed this tutorial from Arch Gnome when i use nvidia-disable, i get message saying its completed and vfio drivers removed, however my gpu still doesnt show on fastfetch, cant use it on linux and when i lspci -nnk, it doesnt show me driver in use. when i nvidia-enable i get this error "rmmod: ERROR: Module nvidia_modeset is not currently loaded rmmod: ERROR: Module nvidia_uvm is not currently loaded rmmod: ERROR: Module nvidia is not currently loaded"
Great video! Just one question pops to my mind, why Fedora? I'm a linux noob so i don't know very well all the pros and cons, and I've been mostly using a mix of Kubuntu/Windows/Mint for some time, and I wanted to know the pros of fedora against typical noob friendly distros. Thanks for your time!
Hey! Glad you liked the video! To answer your question, I think Fedora is also in the noob friendly category of distributions, because it is also pretty easy to use As for differences, I think it is a little bit more geared at the enterprise/commercial user which leads to some design differences. For example it uses dnf for package management (instead of apt). I like the way dnf works because I've used it in software development projects in the past so I understand what it's doing under the hood. I also think, from my experience, I've had more success installing all kinds of software to fedora, when sometimes I've run into dependency issues on Ubuntu that I just couldn't solve You can't go wrong with Linux, but if you are a software developer or you want to see if it is more reliable or has newer updates, I'd recommend giving fedora a try
I'm having trouble getting past the "sudo virsh nodedev-reattach pci_0000_01_00_0" step it doesnt do anything after that besides ask for my pass which i put and nothing happens
@@BlandManStudios i also noticed in the previous step that i don't think it liked me using gedit to edit my files it gave me many warnings do you think if i do it again but with another editor it should work?
@@CoffeeCode3D hmmm I'm not sure what the problem is It's probably not gedit, cuz mine gives me a bunch of warnings too What "Kerner driver" is "in use" for the GPU when you type the following command? lspci -nnk
@@BlandManStudios 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104M [GeForce RTX 3070 Mobile / Max-Q] [10de:249d] (rev a1) Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:12fb] Kernel modules: nouveau, nvidia_drm, nvidia thats what i get regarding my gpu not sure whats wrong i installed my nvidia gpu drivers like normal
Great question! It has to do with the "nvidia-disable" commands that we use later in the video For some reason the way gnome works and the Nvidia driver works: as soon as gnome gets access to the GPU via the NVIDIA driver it won't let go and you can't unbind the driver The only way to disconnect the GPU is to kill gnome So gnome is "not optimal" because you've got to kill all your Linux programs before you start your VM
I've got almost the same tuf (3070ti in my case). Will try to do the same - I'm not really interested in gaming on VM, as all games I want to run work natively or with wine/proton. But just "I can play in VM" is already a reason to try it.
Sounds like the GPU isn't accelerating the external monitor Maybe the GPU MUX is in the wrong setting. I remember using a script like this to change the setting on the MUX switch once I removed Windows github.com/flukejones/asusctl It required a reboot after changing the setting, if I recall correctly
The guide should work the same, the only difference with Fedora is that Debian is a little outdated in its packages for stability purposes and uses a different Package Manager.
Also, sound is not on sync at all with looking glass. I'm also not sure how to passthrough Bluetooth so I can use my controller wirelessly. I'm a noob at this but I'm trying to test everything out so I can make the full jump to Linux without losing out on windows perks.
I think looking glass might have better ways to do audio since I filmed this video. Maybe try reading on their website. In this video I'm using spice for audio which is known to be laggy. I think the performance in looking glasses audio feature (which I disabled in this video) might be better Bluetooth might be possible if you have a USB Bluetooth device you can pass in But actually the latest version of looking glass I tried was able to pass in my mic and give me audio too. Probably worth testing that for yourself too
One thing I've noticed. I don't think firefox likes the changing of active GPU. Sometimes firefox stops rendering changes, until you minimize and restore the window. I recently turned off hardware acceleration in the browser, to determine if that's the cause. Otherwise it seems to run rather well, thanks for the tutorial, I've been wanting to set something like this up for a while, but thought it would have to be a desktop.
@@BlandManStudios can i use looking glass with just my laptop, no external monitor, no external computer and no dummy hdmi? Honestly your video might make me switch to linux completely
Thanks for these amazing videos! They were really helpful. Do you have any laptop recommendations for 2024? I'm looking for something that supports GPU passthrough, has USB-C with DP and is not very expensive (
Thanks for the tutorial. But couldn't you have just installed the KDE spin for Fedora. You could've saved a lot of time and also it would have worked better.
It's a very valid question I used fedora because it is generally easy to install, relatively stable, and relatively easy to use. It is also less custom than arch which means anyone following the tutorial will have the same experience But there is no reason you can't do this on arch or Manjaro. You'd just have to tweak the steps that are different for you distro For example: different commands to install your packages. And you might have a different setup for bootloader (grub) or initramfs (dracut)
Impressive tutorial as always, thank you so much for the guide.But do you happen to run into an issue where “nvidia-disable” script unable to detach and hang after the gpu is enabled for a while? I have been looking into it and I have not found a solution.
Thanks! Hmmm... Do you think a program is running that is using the GPU and preventing the GPU from disconnecting? See if you can find the right Linux command to find out which processes are using the GPU This one might work: lsof | grep nvidia
@@BlandManStudios thanks for the advice, I'll try to find out. Also, I have found that you can skip having to connect a monitor to set up looking-glass by changing the device to 'VGA'. Once you turn the VM on, you can check "Device Manager" to see if it can see the passthrough GPU. I hope this can help in future videos :)
@@BlandManStudios No, you still need the dummy hdmi, it’s just an optional to have a separate external monitor attached to download nvidia driver while setting up looking glass. I haven’t done extensive test myself but once you connect to looking glass, the spice will disconnect and vice versa.
Really impressive. Is this possible to achieve in a desktop computer with a Ryzen 7700X (which has integrated graphics) and an NVIDIA 3070 dedicated GPU?
Thanks! Yup, I started doing passthrough with desktops. You can checkout my dual GPU tutorial series if it's helpful th-cam.com/play/PLG7vUqRxMOG6gsPXohhFht3UJbcCxYgcL.html It should work with that hardware as long as your AMD CPU supports AMD-Vi and has good iommu group isolation
@@BlandManStudios But what about the seamless attaching and detaching of the dedicated GPU? Is that possible too or is the MUX switch an absolute necessity for it to work?
@@Voshchronos that still works on desktop It took some tweaking to get right because it must be using KDE and Wayland (similar to the laptop) The way it works for me is that I boot linux in VFIO mode, start KDE with Wayland. And because my monitor is plugged into the iGPU ports on the motherboard I can see the linux display Then if I want to use the GPU on Linux I run the same command to enable the GPU. And whatever program it is needs to be setup to use the GPU for it's rendering (sometimes called PRIME render offloading) Then if I want to start a VM, I just need to close the GPU enabled programs. Run the command to switch back to VFIO mode Then I can start the VM and use Looking Glass to display the VM (And because I'm on desktop I usually use an extra HDMI cable from my GPU to my monitor's second input instead of the dummy plug)
@@BlandManStudios Ooh, I see. That's great to hear, I'm gonna try this soon! Been wanting to get back to making music in FL Studio or Ableton and rebooting to Windows is such a pain in the ass. Thank you so much for the info!
I wonder if it is possible to run this VM configuration with native hard drive (where you installed Windows already) instead of qcow2 image. So you would have one system and save space.
in pc, this way is easy to do, your linux use intel gpu or amd gpu ,and by kvm and passthough ,you qemu vm use amd or nvida gpu, but i don't want to use glass ,i have two monitors, one is for linux ,and one is for win10,use Synergy, you can easily to control the two system by one mouse and one keyboard but i don't sure that it is ok for laptop
For some reason when gnome starts up to grabs onto the GPU and never lets go So when I'm using gnome on Linux with the GPU enabled I've got to kill gnome completely to use a GPU accelerated VM but you could use gnome if you want, then just switch to KDE when you need to do the "nvidia-disable" stuff
Awesome tutorial! I want to try something similar to my laptop but I'm not 100% sure it could work, I have a lenovo legion 5 with a amd processor and a rtx 2060 gpu, no mux switch. Currently I'm dual boot-ing windows 10 and kubuntu and I really wish I could have the win10 inside a vm and ditch dual-booting for good.
Thanks! Legion is one of the laptops mentioned here, but maybe they're talking about a specific newer model that is MUXed lantian.pub/en/article/modify-computer/laptop-muxed-nvidia-passthrough.lantian/
I've followed multiple guides and I'm stuck. The VM recognizes the graphics card is connected(1050 in my case), but only shows it as a Microsoft Basic Display Adapter and there's no display output on the HDMI port. When I try to install the NVIDIA driver, it says no compatible hardware is found. I found a guide on reddit that said for mobile GPUs, a virtual battery is required, and I followed the steps to add the ACPI table, but it didn't work. Do you have any suggestions?
I would double check youve downloads the right Nvidia program for your specific GPU. I've found the best way to get the Nvidia driver is to fill out the dropdowns here. For me this works better than the other Nvidia programs that are supposed to detect what kind of GPU you have www.nvidia.com/Download/index.aspx?lang=en-us One other thing that might help you. This GPU is from the era when Nvidia used to intentionally block GPUs from working when it detected they were running in a VM. This was called the Code 43 error and to fix it you used to need a workaround like this: passthroughpo.st/apply-error-43-workaround/
@@BlandManStudios I tried both the 1050 notebook driver and the desktop driver, I'll look into the code 43 workarounds. I also tried an older version of the driver.
@@alexthelion335 oh gocha, I didn't catch that you're using a laptop. I have a feeling code43 isn't the issue then, usually that presents differently. Unfortunately I don't know what it could be. Maybe the virtual battery is worth a try
I used your tutorial 2 years ago to run VFIO on my desktop, which I have been loving. Now I just bought a laptop and google VFIO laptop and you are the first result. You've really been there for me, and I appreciate the heck out of you.
Woah, thanks! That means a lot
If I step back and realize that something I made has impacted the daily life of a real person for 2 whole years...that's pretty cool
Thanks for saying so and good luck with your laptop!
Im kind of upset this video doesnt have 1 million views bc Ive been looking to do this for months, yet you have it all figured out
how did you figure out if the motherboard supports iommu? how did you know if the grouping is favorable
Unfortunately I figured it out by guess and check. I bought a laptop with a good return policy, tried it out, and was ready to return it
Alternatively, the slightly better answer is to look at blogs and reddit for success stories and buy what they bought
Thank you for your continued efforts on helping people with VFIO and Linux. Maybe you went a little overboard with 1M views lol but I do hope it does get viral. It was an awesome video. Best of luck with your endeavors!
Appreciate it! And thanks for your activity in the comments helping others get answers to their questions!
@@BlandManStudios can you make the command used to attach and detach GPU switch to windows VFIO a GUI. Thanks I'm very lazy and busy to be typing commands iv got bills.
@@BlandManStudios research on a cheaper chuwi Chinese laptop that can do this and sell a preinstalled version. I ain't got Time 😭 for tinkering. ''bonefied window user''
@@univera1111 it's an interesting idea. Like a GUI to enable/disable the GPU? Or to do all the setup from scratch?
@@univera1111 bruh, it's a 13-14 characters long alias… you can even get autocompletion in the terminal with zsh or fish to type it faster. You could even bind it to a key with sxhkd or something!
After fully watching this video I can tell the insane amount of work this took to research and configure, this is also one of the most comprehensive videos on gaming virtualization ever. Thanks a lot for making this video!
I appreciate the recognition! Yeah, it was a fair bit of effort haha
I'm a newbie linux enthusiast, getting a laptop and i don't want to have to boot into windows anymore, this is amazing, you saved my life, i love your work!!!
best channel for vfio!
i will say, usually i agree with people who say don't follow video guides but your videos really make vfio more approachable and it is much easier to get started
images speak louder that words
Thanks!
Another part of the reason I like video for vfio is because I didn't believe this was possible until I saw it for myself
"Seeing is believing" I guess 🤷♂️
@@BlandManStudios yessir
This is exacly what I have been looking for! Thank you so so much!
Just wanted to say thanks for your time here, I've learned a lot about virtualization from this channel. The few remaining titles that demand to run in Windows are annoying but it's good to see Linux gaming moving forward regardless. This past winter sale it was a joy to discover some great titles that play on my deck and desktop alike, many of which are also already native to Linux.🐧
Totally agree! Glad to hear the channel has helped with learning
🐧🐧🐧🐧🐧🐧🐧🐧🐧🐧
Wow, I've found you because of comming up with the similar idea! Now I know this is possible, thank you for making this video!
Great minds think alike!
Best of luck on getting 1M views! This is a great tutorial and will be helpful for many people interested in VFIO.
Your channel has been extremely helpful in educating me about the capabilities, and limitations, of VM gaming on Linux.
I tried Proton a few months ago and was severely disappointed by how many of my games failed to work. The community loves to spout that it's perfect outside of Anticheat issues, but that's just factually untrue, and so many games still have unplayable issues or performance drops. First I heard of VM gaming, it sounded like the holy grail: The perfect way to solve all my problems. But your tutorials and demo videos also clearly showed the downsides and workarounds you need to make, no clickbait "THIS IS THE PERFECT WAY TO PLAY" similar to how people treat Proton.
Hopefully when I upgrade my rig sometime in future, I can start experimenting with passthrough myself and finally be able to drop windows, only using it ever for games!
Totally agree, I won't claim it's perfect, but I do think it is "THE BEST WAY"
Man, keep up the good work, you are a savior. I thought the process was simple at first, but then I started looking into it, and there wasn't any place that explains this thoroughly for a newbie. Finding this video is like stumbling across a golden ingot in a river.
I think you are shooting too high with the video count.100k sounds reasonable. That video is going to stay with you for a long time until this hits 1m.
Man this video is absolutely perfect, i heard Mutahar mention Looking Glass in passing a couple of times but i somehow never made the connection hat could be useful to me and i was here struggling with Moonlight & Sunshine without success. I will recommend this video to anyone who will listen and everyone who doesn't even, this should be mainstream indeed.
@@takablepigon9686 glad you liked the video! I think this stuff should be mainstream too, that's why I've been working so hard to make it approachable for more people!
Enjoy your new setup!
You definitely created the video I was looking for!! I was on the verge of switching to Linux, but I always seemed to run into a few issues with VMs, but your video really helped me figure out and iron out some issues.
Amazing work, nothing to add. You even respond to questions sent by emails like bro ! Love that, just continue like this, it sounds to me like true passion for computer science.
Absolutely great vid! Have been trying to get Linux gaming to work for a while now, never thought to go this route w the VM. You have earned yourself a new subscriber my guy.
Thx for the sub and the kind words!
And glad I could show off a new route!
Hope you get your 1 Million View. 😊
Keep it up!
Thanks!
Very cool stuff man. I'm still in gtx 950 era, so many stuff you talk about is a magic to me. But gaming on VM is super cool. Thanks to you're guides I was tinkering with vfio on my pc. To no success but this is old nvidia drivers stuff. Some day I will make it work. Anyway have a nice day and keep spreading you're knowledge.
Ayyy, glad to hear it, thanks. It's good to know that this is helpful/interesting/educational even if you're not able to implement it with your current hardware
Thanks and happy GPU-ing!
ay if you are in GTX950 era you could also be using an old CPU and mobo and they could be hindering the VFIO usage. Check on cheap AM4 B450 mobos and CPU's which could end up being a cheap upgrade with a future for more power with another CPU upgrade later on!
Good luck on your way! I admire your work
Thanks!
wow... such a detailed tutorial... kudos!
Thanks!
Setting all this up is the actual game! Great work, neat stuff.
I ABSOLUTELY NEEDED THIS! THANK YOU SO MUCH I CANNOT APPRECIATE YOUR EFFORST ENOUGH
Thanks to you I was able to create a personal server with multiple VM's to work with my different environments , really appreciate and thank you
Absolutely amazing tutorial!!! Thank you!
This is really comprehensive and well made!
This is a fantastic and versatile setup!! Bravo!!
Thanks!!
Cool and informative video. I found your channel by searching how to pass-through GPU to a VM.
Thanks!
Great description about what virtualization is capable of right now.
This is super cool, I'm going to try it when I have time.
Is it possible to have something like this with a desktop pc?
I'm guessing you'd just need a monitor with two inputs, one for the IGPU and one for the GPU.
Curious to see how any extra monitors connected to the GPU would behave.
This might be a good video idea! Would love to see something like this in pratice.
I was really hoping you would put together a video about this after watching your previous video about this laptop. Thanks!
Thank you. My entire software setup is based on your videos (not just this one). It's black magic, and it's amazing. This is how I went from being a Windows user to a Linux user. And just for that, thanks again.
The only problem I have, but it may be out of your use, is having a real local IP address for the guest machine (still using Virtual Machine Manager), using Wi-Fi. I'm not sure why, but even black magic doesn't seem to be able to do it.
That's because QEMU uses by default a NAT connection; what you want is changing your NIC configuration into bridge mode.
This is just amazing!!!
Even though this is too much of an effort for me, I appreciate the effort that YOU put into this video. Broke my system once with a VFIO setup so I do not want to try it again.
Great video my friend
Appreciate it, thanks!
One quick note, after executing nvidia-enable and you want to disable nvidia drivers, use gnome-terminal to execute nvidia-disable, this is because Konsole uses the GPU for some reason. And, sometimes, it will report nvidia is in use, just a quick ‘lsof /dev/nvidia*’ will show you what application is using the device. Simply kill the application with the PID showed, you can run the command nvidia-disable again. : )
So true! The terminal app does matter, thanks for the write up, I bet this will be helpful to others!
I already use kvm in my main, pc. This helped a lot! I now know where to look for a new laptop! (The current one I have is too slow, meaning I need dual-boot).
Awesome. Thanks for the hard work!
Thank you for this video! ❤
😉👍
congrants on the winner
maybe I missed something but rather than a virtual disk for the Windows VM I'd try installing a second NVME (if the laptop has space) and using it for dual booting Windows/launching that Windows install as a VM
Edit: awesome video btw, I didn't even consider the MUX switch
Great tutorial
Thanks!
Really helpful and good, but a bit fast and If I didn't watch the previous gaming VM videos, it would be missing a lot detail.
Sadly I have a weak processor + motherboars so I wont check the things that you mentions in this video too.
But overall it's a really damn good video because No One did a video like this when I searched it.
Thanks! and I appreciate the feedback on the video pace and concept depth too!
Yo just wanted to come back and say thanks for trying to help me when I was having trouble, I'm now a full fledged fedora user, both my laptop and desktop have it and I'm happy with it. My only thing is vr, I unfortunately at least for now I need to have a tiny windows install just for my few vr games especially since I have a wmr headset. Maybe one day I'll grab an index or the next gen of that so I can cut my last ties with windows
Amazing video!
Thanks for taking the time to make a full guide!
Why did you choose a Nvidia GPU?
Probably because of gaming performance?
Wow dude, thanks so much for all the effort and succesful attempts you put in! Your work has helped me last days to also create this, wich I was never able to do!
Also what do you think about about the legion 5 serie laptops for this?
I've tried nobara Linux fedora base, and the distro is high performance out of the box. So give that a try!
Yeah. Nobara is great. In use it as daily driver. Can recommend for gaming.
Just learned about nobara today, good to know! Thanks!
Amazing video! I love how this guide briefly touches everything.
When the video game's anti-cheat doesn't allow VM's, and you then boot directly into windows, is that the same OS instance as the windows VM? Or two separate installs? I'm guessing that if this is qcow2 it's different, but if you partitioned the drive or used a separate one, then it's possible to have both be the same OS instance maybe?
You're correct, this is two different windows installs
The VM is qcow and win10
The host is drive partitions and win11
It is possible to have them use the same partition. The only way I've been able to do it is by doing it in the following order
Step1. Assign a partition to a VM
Step 2. Install Windows to the partition with it running as a VM
Step 3. Reboot and try to get the windows partition to boot (be recognized by a bootloader like grub)
@@BlandManStudios that's awesome, thank you! I'm glad to hear it's possible
Dude, you are god! Thank you
Synergy or barrier is also you need ,one mouse and one keyboard to control two system
Great video.
Thank you very much for your work. It created a deep excitement within me. 😊
Is there anything special we need to do for Debian-based Linux?
I didn't understand Phase 3 very well.
This is an amazing, very clear and thorough tutorial! I'm thinking about switching to Linux completely, but I'm curious if this would let me play games with battleeye like rainbow 6, and if it works well with the newest CoD. I know r6 has a hard stance against using it with VMs. It would be great if battleeye had linux support though, but maybe one day if Steam has their way. For now I don't want to risk getting banned. I subscribed and hope to see more content like this in the future. If anyone reading this was brave enough to try or knows if it works, please let me know. Thank you for posting this!!!
Is the performance good enough that I can just do all the gaming under the windows VM? Would be nice to have games seperate so that I can run dubious game mods without concern.
great job. thx for the video
You are legend!
Appreciate it! 😎🐧
This might expose my lack of knowledge on this topic, but I've wondered for years now why someone hasn't made a Linux distribution purely designed for this task. Like imagine some extremely user friendly GUI that starts up after you install the OS and reboot that would automatically setup everything, including downloading windows 10 legitimately from their server and doing all the this work automatically.
The unfortunate truth is that maintaining a distribution is extremely difficult (or, more accurately, labor intensive) whereas this task is distribution agnostic (this guide works just as well on an Arch system and presumably would on a Debian/Ubuntu based system as well) which makes the amount of work not really worth it for the added value for the user. Full automation would also be non trivial to correctly detect all possible situations that would make the setup subtly different whereas the user could adjust it as they go if they do it manually, at which point the automation potential from a dedicated distro is wasted.
Thanks for introducing MUX to me.
By the way, what's the benefit of keeping the original windows install?
The benefit of keeping the original install is in case you want to use it to play any games that fail to work in a VM (like Valorant)
I don't have any of those tho, so I usually remove the windows partition to have more space for linux
@@BlandManStudios Gotcha. Thanks again.
@@BlandManStudios In a general sense, is it true that if you replace a laptop with linux, you lose things like gestures and power management since the company usually doesn't provide software for linux?
You made this at the perfect time for me, i was just thinking about switching over fully on my laptop but was worried about VR support because i have a windows only wmr headset (reverb G2) I'm hoping using the virtualized version of windows i can use just to play VR games
Hey man, I loved the way this video was paced and the amount of information is just fantastic. I just wanted to know whether there's a way to perform GPU passthrough on a laptop that doesn't have a MUX switch or is it necessary?
Incredible! I was thinking about having KVM with my next laptop and this was really helpful. I just got a question.
Let's say I have two nvme n1 is fedora host and n2 is windows 10/11 bare metal. Is it posible to use n2 as guest in qemu or should I better have a different Windows to use in it?
Thanks
Thanks for all videos you made about VMs with GPU passthrough. I managed to set up my ASUS Dash F15 in arch linux. I'm currently trying to use it without a hdmi dummy with windows-side virtual monitor drivers, yet no success.
Dude, where have you been all this time? :D With this hdmi plug I will finally be able to realize a normal virtual machine.
Finally Intel will be on the host, and Nvidia with its bugs will move to Windows.
No multilib, no wine, no 100500 monitors, just an aesthetically pleasing and fast system.
Awesome!
Hey, i love watching your videos, you are amazing,
i followed this tutorial from Arch Gnome
when i use nvidia-disable, i get message saying its completed and vfio drivers removed, however my gpu still doesnt show on fastfetch, cant use it on linux and when i lspci -nnk, it doesnt show me driver in use.
when i nvidia-enable i get this error "rmmod: ERROR: Module nvidia_modeset is not currently loaded
rmmod: ERROR: Module nvidia_uvm is not currently loaded
rmmod: ERROR: Module nvidia is not currently loaded"
any luck finding a solution? I have the same issue and running Arch Hyprland.
Great video! Just one question pops to my mind, why Fedora? I'm a linux noob so i don't know very well all the pros and cons, and I've been mostly using a mix of Kubuntu/Windows/Mint for some time, and I wanted to know the pros of fedora against typical noob friendly distros. Thanks for your time!
Hey! Glad you liked the video! To answer your question, I think Fedora is also in the noob friendly category of distributions, because it is also pretty easy to use
As for differences, I think it is a little bit more geared at the enterprise/commercial user which leads to some design differences. For example it uses dnf for package management (instead of apt). I like the way dnf works because I've used it in software development projects in the past so I understand what it's doing under the hood. I also think, from my experience, I've had more success installing all kinds of software to fedora, when sometimes I've run into dependency issues on Ubuntu that I just couldn't solve
You can't go wrong with Linux, but if you are a software developer or you want to see if it is more reliable or has newer updates, I'd recommend giving fedora a try
@@BlandManStudios Thanks for the insight and for taking the time to answer!! :D
Thank you from brazil
Thank you to Brazil! Glad you liked the video
now we can linux,windows and mac on a single laptop....what sorcery is this?fantastic...
I'm having trouble getting past the "sudo virsh nodedev-reattach pci_0000_01_00_0" step it doesnt do anything after that besides ask for my pass which i put and nothing happens
I think "nothing" is what it happens when the command works successfully
Does the command after it also work?
@@BlandManStudios anything i type after that is pretty much ignored as if the first command is still running but nothing ever happens
@@BlandManStudios i also noticed in the previous step that i don't think it liked me using gedit to edit my files it gave me many warnings do you think if i do it again but with another editor it should work?
@@CoffeeCode3D hmmm I'm not sure what the problem is
It's probably not gedit, cuz mine gives me a bunch of warnings too
What "Kerner driver" is "in use" for the GPU when you type the following command?
lspci -nnk
@@BlandManStudios 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA104M [GeForce RTX 3070 Mobile / Max-Q] [10de:249d] (rev a1)
Subsystem: Micro-Star International Co., Ltd. [MSI] Device [1462:12fb]
Kernel modules: nouveau, nvidia_drm, nvidia
thats what i get regarding my gpu not sure whats wrong i installed my nvidia gpu drivers like normal
Can all this be done on the rolling release fedora?
Also, can this be done on Arch distros like manjaro or endeavour os?
Great tutorial, thank you! I'm wondering why you installed GNOME fedora then KDE? I think you can directly choose KDE when installing fedora.
Great question!
It has to do with the "nvidia-disable" commands that we use later in the video
For some reason the way gnome works and the Nvidia driver works: as soon as gnome gets access to the GPU via the NVIDIA driver it won't let go and you can't unbind the driver
The only way to disconnect the GPU is to kill gnome
So gnome is "not optimal" because you've got to kill all your Linux programs before you start your VM
I've got almost the same tuf (3070ti in my case). Will try to do the same - I'm not really interested in gaming on VM, as all games I want to run work natively or with wine/proton. But just "I can play in VM" is already a reason to try it.
I want to do this on my fx516pr 2021 but for some reason wayland runs really bad on an external monitor and I can't replace x11 with it
Sounds like the GPU isn't accelerating the external monitor
Maybe the GPU MUX is in the wrong setting. I remember using a script like this to change the setting on the MUX switch once I removed Windows
github.com/flukejones/asusctl
It required a reboot after changing the setting, if I recall correctly
please make tutorial for debian too?
I haven't used debian in a while, but I'll keep it on my radar! Thanks for the suggestion
The guide should work the same, the only difference with Fedora is that Debian is a little outdated in its packages for stability purposes and uses a different Package Manager.
Passing by, just in case you do get a million here. 👋
Hope it helps be do GPU passthrough on mine way lower-end notebook tho
Just got my StarBook with Coreboot and intelME disabled, works great with Linux and FreeBSD.
Also, sound is not on sync at all with looking glass. I'm also not sure how to passthrough Bluetooth so I can use my controller wirelessly. I'm a noob at this but I'm trying to test everything out so I can make the full jump to Linux without losing out on windows perks.
I think looking glass might have better ways to do audio since I filmed this video. Maybe try reading on their website. In this video I'm using spice for audio which is known to be laggy. I think the performance in looking glasses audio feature (which I disabled in this video) might be better
Bluetooth might be possible if you have a USB Bluetooth device you can pass in
But actually the latest version of looking glass I tried was able to pass in my mic and give me audio too. Probably worth testing that for yourself too
@@BlandManStudios gotchu, I'll look into it
One thing I've noticed. I don't think firefox likes the changing of active GPU. Sometimes firefox stops rendering changes, until you minimize and restore the window. I recently turned off hardware acceleration in the browser, to determine if that's the cause. Otherwise it seems to run rather well, thanks for the tutorial, I've been wanting to set something like this up for a while, but thought it would have to be a desktop.
Bro now you have to make a benchmark to compare the games perf with the linux and with the native windows os
One step ahead of you 😉
th-cam.com/play/PLG7vUqRxMOG6svx97KUW_Zy-Wyeu_yIqS.html
So what is the maximum amount of hertz you can use ok the vm? 68?
I've been using a 144Hz monitor and haven't noticed glitches. I have some other videos with performance benchmarks if you're interested
@@BlandManStudios so it runs 144hz? How much ram did you give the VM and can I do this without the HDMI dummy?
@@davidddo it does
if you have a desktop you can do it without the dummy
If i recall correctly on this laptop i give it 8GB
On my desktop i give it 16 GB
@@BlandManStudios can i use looking glass with just my laptop, no external monitor, no external computer and no dummy hdmi? Honestly your video might make me switch to linux completely
Wow that is cool
That's how I felt! Just had to show the world!
Thanks for these amazing videos! They were really helpful.
Do you have any laptop recommendations for 2024? I'm looking for something that supports GPU passthrough, has USB-C with DP and is not very expensive (
do you have a more specific guide for the nvidia disable/enable scripts?
I have a demo of it here
th-cam.com/video/LtgEUfpRbZA/w-d-xo.html
But no guide for it specifically
Crap man you really working hard
Have you thought about sharing a drive between linux, the native windows, and virtual windows for the steam library?
On my desktop, I've shared a folder between the guest and host using "samba"
Thanks for the tutorial. But couldn't you have just installed the KDE spin for Fedora. You could've saved a lot of time and also it would have worked better.
i love u bro , thanks
I have an ignorant question: why did you use fedora? Would something like arch or manjaro be the same?
It's a very valid question
I used fedora because it is generally easy to install, relatively stable, and relatively easy to use. It is also less custom than arch which means anyone following the tutorial will have the same experience
But there is no reason you can't do this on arch or Manjaro. You'd just have to tweak the steps that are different for you distro
For example: different commands to install your packages. And you might have a different setup for bootloader (grub) or initramfs (dracut)
Great video! Does this work for AMD as well?
Wow thats awsome
imma bot this bihh all the way to 1m for that chance
Impressive tutorial as always, thank you so much for the guide.But do you happen to run into an issue where “nvidia-disable” script unable to detach and hang after the gpu is enabled for a while? I have been looking into it and I have not found a solution.
Thanks!
Hmmm... Do you think a program is running that is using the GPU and preventing the GPU from disconnecting?
See if you can find the right Linux command to find out which processes are using the GPU
This one might work:
lsof | grep nvidia
@@BlandManStudios thanks for the advice, I'll try to find out.
Also, I have found that you can skip having to connect a monitor to set up looking-glass by changing the device to 'VGA'. Once you turn the VM on, you can check "Device Manager" to see if it can see the passthrough GPU. I hope this can help in future videos :)
@@tranthien3932 nice tip!
So the "dummy plug" is optional. I'm going to try that out
@@BlandManStudios No, you still need the dummy hdmi, it’s just an optional to have a separate external monitor attached to download nvidia driver while setting up looking glass. I haven’t done extensive test myself but once you connect to looking glass, the spice will disconnect and vice versa.
@@tranthien3932 ahhh gotcha, to make the tutorial easier. Makes sense, thanks!
Really impressive. Is this possible to achieve in a desktop computer with a Ryzen 7700X (which has integrated graphics) and an NVIDIA 3070 dedicated GPU?
Thanks! Yup, I started doing passthrough with desktops. You can checkout my dual GPU tutorial series if it's helpful
th-cam.com/play/PLG7vUqRxMOG6gsPXohhFht3UJbcCxYgcL.html
It should work with that hardware as long as your AMD CPU supports AMD-Vi and has good iommu group isolation
@@BlandManStudios But what about the seamless attaching and detaching of the dedicated GPU? Is that possible too or is the MUX switch an absolute necessity for it to work?
@@Voshchronos that still works on desktop
It took some tweaking to get right because it must be using KDE and Wayland (similar to the laptop)
The way it works for me is that I boot linux in VFIO mode, start KDE with Wayland. And because my monitor is plugged into the iGPU ports on the motherboard I can see the linux display
Then if I want to use the GPU on Linux I run the same command to enable the GPU. And whatever program it is needs to be setup to use the GPU for it's rendering (sometimes called PRIME render offloading)
Then if I want to start a VM, I just need to close the GPU enabled programs. Run the command to switch back to VFIO mode
Then I can start the VM and use Looking Glass to display the VM
(And because I'm on desktop I usually use an extra HDMI cable from my GPU to my monitor's second input instead of the dummy plug)
@@BlandManStudios Ooh, I see. That's great to hear, I'm gonna try this soon!
Been wanting to get back to making music in FL Studio or Ableton and rebooting to Windows is such a pain in the ass.
Thank you so much for the info!
I wonder if it is possible to run this VM configuration with native hard drive (where you installed Windows already) instead of qcow2 image. So you would have one system and save space.
It is! I tried it out and tested speeds too!
th-cam.com/video/Yuw0nBprLro/w-d-xo.html
in pc, this way is easy to do, your linux use intel gpu or amd gpu ,and by kvm and passthough ,you qemu vm use amd or nvida gpu, but i don't want to use glass ,i have two monitors, one is for linux ,and one is for win10,use Synergy, you can easily to control the two system by one mouse and one keyboard
but i don't sure that it is ok for laptop
Could gnome wayland be used instead of kde wayland? I much prefer gnome looks over the kde
For some reason when gnome starts up to grabs onto the GPU and never lets go
So when I'm using gnome on Linux with the GPU enabled I've got to kill gnome completely to use a GPU accelerated VM
but you could use gnome if you want, then just switch to KDE when you need to do the "nvidia-disable" stuff
@@BlandManStudios thanks, I’ll just stick to kde then, it’s super customizable so i can make it look gnome-ish
Just gonna compliment your hair, looks supercool
Awesome tutorial! I want to try something similar to my laptop but I'm not 100% sure it could work, I have a lenovo legion 5 with a amd processor and a rtx 2060 gpu, no mux switch. Currently I'm dual boot-ing windows 10 and kubuntu and I really wish I could have the win10 inside a vm and ditch dual-booting for good.
Thanks!
Legion is one of the laptops mentioned here, but maybe they're talking about a specific newer model that is MUXed
lantian.pub/en/article/modify-computer/laptop-muxed-nvidia-passthrough.lantian/
I've followed multiple guides and I'm stuck. The VM recognizes the graphics card is connected(1050 in my case), but only shows it as a Microsoft Basic Display Adapter and there's no display output on the HDMI port. When I try to install the NVIDIA driver, it says no compatible hardware is found. I found a guide on reddit that said for mobile GPUs, a virtual battery is required, and I followed the steps to add the ACPI table, but it didn't work. Do you have any suggestions?
I would double check youve downloads the right Nvidia program for your specific GPU. I've found the best way to get the Nvidia driver is to fill out the dropdowns here. For me this works better than the other Nvidia programs that are supposed to detect what kind of GPU you have
www.nvidia.com/Download/index.aspx?lang=en-us
One other thing that might help you. This GPU is from the era when Nvidia used to intentionally block GPUs from working when it detected they were running in a VM. This was called the Code 43 error and to fix it you used to need a workaround like this:
passthroughpo.st/apply-error-43-workaround/
@@BlandManStudios I tried both the 1050 notebook driver and the desktop driver, I'll look into the code 43 workarounds. I also tried an older version of the driver.
@@alexthelion335 oh gocha, I didn't catch that you're using a laptop. I have a feeling code43 isn't the issue then, usually that presents differently. Unfortunately I don't know what it could be. Maybe the virtual battery is worth a try