GPU passthrough guide for Ubuntu 20.04

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.พ. 2025

ความคิดเห็น • 441

  • @amir-jg4zy
    @amir-jg4zy 4 ปีที่แล้ว +9

    wonderful guide, thank you! it worked for me perfectly first time. got a fully working win10 VM and i just finished installing Steam to test Destiny 2 and the performance was like a native GPU in win10 - my main GPU is nvidia 1660 super. I'm VERY happy, thanks again!

    • @Herm1tsRevenge
      @Herm1tsRevenge 4 ปีที่แล้ว +2

      @amir you beautiful bastard. I too have a 1660 super and have been beating my head against the wall for 3 DAYS before i realized maybe 20 was a different story. Thanks Pavol and here goes! @_@

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Glad to hear it worked!

    • @Herm1tsRevenge
      @Herm1tsRevenge 4 ปีที่แล้ว +1

      update: did not work. only get a black screen with a cursor blinking after reboot...?

    • @Lucatoni22
      @Lucatoni22 4 ปีที่แล้ว +1

      hi amir can you help me do this?

    • @Processador_DE_BaixaQualidade
      @Processador_DE_BaixaQualidade 2 ปีที่แล้ว

      @@Herm1tsRevenge did you managed to solve the problem?

  • @chrishayward3520
    @chrishayward3520 4 ปีที่แล้ว +7

    The pass-through king! Thanks so much for all your videos, subbed

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Thanks for the sub!

  • @Zeioth
    @Zeioth 3 ปีที่แล้ว +3

    You documented the process for both AMD and Nvidia. You are awesome dude.

  • @RyanMcCrystal
    @RyanMcCrystal 4 ปีที่แล้ว +5

    THANK YOU! I've been trying to get this to work for the past 9 hours and this finally got it working!!

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว +2

      Glad to hear it worked!

  • @sburger101
    @sburger101 4 ปีที่แล้ว +1

    Messed around for two days trying to get this to work... this tutorial is exactly what I needed! Keep it up!!

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Glad you found it helpful

  • @Daxter296
    @Daxter296 4 ปีที่แล้ว +2

    Thanks man, this worked like a dream. Only stumbling block I had was remembering to plug in a display to the GPU!

  • @dexah4842
    @dexah4842 3 ปีที่แล้ว

    I'll just casually walk through this youtube video and hug you, great job and thanks for the content :DDD

  • @ruxcooking
    @ruxcooking ปีที่แล้ว

    Thank you for your script and guide. I actually managed to passthrough a very old Quadro 4000m on my laptop. I had to use nomachine instead of looking glass and need to "remove and reset" the card every time I boot but it's the first time I've ever managed to do a passthrough successfully.

  • @taylogs
    @taylogs 4 ปีที่แล้ว +5

    Pls keep doing this kind of projects, damn, so good, just subscribed 😁

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Thanks for subscribing!

  • @korko1235
    @korko1235 4 ปีที่แล้ว +2

    I'm your 1000th subscriber! :)
    I'm pretty new to GPU passthrough. Will it work with my setup?
    Intel HD Graphics 620 + NVIDIA GeForce 930MX

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว +1

      That’s a laptop, right? Laptops tend to be troublesome when it comes to passthrough. It might work but there might be some additional steps. This might help: leduccc.medium.com/simple-dgpu-passthrough-on-a-dell-precision-7450-ebe65b2e648e

    • @korko1235
      @korko1235 4 ปีที่แล้ว

      @@PavolElsig Ok thanks. Yes, it's a laptop (HP ProBook 470 G4) with proprietary NVIDIA drivers installed.

    • @korko1235
      @korko1235 4 ปีที่แล้ว

      @@PavolElsig Btw I think there's a problem with this... I want the NVIDIA GPU to be used both in host and guest (because some of my games work in Linux, some in Windows).

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      @@korko1235 For that, you could try out single GPU passthrough. It’s significantly more difficult, but here’s a link to a good guide: github.com/joeknock90/Single-GPU-Passthrough

    • @korko1235
      @korko1235 4 ปีที่แล้ว

      @@PavolElsig Ok thanks :)

  • @RockeyDAproductions
    @RockeyDAproductions 10 หลายเดือนก่อน

    this video has saved me so much frustration

  • @thereason1010
    @thereason1010 4 ปีที่แล้ว

    OMG. Dude I've been trying to do this for years. Thanks so much for sharing!

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Cool, glad to hear it worked!

  • @joseluistinajeroguerrero826
    @joseluistinajeroguerrero826 4 ปีที่แล้ว

    It’s working!!!!!! It’s working!!!!, ohhh man!!! After all this research, thank you very much, my dell g3 can passthrough the card to my monitor like a charm, there are a few drawbacks, please let me know if you want me to share you my experience, anyway the great news are: it’s working!!!!

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว +1

      Yes, I'd be really interested in hearing how it went on the Dell G3. Thanks in advance!

    • @joseluistinajeroguerrero826
      @joseluistinajeroguerrero826 4 ปีที่แล้ว

      Pavol Elsig Sure, I’ll draw a summary of the whole experience when everything is working correctly, by now the passthrough is working perfectly with these drawbacks, I don’t know if they are minor or really important, but here they are:
      - I’d to set my qemu security configuration to “none”, and as a security expert this really annoys me, but this is just a hobby so I try not to think much about it, when everything works fine, I’ll retake all the steps to polish and shine.
      - Looking glass apparently is not so difficult, so this part is idle by now, I’ll be on this in the near future, but it seems to be an easy task.
      - On the other hand, keyboard and mouse passthrough has been a pain in the neck, I’ve a pair microsoft’s wireless keyboard/mouse, but the receiver, when idle for more than 5 seconds, disconnects, I don’t know why, and nothing seems to correct it, usb drive (to install games) works fine, in an attempt to connect a stable keyboard I passthrough my bluetooth antenna, that comes as a bundle in the same card of the wifi, but is recognized as a usb device, so after proper identification I successfully passthrough the bluetooth, windows recognized it, and I could connect the keyboard,... buuuuuuuutttt the piece of crap, disconnects, as the microsoft’s dongle, so I have to be in a constant connect-disconnect loop if I want to use the windows machine, surprisingly enough, a logitech usb dongle mouse never disconnects, but, that’s only a mouse.
      - Right now, I’m looking into another solution called “evdev” (have you ever heard of?) more or less the same as Synergy, but free, it is supposedly an easy setup, but I’ve a “no such file” error referring keyboard and mouse devices identification file, when try to start the machine, I’m pretty sure that’s a permissions issue, and according to one tutorial it’s easy to solve, tomorrow I’ll give it a try.
      In my mind I’ll be able to play rocksmith 2014 using my roland usb duo card as a rocksmith cable and as audio output, using my steam account, and with full video specs, no latency, toggling flawlessly between linux and windows, running at the same time a virtualized network using gns3, running two cisco switches and three routers, with four or five victim machines, and a qualys appliance, kali linux an parrot all these virtualized with kvm... and I’ll be playing the guitar in rocksmith while waiting for the attacks to complete...
      Is that too much to ask?
      Regards friend.

  • @omnissiah369
    @omnissiah369 4 ปีที่แล้ว

    for nVidia graphics cards works only once you hide kvm in the vm settting config & add i'ts vendor id, otherwise ends-up with code 43 error when installing windows drivers for your graphics card.. other than that, great manual, thx

  • @brandonphilander661
    @brandonphilander661 4 ปีที่แล้ว +6

    Great video, please do a vfio gpu passthrough video on Void Linux. Thanks.

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว +1

      Thanks, I’ll try to take a look at Void and see what I can do.

  • @MrLargo85
    @MrLargo85 3 ปีที่แล้ว +3

    Great tutorial butI have a weird behaviour. Once I have updated grub and 'isolated' Nvidia card I noticed that my audio is worse. While Playing audio on Spotify, YT or any other there are some audio cuts/crack and delay. Any idea why is it like that and how to fix it ?

    • @ponymouse9371
      @ponymouse9371 3 ปีที่แล้ว +3

      Same is happening to me

    • @victorcesar6803
      @victorcesar6803 8 หลายเดือนก่อน

      Same is happening to me, solution?

    • @MrLargo85
      @MrLargo85 8 หลายเดือนก่อน

      looks like we never gonna find out. Channel seems to be dead since 2 years.

  • @mixxographer
    @mixxographer 4 ปีที่แล้ว

    thanks, I got it working based on this tutorial

  • @temnik13666
    @temnik13666 2 ปีที่แล้ว

    Thanks, bro! U a best!

  • @cosmicbadger
    @cosmicbadger 4 ปีที่แล้ว

    excellent video as always

  • @guy-ko1wd
    @guy-ko1wd 4 ปีที่แล้ว

    very good video, saved me a lot of trouble

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      xandernotec Great to hear!

  • @SouravDas-jn9pk
    @SouravDas-jn9pk 4 ปีที่แล้ว +1

    Hi! I would like to thank you for this video. I had some question
    1. Do I have to plug my monitor's HDMI into iGPU hdmi port or into the dedicated GPU's HDMI port?
    2. Can I apply these steps for Arch based distro like Manjaro?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว +1

      Sourav Das 1. The host will be using one GPU and you’ll have to plug one monitor into that. The guest will be using another GPU and you’ll need to plug another monitor into that one. Another option is switching inputs between two cables plugged into the same monitor. If you only have one monitor, you could also use Looking Glass.
      2. I have a guide for Manjaro too, but for Arch you’ll need to find another guide on the Internet.

  • @zhl7519
    @zhl7519 ปีที่แล้ว

    Thanks for sharing this!
    Currently, I have the host machine running windows 10 and ubuntu as a guest on the Hyper-V.
    I don't know how to make the GPU pass through to Ubuntu20.4 vm.
    Any ideas on how to do this?

  • @amanwithaplan6187
    @amanwithaplan6187 4 ปีที่แล้ว

    I finally got it to work. Thankyou so much!
    Turns out my old motherboard didn't like iommu settings for some reason.
    Question: Is there any tricks you know to making a usb headset work on both the host and vm simultaneously?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว +1

      Daniel Wheeler Try Scream audio passthrough. That way you can listen to both the host and the guest at the same time. You’d have to download and install Scream.

    • @amanwithaplan6187
      @amanwithaplan6187 4 ปีที่แล้ว

      @@PavolElsig thanks man your the best

  • @ENTERTAINMENT-lf2wy
    @ENTERTAINMENT-lf2wy 3 ปีที่แล้ว +1

    Im thinking of switching to Linux especially when W11 comes, but I will need this likely for gaming. My question is, once you enable the pass through and you're not using the VM, does Linux still use your GPU? If not can I convert all these steps into a script that I can run to enable/disable passthrough every time? (I know how to code so as long as it's possible I should be able to do it)

  • @exotic9392
    @exotic9392 4 ปีที่แล้ว +1

    after doing the 4:57 step, when I rebooted I get stuck on the asus bios loading screen.. I dont know what is wrong, im on the same version and did everything you did.

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Make sure you're not trying to pass-through the same GPU that linux is using. You might have to change the primary GPU to iGPU in BIOS.

    • @pipobortko9660
      @pipobortko9660 3 ปีที่แล้ว

      @@PavolElsig Same problem here (using two dedicated graphics card and Ryzen 5 without integrated graphics)

  • @fgregerfeaxcwfeffece
    @fgregerfeaxcwfeffece 4 ปีที่แล้ว

    Wow, this really has become easy.
    Reproduced with Threadripper + RTX2070 + Vega 56
    Within about 20 reboots i encountered the Vega reset bug once. So i would judge it as mostly fixed in current *stock* kernel. I use the RTX in the host and installing the nvidia driver via package manager was just, easy. Just start driver auto install, reboot, done.

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Threadripper is an awesome platform for this stuff. I think you’re right, the Vega reset bug has been fixed. The newer ones like the 5700 still suffer from it though.

    • @fgregerfeaxcwfeffece
      @fgregerfeaxcwfeffece 3 ปีที่แล้ว

      @@PavolElsig Feedback after about one year:
      Still works, but the Vega broke, well shit happens. The setup still works but presumably certain loads totally break function and the card goes rogue.
      First i blamed the WoW update, but Furmark causes the same problem very fast too.
      Otherwise everything is still stable, just got unlucky with my Vega card.
      Luckily WoW and most other games run under WIne/Lutrix/Proton or native. So i only need the VM for League of Legends which somehow still works. Which is why i assume that it's linked to certain functionality LoL just does not use.
      Reset bug seems to be firmly under control. It was probably just my broken card to begin with.

    • @Nemton86rus
      @Nemton86rus 2 ปีที่แล้ว

      @@PavolElsig On rx 580 I use DKMS kernel module "vendor reset". Works great!

    • @fgregerfeaxcwfeffece
      @fgregerfeaxcwfeffece 2 ปีที่แล้ว

      Another update: I changed the broken card an apparently I did everything correct first try.

  • @TheFoxstory
    @TheFoxstory 4 ปีที่แล้ว

    Awesome tutorials! Can you also show how to get sound and input(mouse+keyboard) working with Looking Glass?
    I have noticed keyboard keys getting stuck and sometimes mouse flicks on it's own while gaming but it seems to be working fine while just on desktop. Perhaps you could show us how to use Synergy with Looking Glass.
    and for sound I tried using Scream. Didn't get far as I got errored out "can't open backing store /dev/shm/scream-ivshmem for guest RAM: Permission denied" or something like that.
    Maybe you could do a tutorial on these two? Anyway epic videos!

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว +1

      You could even use the one m/k from the host for your guest. It should return to the host once the guest is shut down. For gaming, it is best to have an actual physical m/k rather than Synergy. I have been thinking about doing another video about Looking Glass since the original one is kind of old now.

    • @esko1one
      @esko1one 4 ปีที่แล้ว +1

      @@PavolElsig that would be great if you would do that.

    • @TheFoxstory
      @TheFoxstory 4 ปีที่แล้ว

      @@PavolElsig yeah that'd be epic...I know that physical is better but for some that don't have mulitple keyboards it would be cool if you'd show us how to actually get audio and not laggy keyboard/mouse inputs with Looking Glass and perhaps.

  • @jagoserver
    @jagoserver 4 ปีที่แล้ว

    hi pavol. very good explanation. i have asus motherboard and intel i7 (but no output to monitor), and also nvidia gtx 1050 and gtx 560. i have tried step by step according to what is in your video. i am using gtx 560 as output to host (hdmi monitor). and 1050 for use to vm (no monitor). when the first installation I followed the steps like in the video, such as removing SPICE, tablet, and qxl. but when running vm windows installation only appears a black screen with a blinking cursor at the top left. then I tried to install windows without removing spice, tablet, and qxl. installation was successful then i added actual pci to vm but when vm was run it didn't get actual vga. what is the best scenario for my case pavol?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      If you are using the 1050 for your VM, connect one of the inputs of your monitor to it. Your 560 is outputting the host desktop and the 1050 should be outputting the guest. If you want to see guest output on your host, try out Looking Glass.

  • @marcopanicopaura97
    @marcopanicopaura97 4 ปีที่แล้ว

    Amazing tutorial , which kernel are you using?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Thanks, I am just using the latest kernel that came with Ubuntu - 5.4.0.

    • @marcopanicopaura97
      @marcopanicopaura97 4 ปีที่แล้ว

      @@PavolElsig I will try and let u know

  • @laksrr74
    @laksrr74 4 ปีที่แล้ว +1

    Hello, I’m doing everything like in the video, my nhidia kernel driver are set on vfio, i mean everything going well until I installed windows then I check the devices manager and I’m getting « Microsoft Video Card » but not my graphic card nvidia, any help please

    • @laksrr74
      @laksrr74 4 ปีที่แล้ว

      Im really fed up with this problem, I’m following every steps I really don’t know where this problem comes from

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      @@laksrr74 As long as you add the GPU (and all its components) in VM manager and do the error 43 mitigation, it should work. Try downloading the driver from Nvidia's website and install that.

    • @laksrr74
      @laksrr74 4 ปีที่แล้ว

      @@PavolElsig I did it but still not working, I’m getting error 31 saying that my device is not working properly because windows cannot load the drivers required for the device, idk what is wrong really I did everything

    • @laksrr74
      @laksrr74 4 ปีที่แล้ว

      Maybe my nvidia is not installed perfectly on Ubuntu ? Idk ?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      @@laksrr74 It doesn’t need an Nvidia driver in Ubuntu, since it’s using vfio-pci. If you added the card and the audio function in VM manager, it should work. Are you on a laptop by any chance?

  • @ivyflow3r
    @ivyflow3r 3 ปีที่แล้ว +3

    this should work in linux mint, right? since it's ubuntu based, im asking this

  • @chizhang001001
    @chizhang001001 4 ปีที่แล้ว

    Great work, thank you so much

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Glad you liked it!

  • @derpurballz
    @derpurballz 3 ปีที่แล้ว +1

    I followed every step as you showed and everything seems fine. I press "Begin Install" and I get this error: "Unable to complete install: 'internal error: qemu unexpectedly closed the monitor: ....Please ensure all devices within the iommu_group are bound to their vfio bus driver.'" There's obviously more info between the lines, I just wasn't sure if it was sensitive info or not so I omitted it, I can post it if necessary.
    I've gotten so close to just running the VM but this error doesn't let me do anything. I now have a hijacked GPU (Nvidia GTX1650) that I can't use. Any help would be great!
    Edit: I suddenly can't access my grub, when I nano etc/default/grub it tells me "etc/default doesn't exist" and just gives me a blank nano screen.

  • @lagoon7tube
    @lagoon7tube 4 ปีที่แล้ว

    Hey Pavol,
    I have a Asus Prime X570 ( AMD) and two NVidia Cards one Geforce GTX 660 and GTX 1080. Running Ubuntu mate 20.04. I can get the pass thru setup correctly however am I supposed to have the NVidia as the primary display driver because the NVidia drivers install however I cannot make it my Primary display. Is that needed to install games? Also is the Asus X570 Prime Pro a good motherboard for GPU Pass Through and IMMOU groupings. Can u show from this video how you would install and configure a game to use the GPU that you have pass thru? Thanks and this is a great video.

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Any X570 motherboard should be great for GPU passthrough, including Asus Prime. In your case, I assume, the host is using the GTX 660. As long as the GTX 1080 is not being actively used by Linux, you should be able to use it for your Windows VM. I would make sure all the default video options like spice are deleted in Virtual Manager. When you assign your 1080 to the VM and install Windows, you should not have any issues installing games in Windows. For video out, it's best to have two monitors connected (one to each GPU). Optionally, you could use Looking Glass.

  • @THE16THPHANTOM
    @THE16THPHANTOM 4 ปีที่แล้ว

    does passing the GPU mean you have to switch HDMI cable to that GPU if to see windows? in this video i get the impression that he is using some kind of external peripheral to switch to windows . looking for more information before i fully commit to doing this.

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      You could use Looking Glass if you only want to use one monitor. I have a guide for that too.

  • @sirwillypeckerson7674
    @sirwillypeckerson7674 3 ปีที่แล้ว

    Hey man awesome guide, everything seems to have been fine so far up until when I boot the vm, I get stuck in with the yellow texts that ends with "Shell" no matter how much I spam keys on the keyboard when its "press any key" so I cant install Windows at all.

    • @sirwillypeckerson7674
      @sirwillypeckerson7674 3 ปีที่แล้ว

      Okay so I found the problem right after I posted the comment lol but I will keep it up incase someone has the same issue: So I have an Apple wired keyboard and in the VMM settings I had picked the Apple keyboard _Hub_ when I was adding the USB mouse+keyboard for the vm, when I instead chose the other option saying only Apple "keyboard" it worked.

  • @theasdas5729
    @theasdas5729 4 ปีที่แล้ว

    This sounds interesting to do, but will this cause any problems if you have two monitors? And will I be able to use the card while not running the virtual machine?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      The host GPU and all monitors connected to it will work just fine displaying the host desktop. The secondary GPUs will only work with the the VMs. The host won’t be able to use those.

    • @theasdas5729
      @theasdas5729 4 ปีที่แล้ว

      @@PavolElsig That means when I'm done doing that setup, I won't be able to use the GPU with Linux until I disable it?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      @@theasdas5729 Correct, it will be bound to vfio-pci driver and not the Nvidia/AMD driver.

  • @cariocajpn
    @cariocajpn 4 ปีที่แล้ว

    Thanks for sharing this!
    I would love to see Windows as Host and Ubuntu as a guest!
    Currently, I have the host machine running windows 10 and ubuntu as a guest on the VirtualBox.
    On this Ubuntu VM I have the plex running in the Docker and I would like to be able to use Hardware transcoding.
    Any ideas on how to do this?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว +1

      VirtualBox doesn't support GPU/PCIe passthrough. Though, you might be able to do something like that with hyperv.

    • @cariocajpn
      @cariocajpn 4 ปีที่แล้ว

      @@PavolElsig Thank you for your reply! I will take a look!

  • @NickXD
    @NickXD 3 ปีที่แล้ว

    Hi Pavol, first thanks for your guides, iI have a Dell 7567 with GTX1050ti and a i7-7700HQ, i have tried this but i cant make it work appears like " Microsoft Basic DIsplay Adapter in device manager and Error Code 31" i just have a hdmi port in my laptop, but i can't see nothing in external monitor, i have added the iommu and vfio configurations like yours.

  • @Nemton86rus
    @Nemton86rus 2 ปีที่แล้ว

    Please guide how to automatic rebuild kernel every kernel update with some config changes on debian\ubuntu

  • @ekorudiawan
    @ekorudiawan 4 ปีที่แล้ว

    Good tutorial,, btw I have an MSI laptop with intel integrated GPU and NVIDIA GPU. I used Linux mint as host OS, I want to install Windows in KVM and passthrough the Intel GPU. Is it possible to do that with same step in your video?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว +1

      Eko Rudiawan Jamzuri For that look up GVT-g or GVT-d. This guide is more suited for passthrough of dedicated GPUs on desktops.

  • @CelsoJuniorFull
    @CelsoJuniorFull 3 ปีที่แล้ว +1

    After update that grub file my Ubuntu 20.10 doesn't boot anymore. How can I revert it?

    • @CelsoJuniorFull
      @CelsoJuniorFull 3 ปีที่แล้ว +1

      I solved it myself with bootable pendrive and by changing the '/etc/default/grub' and '/boot/grub/grub.cfg' files manually as they were before. I hope this helps someone else.

  • @paradoxpax
    @paradoxpax 3 ปีที่แล้ว

    I`m sorry for bothering you wit what is potentially a stupid question. But can you make a guide for gpu passthrough for linux guest with AMD gpu? Every time i tried doing it i end up with black screen.

  • @krishnasumanth5076
    @krishnasumanth5076 4 ปีที่แล้ว

    HELP!....doing the steps until 5:06 messed up my audio after rebooting....now the audio is jagged(i.e. its messed up like...it lags and the sound is shuffled...kind of like how yoda speaks)....any fix for this?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      I’ve never ran into this issue, so I’m not sure what exactly is causing it. You could just delete the statements that were added to grub and run update-grub. If that does not work, reinstall Ubuntu.

  • @IronFilmProductions
    @IronFilmProductions 4 ปีที่แล้ว

    Hello, this might be a stupid question but I currently have two monitors. Which HDMI/display ports should I be connecting them too? Can they both be connected to one GPU? Thanks! Also I have two discrete GPUs.

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Ideally, the host GPU would be connected to one monitor and the guest GPU to another.

  • @amanwithaplan6187
    @amanwithaplan6187 4 ปีที่แล้ว

    I almost got it up, but one error appeared when I clicked Begin Installation.
    Unable to complete install: 'internal error: qemu unexpectedly closed the monitor: 2020-05-25T23:20:57.130016Z qemu-system-x86_64: -device vfio-pci,host=0000:08:00.0,id=hostdev0,bus=pci.4,addr=0x0: vfio 0000:08:00.0: group 10 is not viable
    Please ensure all devices within the iommu_group are bound to their vfio bus driver.'

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      The device you are trying to assign to your VM needs to be in its own IOMMU group. Your device’s IOMMU group has some other stuff in it. If it’s an RTX card, just add the other two components of the card (serial controller and usb controller).

    • @amanwithaplan6187
      @amanwithaplan6187 4 ปีที่แล้ว

      @@PavolElsig hey thanks for the reply man.
      The card itself is a gt 710 and I am just doing some testing to see if I can get one of these bad boys up and running. When i did the lspci -nn it listed all the drives and stuff. There was only 2 of them for the gt 710. So I added those to list just like how you did and when I setup the virt machine I added both of the pci listings for it.
      I think you explained things perfectly, but do you think I just need to try with a different card in the future?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Make sure you add all 4 parts of the 2080Ti to your VM. Some of the devices with missing drivers might be resolve by downloading virtio drivers.

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      When you pass-through a device to the VM, every device in the same IOMMU group has to be bound to the vfio driver. If it's not, the group is not considered viable and it won't work. I have two videos where I try to go over IOMMU groups and how they work.

    • @FullPayGaming
      @FullPayGaming 4 ปีที่แล้ว

      @@PavolElsig I was first getting his message. Now, I have all 4 added for my 2080ti, but whenever I start my vm, it just hangs, does nothing for some time then give messages "Virtual Machine Manager is not resounding, Force Quit or Wait"options I have. I fully installed windows, waited until after to try and add card. And everytime it hangs/freezes, I have to restart just to get my vm"win10" to show back up in virt manager.
      Plz, any help would be appreciated.

  • @drusso66
    @drusso66 2 ปีที่แล้ว

    Looking to setup MacOS with GPU pass through once I get my second card in next few days, can I use my existing MacOS virtual system from my Virtual manager or do I need to create a new one.

  • @joseluistinajeroguerrero826
    @joseluistinajeroguerrero826 4 ปีที่แล้ว

    You are great man, I'm facing some problems with my installation, I tried to install with Parrot 2020, but following all these steps, when it's time to install windows, after "pressing any key..." message, a window shows saying loading files, and then a black screen with a blinking cursor, so I decided to try installing Ubuntu 20.04, I installed it, and following the same procedure I got the same result, after "loading files" with the progress bar, the screen went black with a blinking cursor in the top left corner, and nothing happens, even after a while, do you have any piece of advice in this issue?, one thing that's different its that my gpu is a NVidia GTX 1660Ti, and it has four elements on the IOMMU group, so I decided to add all of them, one of them is a USB 3.1 controller.
    I have a laptop dell G3 3590, I7 9th gen, 32 GB ram, virtualization enabled, and all the mods required in your video (grub, packages, virt-manager, etc.), the lspci -k command shows the four devices from IOMMU group are controlled by the vfio-pci, I removed all the unnecessary virtual hardware, as you did, and ... pretty much that's it, any help will be really appreciated.

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว +1

      If you’re on a laptop, you got pretty far. There are laptop-specific guides out there and you’ll need to use one of those. Try this one: medium.com/@Leduccc/simple-dgpu-passthrough-on-a-dell-precision-7450-ebe65b2e648e

    • @joseluistinajeroguerrero826
      @joseluistinajeroguerrero826 4 ปีที่แล้ว

      @@PavolElsig Thank you very much, I'll try it and let you know the result.

    • @joseluistinajeroguerrero826
      @joseluistinajeroguerrero826 4 ปีที่แล้ว

      @@PavolElsig Hi again, I'm almost there, by now, the VM is running with windows 10, I installed the NVidia drivers, but I'm stuck at the error 43, apparently it's related to a feature that disables the card if it's under a virtualized environment, so I followed up the instructions mentioned in the link, I edited all the features, but when it comes to start the VM it shows a "can't read the file, permission denied", referring to the SSDT1.dat file, I try to change the owner (root root), the permissions, even 777, the location, home, inside a hidden folder, outside of it, even inside the /etc/libvirt/ folder, that contains the qemu.conf, and inside the /etc/libvirt/qemu/ and /etc/libvirt/qemu/.vfio folders, none of this worked, I know that the qemu.conf file is able to find the file SSDT1.dat because if I change the file name or extension, when I try to run the VM the system responds "file not found", so it's a permissions issue.
      Any ideas?, as always your help is really appreciated.

  • @Morphoidism
    @Morphoidism 4 ปีที่แล้ว

    How do I setup looking glass because I dont want to have to swap around my keyboard and HDMI cables?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      I have a looking glass guide, but it's kind of dated and not very accurate. You could try that or you can follow the quick-start guide on the Looking glass page.

    • @Morphoidism
      @Morphoidism 4 ปีที่แล้ว

      @@PavolElsig ok then

  • @Misna1
    @Misna1 4 ปีที่แล้ว

    Great! Thanks!

  • @siddhantsingh7180
    @siddhantsingh7180 3 ปีที่แล้ว

    can we install nvidiadeveloper drivers in windows guest operating system ?....

  • @The2SidesAngel
    @The2SidesAngel 3 ปีที่แล้ว

    After the grub update and reboot when I use lspci -k my gpu is not using vifo it's still using nouveau and no matter what I do it does not change

    • @nightwalker83
      @nightwalker83 3 ปีที่แล้ว

      I am having the same problem!

  • @nightwalker83
    @nightwalker83 3 ปีที่แล้ว

    I have the same motherboard as you and have followed several guides but when I enable IOMMU I can not access the host! Isn't there an in-build gpu on the motherboard? If so how do I enable it? Thanks!

  • @midgion
    @midgion 3 ปีที่แล้ว

    Can i passthrough my MX250 dGPU on my acer aspire 5 slim a515-54g optmius enabled laptop. I want to try Ubuntu as main OS and windows 10 KVM for gaming. Is it possible? if yes, than please give a guide for it. I use macOS catalina without hardware acceleration because I'cant passthrough my mx250 for hardware acceleration on mac KVM. Any Help would be really appreciated.

  • @zhongzhongclock
    @zhongzhongclock 3 ปีที่แล้ว

    My CPU is Intel's CPU, I couldn't see the ... section, what should I to do? My guest OS(Ubuntu20.4) couldn't use the GPU correctly, what should I do? Thanks in advance!!!

  • @wesp1989
    @wesp1989 4 ปีที่แล้ว

    I followed your steps and when I try to boot my vm I get a black screen for a min then it goes no input displayed on the gpu monitor I passed through
    msi x570 gaming plus
    gt 710
    gtx 1080

  • @skbirdandsiggi10
    @skbirdandsiggi10 2 ปีที่แล้ว

    What happens if I assign the GPU my PC is currently using to the VM? Would I get a blank screen or would it auto default to the second one? Thing is, I want my Windows 10 VM to use the superior GPU, but I can't figure out how to first change which GPU my monitors are using.

  • @johanstrauss8951
    @johanstrauss8951 4 ปีที่แล้ว

    I got Intel-i7-8700K and Nvidia GTX 1660S.
    Question:
    1. In bios, shall I use onboard GPU and set multimonitor or disable multimonitor or set it as PCI?
    2. In what port shall I put my monitor cable in? The onboard or Nvidia? (I only got 1 monitor, but it can handle 2 connection)
    I can't get that manjaro to work (from your other nice video) - So I have install Kubuntu (should'nt matter) and follow your way.
    Right now, after reboot, and I do "lspci -k" its say Nvidia is still using Kernel Driver......
    I really hope you or someone else can help me. I really hate win10 and want to use Gnu/linux instead :)
    - Greetings from Denmark!

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      1. I don’t think multimonitor matters too much, but I would set it to disable. Just make sure you are using the iGPU as the initial boot GPU.
      2. Host (Linux) should be plugged into the onboard GPU. Guest should be plugged into the Nvidia. If you only have one monitor, you can just change the inputs each time you switch. Finally, as long as your primary GPU is the onboard Intel, kernel driver in use should change to vfio-pci.

    • @johanstrauss8951
      @johanstrauss8951 4 ปีที่แล้ว

      @@PavolElsig I got it to work! - So many thanks for your awesome help.
      Only 1 problem left.
      After like 3-5 min running the win10 in kvm, its max out my CPU in kvm.
      So have no other option but force off. (mouse response so slow, take several minutes to move it on screen)
      Do you have any clue whats could be wrong?
      (I'm running both linux and kvm on same SSD, but are about to change that SSD.

  • @titools4980
    @titools4980 4 ปีที่แล้ว

    hello, thx for the videos .i ve spend hours trying to get it working but i don't have any output from my video card .-vtx and vtd are enabled -kernel driver vfio-pci looks ok - iommu groups looks ok - i've modified the xml. i'm using old material i7 3770 and a gtx660. and when i install windows with a virtual videocard i see my gtx660 with code 43 and no output. if you have any idea, I would be pleased

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Titools To get output from the 660 try what I did in the Windows XP guide. Adding those QEMU arguments to virsh might help. I was able to get output from a GTX 580 using those.

    • @titools4980
      @titools4980 4 ปีที่แล้ว

      @@PavolElsig thanks for the answer. I've tried but it doesn't worked with windows10. when i try with debian 10 live i get an image of the logo on the gtx 660 but it crash when i arrived on the desk. if you have an other idea?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Titools You could try attaching a romfile. When you add the pcie device, there is an option to add a romfile (you might have to edit xml). Download some roms for that GPU from techpowerup. To test it out, you might have to disable AppArmor or give libvirt the right permissions. It could work, maybe. One more idea - keep the qxl and spice while doing passthrough until you install the driver. Sometimes it starts working when you install the driver (don’t forget the error 43 mitigations).

    • @titools4980
      @titools4980 4 ปีที่แล้ว

      @@PavolElsig i finally get it with an other graphic card. thank you

  • @Akileswar
    @Akileswar 4 ปีที่แล้ว +1

    I have a ryzen 7 paired with a rtx 2070. Will I be able to do this ? I mean, I don't have 2 GPU.

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      You need 2 GPU's for this guide to work. If you don't want to get another GPU (even some old used cheapo), you could try a single GPU passthrough guide. They are more difficult, but that's what you would need to do in that case.

  • @Mmg123-masked12G
    @Mmg123-masked12G 4 ปีที่แล้ว

    Why not all PCI Devices are recognized on guest?
    I've been trying it on Kubuntu 20.10 and the card has not been recognized properly. Probably I missed something but generally the that version of Kubuntu is really buggy yet. Espacially with audio devices for my laptop MSI Apache GE60 2PL. I will try this pure Ubuntu 20.04 soon

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Laptops tend to be pretty tricky

    • @Mmg123-masked12G
      @Mmg123-masked12G 4 ปีที่แล้ว

      ​@@PavolElsig Thank you for you reply.
      I managed to install Ubuntu 20.04 as a host on the following machine
      - i9-9900K (with Intel® UHD Graphics 630 for host)
      - NZXT Kraken X62
      - Z390 AORUS MASTER (rev. 1.0)
      - MSI GeForce RTX 2070 ARMOR 8GB
      - 2x Samsung Dysk SSD 970 EVO PLUS NVMe M.2 2280 500GB (one for host one for guest passthrough)
      As for those not recognized PCI Devices:
      When I wanted to get AORUS motherboard features on guest I realized that there are emulated chipsets which Windows may not recognize. After a little research I found that there are actually needed VirtIO drivers for guest. Here are more details -> www.linux-kvm.org/page/WindowsGuestDrivers/Download_Drivers. However I installed it on guest, Windows complains about those drivers with error 52.
      I also used CPU - host-passthrough option, and when I run stress test on CPU the cooler fan is not starting for some reason. I suspect it is a matter of configuration GKraken... for further investigation.
      For now works well enough.
      Thank you for your video that let me get started

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      @@Mmg123-masked12G Just one thing - make sure the VM actually has however many cores you want it to have. Change the CPU topology to having that many cores and not sockets. It might improve the performance.

  • @SunilPatil-oq2jc
    @SunilPatil-oq2jc 3 ปีที่แล้ว

    I have installed MacOS catalina using QEMU and have Nvidia GTX 1060 Ti model ? Can i make gpu passthrough fro Macos from Nvidia card ? or May be integrated Intel GPU ?

  • @nguyentrankhanh565
    @nguyentrankhanh565 3 ปีที่แล้ว

    I have a bug when using KVM "libvirt.libvirtError: internal error: Unknown PCI header type '127' for device ". What is my problem?

    • @rileychometa1541
      @rileychometa1541 3 ปีที่แล้ว

      I'm not sure if you found the answer or not but for anyone in the future. If this happened after a vm reboot, like it did for me, then its because the host thinks the vm is still using that device so when the vm tries to grab it on boot it throws that error. Only way to fix it that I found is to reboot the host machine anytime the vm has to reboot.

  • @WenLV
    @WenLV 4 ปีที่แล้ว

    well i have problem, after i modify grub and update groub i reboot pc but linux not run, black screen and nothing happend. i see hdd work and do something but linux not boot.where is the problem?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Chances are the video output is on the other GPU. That’s usually issue.

  • @Mmg123-masked12G
    @Mmg123-masked12G 4 ปีที่แล้ว

    Will it go on Ubuntu live server, without installing any desktop environment on host?
    I've got powerful standalone machine where I would like to run the ubuntu server with passing devices through and than use a laptop as a terminal to access it remotely with possibility of switching between os types remotely. Ubuntu desktop version on host machine will work but wondering if it is really needed.

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว +1

      You don't have to use the desktop version. Ubuntu server should work too.

  • @nirajkhatiwada6696
    @nirajkhatiwada6696 4 ปีที่แล้ว

    Hey what do I have to get the nvidia back to normal kernel settings? I'm done with the passthrough.

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Niraj Khatiwada Delete the vfio-pci.ids in grub and run update-grub.

    • @nirajkhatiwada6696
      @nirajkhatiwada6696 4 ปีที่แล้ว

      @@PavolElsig Thanks you are awesome.

  • @ChmodmasX
    @ChmodmasX 2 ปีที่แล้ว

    work on single gpu configuration¿? and single monitor.

  • @TVPInterpolation
    @TVPInterpolation 3 ปีที่แล้ว

    Is the graphics card being able to be used on the host whenever the vm is off?

  • @karrorri1097
    @karrorri1097 3 ปีที่แล้ว

    So I have AMD GPU and CPU with integrated graphics. Will my ubuntu be able to use AMD GPU after the passthrough?

  • @sudoadmin66
    @sudoadmin66 4 ปีที่แล้ว

    I got to the update grub and restart and it wouldn't boot, said grub was configured to not load guest editions and hung there, then on restart loaded nothing. Had to boot into recovery and update grub to get back into Ubuntu, the edited grub file is still there, but the device drivers are not vfio-pci. If I update grub again with the modified files it fails to start again.

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      How many GPUs do you have?

    • @sudoadmin66
      @sudoadmin66 4 ปีที่แล้ว

      @@PavolElsig 2, one intel integrated and an rtx 2060. Update though I got it to work, I had to specify in the bios to use integrated graphics by default. But the driver still said it was nvidia, so passthrough wasn't working. I have super outdated hardware, could be a support issue. I have vt-d but nowhere could I find an option for vt-x

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      @@sudoadmin66 If you have vt-d, you should have vt-x (it might be called something else). Run: find /sys/kernel/iommu_groups/ -type l and see whether you get any output (if it's working, you should get a list of your devices).

    • @sudoadmin66
      @sudoadmin66 4 ปีที่แล้ว

      @@PavolElsig I'll try that out tomorrow. Thank you!

    • @sudoadmin66
      @sudoadmin66 4 ปีที่แล้ว

      @@PavolElsig i get no result when i run that command

  • @NightfurYMKD
    @NightfurYMKD 4 ปีที่แล้ว

    The first step is for updating the GPU driver ? in ubuntu 20.04 im new with linux so can you answer me how to update the driver of my laptop on ubuntu 20.04 ?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      You don't have to update Linux GPU driver. If you still want to do that, just type update into the desktop search bar and click on the "Software & Updates" utility. Using that utility is the easiest way of doing it.

    • @NightfurYMKD
      @NightfurYMKD 4 ปีที่แล้ว

      ​@@PavolElsig i know this but is bugged some way bcks no additional drivers avalible is saying evry time i try to do some udates i menage to fix the wifi driver but i cant do for the GPU and for the touchpad ...

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      You could just download the driver from Nvidia and install it manually. Try this guide: www.cyberciti.biz/faq/ubuntu-linux-install-nvidia-driver-latest-proprietary-driver/

  • @nirajkhatiwada6696
    @nirajkhatiwada6696 4 ปีที่แล้ว

    Upon lspci -nn, my Nvidia card is listed as 3D controller instead of VGA. Is it the same?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Niraj Khatiwada Should be fine

    • @nirajkhatiwada6696
      @nirajkhatiwada6696 4 ปีที่แล้ว

      @@PavolElsig Thank you it went well. But I have one question. I already have macOS catalina installed. How do I add the vga to that. Right now it has only 3mb graphic memory?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Niraj Khatiwada You’d add it in Virtual Machine Manager by adding a PCIe host device (or whatever it’s called). You might need to remove the default emulated GPU and related spice.

  • @crypteknecron9579
    @crypteknecron9579 4 ปีที่แล้ว

    thank you very much really

  • @OSH0891
    @OSH0891 4 ปีที่แล้ว

    Hi Pavol. I did everything like you described, but still I can't rid nouveau driver from NVIDIA. I tried blacklist it, but then I don't see line "kernel driver in use:" anymore. So i deleted the blacklist file and the line "kernel drive in use" appears, but with nouveau driver. I set up as primary GPU internal GPU (Intel HD graphics). Nothing helps.
    My specs:
    MOBO: ASUS Z-270P Prime
    GFX: Intel HD Graphics / Aorus GTX 1060.
    Or maybe I should install my old Radeon X1550 and passthrough it?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      When you run: find /sys/kernel/iommu_groups -type l what do you get? If you don’t get anything, vt-d might be disabled in BIOS.

    • @OSH0891
      @OSH0891 4 ปีที่แล้ว

      @@PavolElsig I get:
      /sys/kernel/iommu_groups/7/devices/0000:00:1c.0
      /sys/kernel/iommu_groups/5/devices/0000:00:17.0
      /sys/kernel/iommu_groups/3/devices/0000:00:14.0
      /sys/kernel/iommu_groups/11/devices/0000:02:00.0
      /sys/kernel/iommu_groups/1/devices/0000:00:01.0
      /sys/kernel/iommu_groups/1/devices/0000:01:00.0
      /sys/kernel/iommu_groups/1/devices/0000:01:00.1
      /sys/kernel/iommu_groups/8/devices/0000:00:1c.7
      /sys/kernel/iommu_groups/6/devices/0000:00:1b.0
      /sys/kernel/iommu_groups/4/devices/0000:00:16.0
      /sys/kernel/iommu_groups/12/devices/0000:04:00.0
      /sys/kernel/iommu_groups/2/devices/0000:00:02.0
      /sys/kernel/iommu_groups/10/devices/0000:00:1f.2
      /sys/kernel/iommu_groups/10/devices/0000:00:1f.0
      /sys/kernel/iommu_groups/10/devices/0000:00:1f.3
      /sys/kernel/iommu_groups/10/devices/0000:00:1f.4
      /sys/kernel/iommu_groups/0/devices/0000:00:00.0
      /sys/kernel/iommu_groups/9/devices/0000:00:1d.0
      Nevermind, after restart I see vfio-pci. Magic. :D

  • @baesikstreams5431
    @baesikstreams5431 4 ปีที่แล้ว

    Hey if i wanted to change gpu after i have it set up, what would i have to do? Can i just swap it and be okay or do i have to start over, i want to switch from 1050 to a 1660

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว +1

      Depends on which guide you are using. Some of them are automatic, like the script for Ubuntu 18.04, Fedora and Manjaro. You just swap the card and it should work. You might have to uninstall passthrough helper for all the other OSes and reinstall it.

    • @baesikstreams5431
      @baesikstreams5431 4 ปีที่แล้ว

      Pavol Elsig ingot it to work, can you make a video on how to hide the kvm from showing as virtual machine? Or explain what i need to change so it’s not detected as kvm?

  • @tegr1dy
    @tegr1dy 4 ปีที่แล้ว

    Hey mate! My GPU Kernels did not upgrade. They stuck at "nouveau" instead of vfio-pci. Any help?
    If Im trying to install a win10 vm it says "host didnt support passthrough of host PCI device".

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว +1

      Make sure vt-d is on in BIOS. When you run find /sys/kernel/iommu_groups -type l you should get a list of all IOMMU groups. Also make sure that the Nvidia card is not being used by the host.

    • @tegr1dy
      @tegr1dy 4 ปีที่แล้ว

      @@PavolElsig it worked! thx!!!

  • @nojokerxd8024
    @nojokerxd8024 3 ปีที่แล้ว

    host dosent support passthrough of host PCI devices i use linux mint can you help me?

  • @eizzo228
    @eizzo228 3 ปีที่แล้ว

    hey I've done all the steps good and at the end when i start windows 10 it gives me a black screen with a blinking typing cursor at the top left do you know how to fix this?

    • @rileychometa1541
      @rileychometa1541 3 ปีที่แล้ว

      That happened to me too. how I fixed it is I remade the vm but didn't delete those 3 display devices that he deleted. So the only modifications I made were adding my pci devices, making the first boot device to be the cdrom but leaving the hdd checked as the second option, and then if you want to pass through usb ports like he did you can do that too but i didnt have to for my purposes.

  • @OSH0891
    @OSH0891 4 ปีที่แล้ว

    Pavol, passthrough works (at least I hadn't got any errors), but when I start virtual machine I see UEFI Shell. If I type "exit" I see a boot manager, but everything is set correctly (hardddisk should boot as first). When I try create a new VM, and set CDROM as boot device (virtual CD with image of Win XP), I see the same shell. When I choose I440FX as chipset and BIOS as Firmware, I see black screen with cursor. What I'm doing wrong?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      OSH0891 I don’t think that Windows XP supports UEFI. You can download Windows 10 from Microsoft and that works pretty well. As far as BIOS goes, try attaching a romfile to that passed-through GPU and see if that helps. In some cases, you might need to install without passthrough and then add the GPU and install the driver.

    • @OSH0891
      @OSH0891 4 ปีที่แล้ว

      @@PavolElsig Hmm. That's bad. I want to passthrough for Windows XP, because I need 3D acceleration for old games. Is this UEFI necessary to boot? And how attach romfile?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      OSH0891 You can use BIOS. You just need to do some of those things to get passthrough to work. Additionally, if you are using Intel GPU for the host, you might need to install the VGA arbiter kernel patch.

    • @OSH0891
      @OSH0891 4 ปีที่แล้ว

      ​@@PavolElsig I'm really sorry, I bother you still, but I'm totally new in Ubuntu and QEMU. I found this site: wiki.debian.org/VGAPassthrough. Here is written, first time before OS install I shouldn't change any default setup (don't remove SPICE, QXL and so on), but install OS, then reboot, then install drivers for passthroughed GFX. Because there's no drivers for GTX 1060 under Windows XP, I have to change my plan and install my old Radeon X1550 and passthrough it. Or I'm wrong? When I install XP, then Reboot and remove all emulated graphics, and then start booting, VM hangs...
      EDIT: I found drivers for XP, so I check, it will works or not...

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      OSH0891 You can do follow their order of doing things. There is nothing wrong with that. You might need to include the romfile for that GPU.

  • @rafaelscheffer106
    @rafaelscheffer106 4 ปีที่แล้ว

    Wow, that is really easy, I wish it was that easy using a laptop.

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว +2

      Same here, I would love to have a laptop with working GPU passthrough

    • @joelmaminski
      @joelmaminski 4 ปีที่แล้ว

      Is it hard using a laptop or what? and why?

  • @ramimiah7720
    @ramimiah7720 4 ปีที่แล้ว

    I keep getting an error whenever I try to update grub "device-mapper: reload ioctl on osprober-linux-nvme0n1p7 failed: Device or resource busy
    Command failed.
    done"

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Does grub actually update? Reboot it and see whether the changes are there. If the changes are there, you can ignore it.

  • @userjff182
    @userjff182 3 ปีที่แล้ว

    How about using this as the same tutorial for Garuda Linux work as well or no?

  • @ethanrushbrook3314
    @ethanrushbrook3314 4 ปีที่แล้ว

    Hi! I've followed this carefully and both my audio and VGA PCI devices are using vfio-pci, but I just get a black screen when I try to boot. If I have the default windowed output, Windows detects the GPU (sort of) and attempts to install the drivers but they just cause a BSoD. Any ideas?
    Edit: I'm using a 1070Ti for my Ubuntu and an HD 8460 for my VM. CPU is 6700K and yes, my IOMMU groups are correctly seperated. The GPU devices and them only are in group 15.

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      I think it’s the Radeon that’s causing it. You could try to swap the two GPUs and see whether the Nvidia card works. (You don’t have to reinstall the script) If you don’t want rearrange the GPUs try putting the Radeon behind a pcie-root-port like this:


      Source: libvirt.org/pci-hotplug.html

    • @ethanrushbrook3314
      @ethanrushbrook3314 4 ปีที่แล้ว

      @@PavolElsig I tried using my NVIdia GPU but had the same issue. I even flashed a known working modified BIOS just to be sure (yes, I know what I'm donig, just don't use Linux for VMs much)

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      @@ethanrushbrook3314 I don’t know what exactly is causing the issue. What would happen if you tried to install Windows without the qxl and spice items? Do you get output on your monitor? Are you able to install the driver that way?

    • @ethanrushbrook3314
      @ethanrushbrook3314 4 ปีที่แล้ว

      @@PavolElsig No. I tried with and without those attached to the VM. Theres something wrong in hardware or firmware thats stopping this from working, because any drivers I try to install within the VM are either missing something or are unable to interact with the GPU...

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      @@ethanrushbrook3314 You’re probably right. It’s a pretty rare issue though, so I’m not really sure what would help in that situation.

  • @uframer
    @uframer 4 ปีที่แล้ว

    Why can't the two GPUs are the same model? I have two 1080Ti and want to pass through one to VM.

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      This guide relied on pci ids of the GPUs for passthrough. If your primary GPU has the same pci id as the GPU you are trying to assign to your VM, you might have issues. My guides for Manjaro, Fedora, and earlier versions of Ubuntu don’t use this method and should work even with identical GPUs.

    • @spyro3635
      @spyro3635 4 ปีที่แล้ว

      Iirc level1linux had video on how to do it with same gpus

  • @chamaldezilva
    @chamaldezilva 4 ปีที่แล้ว

    after I run lspci -k it shows me "Kernel driver in use: radeon" not from vfio-pci. please how can I fix this?

    • @chamaldezilva
      @chamaldezilva 4 ปีที่แล้ว

      @Cloud Script what is your CPU model?

    • @chamaldezilva
      @chamaldezilva 4 ปีที่แล้ว

      @Cloud Script it seems you have both VT-x and VT-d. it's pretty good. But in my case I found I have only VT-x and No VT-d with my CPU.

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Make sure you’re using the iGPU for Linux. The script won’t passthrough your dedicated GPU if it’s in use by the host.

  • @Lucatoni22
    @Lucatoni22 4 ปีที่แล้ว

    Hi There followed the exact steps but when i check it shows -
    0f:00.0 VGA compatible controller: NVIDIA Corporation TU106 [GeForce RTX 2060 SUPER] (rev a1)
    Subsystem: eVga.com. Corp. TU106 [GeForce RTX 2060 SUPER]
    Kernel driver in use: nouveau
    Kernel modules: nvidiafb, nouveau
    0f:00.1 Audio device: NVIDIA Corporation TU106 High Definition Audio Controller (rev a1)
    Subsystem: eVga.com. Corp. TU106 High Definition Audio Controller
    Kernel driver in use: snd_hda_intel
    Kernel modules: snd_hda_intel
    not the vfio pci :(

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Double check “lspci -nn” and “nano /etc/default/grub”. Make sure the ids are the same and the line reads vfio-pci.ids=“...”. If you find a mistake, run update-grub after correcting it.

    • @Lucatoni22
      @Lucatoni22 4 ปีที่แล้ว

      @@PavolElsig thanks bro i tried this it didnt work still - can i pay you to do it remotly for me

  • @alexanderstallinger8915
    @alexanderstallinger8915 4 ปีที่แล้ว

    Hello, Iǘe followed your video step by step anf everythings went like in the video but my kernel drivers are still nvidia snd_hda_intel. amd ryzen 5 and geforce gtx 1050ti. can u say ehat i have done wrong?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Do you have two GPUs? Only secondary GPUs should be bound to vfio-pci. Also, make sure you have SVM and IOMMU enabled in BIOS.

  • @andrewrcustoms260
    @andrewrcustoms260 4 ปีที่แล้ว

    Is this almost the same as flashing the GPU? But I’m virtual machine?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      You’re basically just using a placeholder driver for the GPU. You don’t want the host to control it. Then you just assign the GPU to the guest and install the actual driver in the guest OS.

  • @emperadormachacasaurio3267
    @emperadormachacasaurio3267 4 ปีที่แล้ว

    Did all the steps exactly like this but when the VM launch the output is on the VM windows doesnt show on the other monitor nothing

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      If you only get output in the virt manager window. You might need to delete all the virtual GPUs, spice and all the associated parts from virt manager.

    • @emperadormachacasaurio3267
      @emperadormachacasaurio3267 4 ปีที่แล้ว

      @@PavolElsig Now also dont have output in the virt manager but keyboard caps light and bloq num seems to work maybe some problem with iommu groups?
      IOMMU Group 1:
      00:01.0 PCI bridge [0604]: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) [8086:1901] (rev 07)
      01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GM206 [GeForce GTX 960] [10de:1401] (rev a1)
      01:00.1 Audio device [0403]: NVIDIA Corporation GM206 High Definition Audio Controller [10de:0fba] (rev a1)
      Im only passing VGA y and VGA Audio since dont have the option to pass the bridge

  • @Viktir
    @Viktir 4 ปีที่แล้ว

    I have an integrated graphics card and a 1050 Ti, I use the 1050 Ti on linux with prime profile on demand, so that when I want to run a heavier app/game, I can do that. I want to be able to use the 1050 Ti on linux and on VM. Is that possible with this method? If not, may you tell me which one should I use?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      If it’s a laptop, this probably won’t work. Otherwise, the host would have to use the iGPU and the guest would use the 1050Ti. Another option is using gvt-g. That should work even on a laptop. The performance is not great because it uses the iGPU. I have an Ubuntu guide for gvt-g too.

    • @Viktir
      @Viktir 4 ปีที่แล้ว

      It seems gvt-g is available only for the intel iGPU, is it possible to do the same for amd iGPU?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      @@Viktir Intel only

    • @Viktir
      @Viktir 4 ปีที่แล้ว

      Alright, thank you.

  • @hengunmok
    @hengunmok 3 ปีที่แล้ว

    why black screen after cd input key screen
    no export tiano logo

  • @racoononinternet2132
    @racoononinternet2132 4 ปีที่แล้ว

    By exactly the same you mean the same model right? You don't mean the same brand?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      They can't have the same id (as in lspci -nn).

  • @kendarr
    @kendarr 3 ปีที่แล้ว

    Hey i have a question, whenver the VM is off will my linux still use the more powerfull GPU? i work with 3D stuff and i need my good GPU to be used by linux.

    • @kevinbelarde5946
      @kevinbelarde5946 3 ปีที่แล้ว

      No, you unbind the gpu from linux with this. The gpu is only used for the vm. You would have to revert the changes in order to use the gpu with your host device

    • @kendarr
      @kendarr 3 ปีที่แล้ว

      @@kevinbelarde5946 oof, so no "easy" way of making it go back and forth? That tottaly halts my plans

    • @kevinbelarde5946
      @kevinbelarde5946 3 ปีที่แล้ว

      @@kendarr its really just editing grub. A lot of rebooting, you could make a script to edit grub for you.

    • @kendarr
      @kendarr 3 ปีที่แล้ว

      @@kevinbelarde5946 do I need to reboot every time I want to change? If so it's better to just have dual boot since I need to buy another gpu

    • @kevinbelarde5946
      @kevinbelarde5946 3 ปีที่แล้ว

      @@kendarr im pretty sure yeah you do.

  • @quintonboyle3037
    @quintonboyle3037 2 ปีที่แล้ว

    All I get is "Graphical console not configured for guest" I have my 1050 for quest and my host is using 3080

  • @noticiasinmundicias
    @noticiasinmundicias 9 หลายเดือนก่อน

    Is there a way to do this with 2 cards that have the same name? They both share the ID on lspci. There has to be a way lol

    • @telekeet
      @telekeet 7 หลายเดือนก่อน

      sell the other GPU and buy a better one honestly

  • @vovamorlino4573
    @vovamorlino4573 4 ปีที่แล้ว

    If I pass my GPU, I won't be able to use it until reboot host/shutdown vm/ or removing passthrough?

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      You need two GPUs. The first one (can be the on-board Intel) is used by the host/linux and it stays that way. The second one is used by you VMs. The host won’t be able to use that one.

  • @lumac1232
    @lumac1232 4 ปีที่แล้ว

    Hello, I am sorry to be annoying, but I am new to this and I would like to install with a single monitor, I already made it so that my nvidia gpu is vfio and my igpu intel as host, but when trying to install windows it does not let me continue. my monitor cable is connected to my igpu intel. can you help me use Looking Glass? Thank you

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Lumac Your best bet is to just move the cable from the iGPU to the the Nvidia GPU. If you have two cables, use them, and just switch the inputs. At some point I’ll probably revisit Looking Glass and make another video about it.

    • @lumac1232
      @lumac1232 4 ปีที่แล้ว

      thank you friend, that video eagerly awaiting

  • @TheIllusiveWorks
    @TheIllusiveWorks 4 ปีที่แล้ว

    I do not see anything for audio? only address for nvidia card and pci link

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Revan What GPU do you have?

    • @TheIllusiveWorks
      @TheIllusiveWorks 4 ปีที่แล้ว +1

      @@PavolElsig Gtx 1070 but I managed to solve that problem and I'll let you know if I run into any other, the solution for anybody who has the same problem that I had by the way is to remove the GTX 1070 or whatever video card you have so hybrid drivers for power saving don't install, you need a stand alone driver for your igpu or first GPU and then a second stand-alone driver for the pass through gpu.

    • @TheIllusiveWorks
      @TheIllusiveWorks 4 ปีที่แล้ว

      I'd also like to add I just plugged in the GTX 1070 and installed no drivers for it and let ububtu automatically happen, i didn't download any drivers but installed each gpu individually to avoid nvidia x power saving drivers and kernel edits that were causing me many issues, I tried like 15 different commands with no success until I decided to wipe and reinstall the OS with only the non pass through gpu present.

    • @TheIllusiveWorks
      @TheIllusiveWorks 4 ปีที่แล้ว

      @@PavolElsig ok new problem after i check to see if vfio is in use for gtx card with lspci -k, the gpu is using vfio-pci but the audio is using snd_hda_intel

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      That shouldn't matter. Once you add it with Virtual Machine Manager, it will be using vfio-pci.

  • @dr4co320
    @dr4co320 4 ปีที่แล้ว

    Hey, I've got a problem with my GPU I passed through. In Windows the Graphics card has an issue and stopped with code 43. I only can see Windows through Looking Glass and not on my second Monitor. I hope you can help me :)

    • @dr4co320
      @dr4co320 4 ปีที่แล้ว

      my graphics card is the Radeon RX580 Series

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว +1

      @@dr4co320 Did it ever work when passed through? I had this issue with an AMD card a couple times. I usually fix it by putting it on a root port in virsh. libvirt.org/pci-hotplug.html

    • @dr4co320
      @dr4co320 4 ปีที่แล้ว

      @@PavolElsig that fixed it, thank you!

  • @cristianmunteanu6062
    @cristianmunteanu6062 4 ปีที่แล้ว

    After i put the intel_iommu=on.... line i reboot and i get into a login loop. Reinstalled ubuntu 4 times, same thing happens everytime after that line change

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Is it just intel_iommu=on? It locks up with that alone? Even when you don’t do vfio-pci.ids=? You could try booting into different runlevel. Just append that line with 3, to get to runlevel 3. Or try appending it with nomodeset.

    • @cristianmunteanu6062
      @cristianmunteanu6062 4 ปีที่แล้ว

      @@PavolElsig the vfio-pci.ids makes it go into the loop.

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      @@cristianmunteanu6062 Make sure that the GPU is not being used by linux for display output. A secondary GPU can be bound to vfio-pci. If you try to bind the primary GPU, you won't get display output. What hardware are you using?

    • @cristianmunteanu6062
      @cristianmunteanu6062 4 ปีที่แล้ว

      @@PavolElsig iGPU from an i7 8700k and a gtx 1080

    • @PavolElsig
      @PavolElsig  4 ปีที่แล้ว

      Cristian Munteanu That should work fine. As long as Linux isn’t trying to use that GPU. Make sure your iGPU is the one outputting video when you’re in Linux. You might have to adjust that in BIOS and make that the primary one.