How To USE QEMU KVM GPU Passthrough in Linux Using VFIO || GPU Sharing With Virtual Machine

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

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

  • @Akaterial
    @Akaterial 8 หลายเดือนก่อน +26

    This is by far the simplest working instructions for GPU passthrough with Qemu KVM. I tried three other step-by-step tutorials before this and they all failed. This one worked perfectly!

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

      Likewise, I spent a few days trying to make it work including searching via ChatGPT to no avail.
      I am thankful for these instructions, simple and found where my mistakes where, hint it was in GPU isolation.

  • @fmendezy
    @fmendezy 9 หลายเดือนก่อน +3

    hello i apply all steps but in verify gpu in 5:08 show: persist the nvidia drivers
    Subsystem: Micro-Star International Co., Ltd. [MSI] GP106M [GeForce GTX 1060 Mobile]
    Kernel driver in use: nouveau
    Kernel modules: nvidiafb, nouveau
    no vfio-pci, how fix this?

    • @ApexProBoosting
      @ApexProBoosting 8 หลายเดือนก่อน +5

      simple fix just put vfio things to here /etc/initramfs-tools/modules command should be "sudo nano /etc/initramfs-tools/modules " and that add those
      vfio
      vfio_iommu_type1
      vfio_pci
      vfio_virqfd
      after that Update initramfs using this command and reboot your pc
      sudo update-initramfs -c -k $(uname -r)

    • @Ehren1337
      @Ehren1337 8 หลายเดือนก่อน +1

      use nvidia proprietary driver. closed source, not open. nouveau is crap. just make sure its proprietary because others dont work for gtx cards.

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

      @@ApexProBoosting THIS! This is what finally got it to work for me! I've gone through several tutorials and finally it's working! Thank you!!

  • @ShinerBockGirlz
    @ShinerBockGirlz 3 หลายเดือนก่อน +1

    what do you put if you have an amd card specifically 7900? @4:16 Would I just put softdep amd pre:vfio-pci ?

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

    Brilliant tutorial! Best one I found and combined with some info on systemd-boot, ACS patching, linux-jcore etc I finally succeeded in setting up GPU Passthrough on my Arch Hyprland system!! Now for Looking Glass! Thanks for your help!

  • @callmesteve7874
    @callmesteve7874 11 หลายเดือนก่อน +5

    On 4:15 you prevent NVIDIA proprietary drivers from installing. I have AMD GPU - is there special syntax for that?
    Also one more question: let's pretend I isolated my second AMD GPU and passed it to VM. But still I want to play some games on my Linux OS. What are steps to un-isolate the hardware and bring it back to Linux?

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

      Just undo what the files you edited and run update-grub again.

    • @robertwermis2971
      @robertwermis2971 5 หลายเดือนก่อน

      to stop the AMD card from loading? use softdep radeon pre: vfio-pci and then under that softdep amdgpu pre: vfio-pci, that stopped my card from loading but my nvida is my second card and it loaded at the beginning I could see my kde plasma wheel then zippo no video at all on either card, the battle continues.

  • @andynl6443
    @andynl6443 ปีที่แล้ว +17

    Again, great! This was Linux to Windows.
    Suggest do a follow-up for Linux to Linux

    • @kskroyaltech
      @kskroyaltech  ปีที่แล้ว +8

      Noted

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

      Would love to see Linux to Linux as well *crosses fingers*@@kskroyaltech

    • @Ehren1337
      @Ehren1337 8 หลายเดือนก่อน +1

      @@reality_hurtz just do the same thing you installed your linux on pc

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

    why my nvidia is showed as "3d controller" instead of VGA

  • @Jommy161
    @Jommy161 10 หลายเดือนก่อน +12

    If anyone has issues booting after the first step. Boot into recovery mode and "nano /etc/default/grub". Then delete the line that you modified before and save the file. After that run "update-grub" and you should be able to reboot. 👍

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

      i also found taking the gpu out of the pc allows it to boot again, though i am not exactly sure why it didnt work, anyone get this working with a 3090 on debian 12?

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

      @@oliviaballsdeet9149 for me switching to the open source nvidia driver made it work

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

      Thank you! I thought my life was over when it wouldn't boot anymore. 😒

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

      This happens if the Nvidia GPU is detected as primary, you can change this within the UEFI/BIOS menu.

    • @Jommy161
      @Jommy161 7 หลายเดือนก่อน +2

      @@512Bytes for me it was something with the proprietary nvidia driver being weird. It caused like a 5 minute long boot time for me and i had to switch to nouveau.

  • @TangledMatyi
    @TangledMatyi 11 หลายเดือนก่อน +9

    When doing this, you mess with something in the grub. Will this work if I'm also dualbooting at the same time? Just because I followed an outdated, but similar tutorial, and after doing the first step and rebooting my linux wouldn't boot.

    • @512Bytes
      @512Bytes 7 หลายเดือนก่อน +2

      These are kernel parameters which will not apply to Windows, only to Linux while booting.

  • @MadaraUchiha12321
    @MadaraUchiha12321 11 หลายเดือนก่อน +4

    Awesome man , excellent, thanks for this video and you earned my subscribe 🔥

    • @kskroyaltech
      @kskroyaltech  11 หลายเดือนก่อน

      Thank you very much

  • @Omlet221
    @Omlet221 2 วันที่ผ่านมา

    Is it the same for systemd boot? But instead change the entry conf at /boot/loader/entries and put the options in same line as options with the root partition?

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

    After running the command "sudo update-initramfs -c -k $(uname -r)" it doesn't give me anything except "pdate-initramfs: Generating /boot/initrd.img-5.15.0-88-generic" and nothing else. What should I do?

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

      I've been trying to follow every type of GitHub project and every tutorial trying to pass through a GPU to a virtual machine, but I had no luck. Every time I think it will work, I always get some type of error that I can't figure out, or I never properly pass through the GPU even though I thought I did. I just want to be successful for once.

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

      This command only works on debian based distros.
      initially I had the same issue like yours and I gave up. I read some forums and I found that command and it worked for me. Initramfs is the crucial part It has to be updated .
      Also mind you that, on some debian based distros after running that command you may not see any output.
      Anyway, Can you share your log here what's an output after running the command ?!

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

      I was wondering if you have Discord, so I could help you through there if possible. I'm new to Linux, and I want to learn what I'm doing wrong and correct it. I'm not sure how to show the output because all it gave me was what I said before.

  • @__Robin_______8765
    @__Robin_______8765 6 หลายเดือนก่อน +9

    there's a typo at 4:25, Arch linux users should type
    sudo mkinitcpio -p linux

    • @GoatedXaviersobased
      @GoatedXaviersobased 6 หลายเดือนก่อน

      Technically not a typo he just didnt clarify that

    • @xeryl_
      @xeryl_ 2 หลายเดือนก่อน +3

      ur a legend also classic arch user is a furry xd thx for the help tho ur the man

    • @Omlet221
      @Omlet221 2 วันที่ผ่านมา

      Do they not do same thing?

  • @camiller1988
    @camiller1988 11 หลายเดือนก่อน +3

    How I can do gpupassthroght with only a dedicated gpu radeon?
    I no read you advitesment and video turned off when i run the virtual machine. :(

    • @yasirrakhurrafat1142
      @yasirrakhurrafat1142 4 หลายเดือนก่อน

      Yeah.. bro didn't really provide vfio/sr-iov kinda solution.
      Bro essentially probably just provided entire pci-e passthrough.
      Which.. ain't very interestin.
      Neither as useful as true definition vfio/sr-iov.
      Btw vfio/sr-iov is supposed to let you use the device between the host (baremetal) and vm simultaneously.

  • @Stefan-s8t
    @Stefan-s8t 2 หลายเดือนก่อน

    Hi, any idea why
    sudo update-initramfs -c -k $(uname -r)
    command would give me
    update-initramfs: Generating /boot/initrd.img-6.11.5-amd64
    and then nothing
    lspci -k | grep -E "vfio-pci|NVIDIA"
    07:00.0 VGA compatible controller: NVIDIA Corporation AD107 [GeForce RTX 4060] (rev a1)
    07:00.1 Audio device: NVIDIA Corporation AD107 High Definition Audio Controller (rev a1)
    when i pass through GPU in Qemu vm won't start at all I have to reboot my host
    No Idea how to proceed. Please help

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

      Check VFIO Driver Binding
      lspci -nnv | grep -i vfio
      If your GPU isn't bound to vfio-pci, you need to ensure it's correctly configured.

    • @placeanorder
      @placeanorder 23 วันที่ผ่านมา

      @@kskroyaltech Same issue for me, nothing will be returned when doing sudo update-initramfs -c -k $(uname -r)

  • @paulbaquie
    @paulbaquie 4 หลายเดือนก่อน

    Huge thanks. You're the one on the web who resolve the mouse f***ing problem!!

    • @kskroyaltech
      @kskroyaltech  4 หลายเดือนก่อน

      you are welcome. yeah bro mouse issues is too annoying... Damn I researched a lot while finding a fix....

    • @smokey_guerra
      @smokey_guerra 4 หลายเดือนก่อน

      @@kskroyaltechmine doenst work even if I unninstal that, is there something else?

  • @rickee2019
    @rickee2019 5 หลายเดือนก่อน +1

    I tried this tutorial but I wasn't able to bing the vfio-pci to the nvidia hardware, and mostly because, the modprobe described in the video expects to have the proprietary Nvidia drivers installed. If you are not using it, you have to changed it from `nvidia` to `drm` instead.
    My setup:
    - AMD with iGPU as host
    - With Nvidia card to guest OS

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

    I have a Ryzen 7 7700 and I have an NVIDIA 2060, I wanted to use the nvidia por linux and the integrated AMD for WIndows but it seems not to work. The AMD does seem to passthrough but windows doesn't recognize it as an AMD it just shows the devices as PCI\x

  • @deneb80
    @deneb80 7 หลายเดือนก่อน +1

    As far as I can understand, having both GPUs from AMD (7600xt + 7800x3d's iGPU) I can choose what to use as passthrough but when it comes to disable the Linux drivers in the kernel Linux (host) the Linux host will be withouth GPU acceleration. Am I wrong?

  • @ZugTheDragon
    @ZugTheDragon 6 หลายเดือนก่อน

    4:16
    What to do if I'm using an old ATI card, and not NVIDIA?

    • @kskroyaltech
      @kskroyaltech  6 หลายเดือนก่อน

      similar process try to isolate the HOST Discrete GPU

    • @JohnStonexDj
      @JohnStonexDj 8 วันที่ผ่านมา

      @@kskroyaltech but what should I do, when I have a AMD IGPU and a RX6600XT ?
      I want to passthrough the AMD IGPU

  • @Omlet221
    @Omlet221 2 วันที่ผ่านมา

    Is the window from the vm on your host os not being rendered with the virtual gpu? Is setup same with desktop?

  • @Nimitz_oceo
    @Nimitz_oceo 10 หลายเดือนก่อน +1

    Hey man… unfortunately one didn’t work. I have a beefy laptop with an NVIDIA quadro card inside but unfortunately it’s says: host doesn’t support pass through pci devices

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

      I have the exact same issue. Tried so many things and nothing worked. Have you figured it out already?

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

    You are not uisng an extra monitor ? how is that ?

    • @megalodon1726
      @megalodon1726 11 หลายเดือนก่อน +1

      Most monitors have multiple HDMI or DisplayPorts. Just switch the source on the monitor from one connection to another.

    • @khanra17
      @khanra17 11 หลายเดือนก่อน

      ​@@megalodon1726
      I bet You really don't understand what he asked?

  • @Magnetofps
    @Magnetofps 9 หลายเดือนก่อน +3

    Hi,really nice tutorial.. I have some questions- how to get full refresh rate supported by monitor? & how can i switch mouse and keyboard input between host and the guest cause my m&k just locks into virt guest when I run it.

    • @yasirrakhurrafat1142
      @yasirrakhurrafat1142 4 หลายเดือนก่อน

      Nahh, you probably gotta buy another pair..
      Or allocate a few usb ports.. then keep switching the usb plug from the free usb ports to the vm allocated ones you've allocated to the vm.

    • @VovanPo
      @VovanPo 3 หลายเดือนก่อน +1

      In theory you can select custom refresh rate in nvidia control panel or using cru software thingy

  • @vroomvroom9911
    @vroomvroom9911 10 หลายเดือนก่อน +2

    Do you know how i can passthrough my bluetooth so i can use my wireless controller in the vm for gaming

    • @512Bytes
      @512Bytes 7 หลายเดือนก่อน +1

      Bluetooth is passed through automatically, if not, detect how it is connected and pass it through, also, make sure that Bluez drivers are installed on Linux.

  • @darkplays25
    @darkplays25 5 หลายเดือนก่อน

    Broke my gpu kinda i didnt get emy graphical response from kde plasma but i goes into bios and made it igpu only and then deleted the line

  • @Cloud67TR
    @Cloud67TR 5 หลายเดือนก่อน

    i switched to arch and now,when i isolate my gpu,it just doesn't shows up on virt manager

    • @kskroyaltech
      @kskroyaltech  5 หลายเดือนก่อน +1

      Did u check the isolation status of GPU ? I mean kernel driver in use for PCI devices should say VFIO - PCI..

    • @Cloud67TR
      @Cloud67TR 4 หลายเดือนก่อน +1

      @@kskroyaltech it doesn't shows up on there either, im using envycontrol

    • @Cloud67TR
      @Cloud67TR 4 หลายเดือนก่อน +1

      @@kskroyaltech i used hybrid mode and now everything works as intended!

  • @TVPInterpolation
    @TVPInterpolation 7 หลายเดือนก่อน +1

    this might sound weird, but theoretically:
    i have 2 4090s, and no igpu. assuming im deactivating the nvidia driver, wouldn't i also lose output of my other 4090 which i wouldn't pass on?

    • @512Bytes
      @512Bytes 7 หลายเดือนก่อน +1

      You are identifiying them by the PCI ID, both have different ones.

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

      @@512Bytes ok, so its not unloading the module as a whole, but only for the assigned pci ids?

    • @kskroyaltech
      @kskroyaltech  6 หลายเดือนก่อน

      Correct

    • @kskroyaltech
      @kskroyaltech  6 หลายเดือนก่อน

      YEP,

    • @TVPInterpolation
      @TVPInterpolation 6 หลายเดือนก่อน

      @@kskroyaltech awesome, thanks for the info.

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

    Does overclocking software inside the windows vm work?

  • @ItzZoriun
    @ItzZoriun 5 หลายเดือนก่อน

    any idea how to detach and retach my gpu instead of isolating it?

  • @zzzzww22
    @zzzzww22 10 วันที่ผ่านมา

    "doesn't support passthrough of host PCI devices" anyone can help me?

  • @dar.strange2361
    @dar.strange2361 11 หลายเดือนก่อน +1

    is the same with intel/nvidia? acer nitro 5

  • @tankfire20
    @tankfire20 5 หลายเดือนก่อน

    I have modern 7000 series amd gpu what are the equivalent commands?

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

    Can the same thing be applied on Windows 11? I can't seem to get it working.

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

    do you need to plug the displayport cable into the nvidia gpu if you do this?

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

      Same question here

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

      No, there doesn't need to be any cable plugged into your guest gpu. It's simply being used for its resources. Think about it - the guest PC isn't really plugged into your actual monitor; it's plugged into a virtual monitor / videocard created by the virtual machine host.

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

    I have a question. Lets say after i've done with windows vm, and shut it down. Then i want to openup second vm (windows or linux). Does the gpu stuck on the first vm? can i use the gpu on the second vm?

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

      You can use it on the 2nd VM, but not at the same time.

  • @jaynayk1176
    @jaynayk1176 11 หลายเดือนก่อน

    Im experiencing an issue... I followed this tutorial on Ubuntu 22.04.3 and everything worked as expected, but when I tried to start the previously working VM, there is just a black screen. Im trying to pass through a 3090, using iGPU of my Ryzen 7600x for the host. Anyone know what I did wrong?

  • @IIdankII
    @IIdankII 11 หลายเดือนก่อน

    I finished the tutorial and the drivers for my GPU got installed, but for some reason in device manager, NVIDIA Platform Controllers and Framework is not running and it is causing the GPU to not activate in win 11.
    Debian 12 Buster.

    • @kskroyaltech
      @kskroyaltech  11 หลายเดือนก่อน

      Try to Reinstall NVIDIA Drivers.
      Did u try with Windows 10 VM ?

    • @IIdankII
      @IIdankII 5 หลายเดือนก่อน

      @@kskroyaltech sorry for late response. I've never figured out this issue. I have done this both on windows 10 and 11. That being said, I can still get full performance by plugging directly into a monitor via HDMI out of the GPU (laptop). It's not had an issue running a game in a VM even with the Error Code.

  • @andrushacyborg2382
    @andrushacyborg2382 4 หลายเดือนก่อน

    Hello, thanks for the tutorial! I'm gonna use that setup for clean arch install on my laptop with amd iGPU and nvidia dGPU and i have a question: Do i need to install nvidia proprietary drivers if i'm only gonna use nvidia gpu in windows vm?

  • @minuteworld7027
    @minuteworld7027 4 หลายเดือนก่อน

    can you do this for integrated amd chips on ryzen cpus?

    • @kskroyaltech
      @kskroyaltech  4 หลายเดือนก่อน

      You cannot do that. iGPU is used for display and power the host OS by default.

  • @RCSky7711
    @RCSky7711 5 หลายเดือนก่อน

    Does this cause issues when doing GPU intensive tasks after you exit the virtual machine?

  • @Racheshwer1
    @Racheshwer1 3 หลายเดือนก่อน

    I have a HP pavilion 15 with r5 5600H and rx 6500m but my gpu is not getting detected in my of the linux distros that I tried how did u manage to detect on kubuntu?

    • @kskroyaltech
      @kskroyaltech  3 หลายเดือนก่อน

      do this:
      open terminal or konsole and run the below command
      *sudo ubuntu-drivers autoinstall*
      it should detected the GPU and install the required driver.

  • @wznzgq1354
    @wznzgq1354 24 วันที่ผ่านมา

    hey, i have external screen connected to my laptop, which is directly connected to my 3060 nvidia, will external monitor get disabled once i fully dedicte it to virtual machine?

  • @JonderQuintero
    @JonderQuintero 9 หลายเดือนก่อน +1

    Can you do that the same using Slackware(64) 15.0, because ever on some step i ever see something fail on a pc of my job.
    Dunno this can be replicated using Internal GPU for Windows Virtual Machine ?

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

    Im using PopOs which has no Grub, any way around it?

  • @ДимитърТашев-и8у
    @ДимитърТашев-и8у 4 หลายเดือนก่อน

    Thank you! It worked like charm :)

    • @kskroyaltech
      @kskroyaltech  4 หลายเดือนก่อน

      You're welcome!

  • @gutibran
    @gutibran 4 หลายเดือนก่อน

    Great video! It worked!

  • @CKDesigner2525
    @CKDesigner2525 4 หลายเดือนก่อน

    I am a bios user and when I tried to create a win10 UEFI VM it didn't boot. and when I tried the passthrough in win10 BIOS VM it didn't work, it showed me an error saying "Your host device doesn't support PCI passthrough". What to do?

    • @kskroyaltech
      @kskroyaltech  4 หลายเดือนก่อน +1

      Did u enable Virtualization feature in BIOS ?!

    • @CKDesigner2525
      @CKDesigner2525 4 หลายเดือนก่อน

      @@kskroyaltech yes I ran virtualbox before

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

    I followed these steps, but the nouveau drivers for the card keep getting loaded instead of the vfio-pci drivers. Why?

    • @geonofone9816
      @geonofone9816 7 หลายเดือนก่อน +1

      In the /etc/modprobe.d/vfio.conf file, on the second line, replace "nvidia" with "nouveau". Was just running into the same issue myself. I never switched to the nvidia drivers because I installed the Nvidia card specifically for this project.

    • @joaocostapt
      @joaocostapt 4 หลายเดือนก่อน

      ​@geonofone9816 thank you, I had this problem in ubuntu where I was running the nouveau driver, and ubuntu would start until after I followed your suggestion of replacing nvidia with nouveau in vfio.conf. Good call
      In my setup, I had to bypass both the nvidia and nouveau drivers.

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

    not able to isolate my gpu. I am using desktop Manjaro and I am able to pass through. However whenever I restart or shut down the vm my host freezes

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

      I had the same problem. You can use a kernel patch (acs override or sth like that), this will seperate the devices into different IOMMU groups. Instead of manually patching the kernel, install the latest `xanmod` kernel (which includes the patch). With that I managed to launch my vm
      Edit:
      You will need to edit your grub confguration:
      `pcie_acs_override=downstream,multifunction`

  • @RCSky7711
    @RCSky7711 5 หลายเดือนก่อน

    I have kind of a dumb question. Being that you are isolating you dgpu away from the host, doesn't that mean the host system won't have access to it, and do you have to change the grub config back to undo that or does this not cause such problems?

    • @gigi_jwz
      @gigi_jwz 4 หลายเดือนก่อน

      you need to have 2 gpus for this integrated graphics work too if you try isolating your only gpu you''ll have essentially broken your linux install

  • @last_editorx
    @last_editorx 5 หลายเดือนก่อน

    i have systemd not grub. how to passthrough gpu with systemd?

    • @kskroyaltech
      @kskroyaltech  5 หลายเดือนก่อน

      I need to test that . It's kind of bit complicated.

  • @SSideology
    @SSideology 4 หลายเดือนก่อน

    Thanks Brother It helped a lot👍👍

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

    Umm, everything went fine, the gpu gets detected in the devices in windows, but when i install the nvidia drivers the screen just goes black completely.
    then i have to remove the nvidia pcie device and start windows and uninstall nvidia drivers to make the screen visible....

    • @khanra17
      @khanra17 11 หลายเดือนก่อน +1

      Tried connecting to the other hdmi port?

    • @QmVuamFtaW4
      @QmVuamFtaW4 11 หลายเดือนก่อน

      yep iirc i tried everything. just gave up since it was not worth the efforts to just run the assh*lic operating system.@@khanra17

    • @jirehla-ab1671
      @jirehla-ab1671 10 หลายเดือนก่อน

      ​@@khanra17the hdmi port not from the gpu?

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

    When i reboot after updating mkinitcpio my computer went back after grub screen.

  • @robertwermis2971
    @robertwermis2971 5 หลายเดือนก่อน

    I tried this and had zero video on reboot, do you have any instructions for doing this with AMD GPU and not nvidia? Luckily I could reboot to a generic instance and remove the lines from grub and reboot to get my main video back.

    • @kskroyaltech
      @kskroyaltech  5 หลายเดือนก่อน

      I didnt get a chance to test with AMD discrete Gpu. This video is exclusive to NVIDIA only

  • @khanra17
    @khanra17 11 หลายเดือนก่อน +1

    Possible?
    Use dGpu on host & iGpu on the guest?

    • @bl̈̇̃
      @bl̈̇̃ 6 หลายเดือนก่อน

      just dont follow this tutorial and use any virtualization environment, this will be applied by defualt

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

    Vm showing error when adding mdev device

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

    I'm on Ubuntu 24, and have two AMD GPU's - 1) PCIe card(7900), and 2) onboard AMD GPU.
    That said, I tried substituting nvidia with AMD throughout the tutorial, though the isolation doesn't appear to have worked;
    ie, sudo update-initramfs -c -k $(uname -r), returns;
    _update-initramfs: Generating /boot/initrd.img-6.8.0-35-generic,_ and nothing else
    Any ideas?

    • @deneb80
      @deneb80 6 หลายเดือนก่อน

      I got it: not amd but amdgpu. Unfortunately when I get into Win and install the AMD driver I get the -43 error which should be simply bypassed installing amdgpbugreset with no success

  • @atishsaha6127
    @atishsaha6127 4 หลายเดือนก่อน

    great tutorial. so if i assign my dedicated card to VFIO in grub, I will not be able to use that for the host machine? (unless i update grub to release it from VFIO)

    • @kskroyaltech
      @kskroyaltech  4 หลายเดือนก่อน +1

      Correct. Kind of isolating it from host OS, so that you can pass It to VMs

  • @Nomad-np5lg
    @Nomad-np5lg ปีที่แล้ว +18

    Do single gpu passthrough

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

    When i try to do lscpu -nn it returns "lscpu: invalid option -- 'n'"
    (Idk why yt made it marked out)

    • @last_editorx
      @last_editorx 5 หลายเดือนก่อน

      its lscpu -nn not nn

  • @BR-wc7nh
    @BR-wc7nh 8 หลายเดือนก่อน

    sudo mkinticpio -p linux doesn't work for me it states command not found. Not sure if you have some insight to this

    • @davy2753
      @davy2753 6 หลายเดือนก่อน

      He misspelled it. It's "mkinitcpio"

  • @ravitejakundanala2361
    @ravitejakundanala2361 6 หลายเดือนก่อน

    Do i need to install Nvidia drivers in the base machine ?

  • @nightstar9.
    @nightstar9. ปีที่แล้ว +1

    Or should I just dual boot? I assume if I want to use nvidia on host, i had to undo everything, and if i want it back on vm, basically redo it back.

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

      Yes you can dual boot .

    • @nightstar9.
      @nightstar9. ปีที่แล้ว +1

      @@kskroyaltech i know i can, but im more asking should i or this is more convenient. but im guessing dualboot is more convenient in my case.

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

      @@nightstar9. Dualboot is convenient in my case as well, I have a mini-ITX motherboard and there is only 1x16 pcie lane and don't want to bother with multiple GPUs.
      If they can make a software that gives gpu to guest and then back to host, I am game.

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

      ​@@nightstar9.you could make 2 grub entries one with and one without the iommu kernel options, and then you boot accordingly

    • @Cube_Box
      @Cube_Box 11 หลายเดือนก่อน

      @@kodehou Thanks for the idea

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

    Followed this to a T and now my Ubuntu 22.04 freezes at boot after showing some logs before where the login screen would normally appear

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

      Was also not able to boot into recovery mode and am currently having to repair my system using a live usb.

  • @alexal4
    @alexal4 6 หลายเดือนก่อน

    Windows working great with GPU path through, but the issue I can't solve is I am not able to shutdown Windows VM and return back to the host.
    I am not even able to reboot the host via ssh, it is just dead and the only option is to force shutdown.

    • @kskroyaltech
      @kskroyaltech  6 หลายเดือนก่อน +1

      open terminal and try this command to shutdown windows VM first through this command:
      *sudo virsh shutdown* then reboot the pc with
      *sudo reboot now*

    • @alexal4
      @alexal4 6 หลายเดือนก่อน

      @@kskroyaltech
      I can try it, thanks. So ssh remotely and try to shutdown VM with virsh command.
      What I found is it when I try to reattach PCI device with "virsh nodedev-reattach pci_0000_0a_00_0" I am getting the black screen
      and can't do anything else, but hard shutdown, even though VM is not even running.

    • @alexal4
      @alexal4 6 หลายเดือนก่อน

      @@kskroyaltech sudo shutdown -r now.
      I need to re-create the VM today and I will try it tonight. Thanks again for your prompt reply.

    • @alexal4
      @alexal4 5 หลายเดือนก่อน

      @@kskroyaltech
      Hi,
      I tried it, but it is the same problem. Once I shutdown VM with virsh and try virsh -list the command hungs and I can't even reboot host anymore.
      I am pretty sure my problem is around detaching the VGA device: "virsh nodedev-reattach pci_0000_0a_00_0", which probably happens when you
      shutdown the guest. I tried to search internet, but no luck so far.

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

    Is it avail in same laptop with GTX 1650??

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

      Any GPU as long as you have a second GPU will work... (including integrated graphics)

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

      for that it need mux switch i guess
      @@tobihudiat

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

      Bro you can almost pass ANY GPU to VM as long as your System is Having GPU 0 (iGPU).

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

    Will i not be able to use the nvidia card on the host?

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

      You will not be able to use the card on the host because it is blacklisted from the distro to get used by the VM.

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

      You can use it with HOST OS. Just remove VFIO.CONF file (sudo rm -f /etc/modprobe.d/vfio.conf) then update intiramfs.
      Now, remove all kernel arguments passed to grub, update grub and reboot. NVIDIA drivers will be loaded during the boot time, and will be made available to host OS to use NVIDIA.

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

      @@kskroyaltech will pass through still work?

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

      @@korigamik no, because all of that work for the vfio is now gone... you need to reassign it yet again to vfio

    • @HareeshkarRavi
      @HareeshkarRavi 6 หลายเดือนก่อน

      ​@@kskroyaltech Can you please tell how to remove it from kernal detailed please

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

    ok but what if I am trying to use my 5700G's Integrated Graphics instead of Nvidia?

  • @vanderwilhelm667
    @vanderwilhelm667 10 หลายเดือนก่อน +2

    Thank so much, peace and love

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

    i found you can skip the grub commands

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

      You mean I skipped any Commands in the description ?

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

      @@kskroyaltech i dont use grub found everything else works without grub or intramfs

    • @prototype9000
      @prototype9000 11 หลายเดือนก่อน

      @@kskroyaltech no some pf them are not necessary

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

    Thank you so much for the video! Please tell me, will it be possible to create two virtual machines in this way?

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

      yes you can create. But I am not sure once you pass a GPU to particular VM , I guess you cannot use it with other VM until the VM is shutdown.

  • @arshkhanlm3086
    @arshkhanlm3086 11 หลายเดือนก่อน

    lspci -nn | grep -E “NVIDIA” doesnt show pci ids, i am using ubuntu 23.10

    • @kskroyaltech
      @kskroyaltech  11 หลายเดือนก่อน

      it will work. Make sure you have typed correctly.

    • @rudraacharya8247
      @rudraacharya8247 4 หลายเดือนก่อน

      ​@@kskroyaltech It doesn't show audio controller of nvidia, only video, so please help me what should I do

  • @JAISURIYAPK-92
    @JAISURIYAPK-92 ปีที่แล้ว +1

    it will work in arch linux ?

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

    how to switch between them ?

  • @ogdoge5037
    @ogdoge5037 2 หลายเดือนก่อน

    @4:25 theres a typo , its sudo mkinitcpio -p linux

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

      Which distro you are using ?

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

      @kskroyaltech Arch

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

    How do we use 2 separate monitors for 1 VM?

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

      You mean to use the SAME VM on TWO monitors. ?!

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

      @@kskroyaltech Exactly. How is it done? I wish to do some stuff using 2 monitors, but the 'screens' are from 1 VM. So that it's always isolated from my main OS/machine.
      I imagine, there should 2 Virt Manager windows for a single VM.

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

      @@kskroyaltech Do you know how to?

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

    Is windows to linux possible?

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

    Thankss,, can we use for kvm hackintosh?

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

      I didnt try that but check out this GitHub link:
      github.com/sickcodes/Docker-OSX

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

    th-cam.com/video/g--fe8_kEcw/w-d-xo.html
    6:12
    It doesn't give me the option "Browse"

  • @arshkhanlm3086
    @arshkhanlm3086 11 หลายเดือนก่อน

    Does GPU passthrough work with Arch Linux VM through Ubuntu Host

    • @kskroyaltech
      @kskroyaltech  11 หลายเดือนก่อน

      It will work. I didn't try ..

    • @jirehla-ab1671
      @jirehla-ab1671 10 หลายเดือนก่อน

      ​@@kskroyaltechare the config files for the host & the guest for the VFIO pass-through to work is OS specfic?

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

    Is it possible to do this with one GPU?

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

      Technically YEs, but you end up with Bootloop... So not recommended.

  • @GhostVistaz
    @GhostVistaz 6 หลายเดือนก่อน

    Does it work for windows?

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

    Can we use proprietary nvidia drivers?

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

      If Proprietary Nvidia drivers installed, it must be disabled through the VFIO.CONF. That way the Host OS rely on iGPU and leaving NVIDIA isolated. Then NVIDIA GPU can be passed through any VM .

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

      @@kskroyaltech okay

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

      @@kskroyaltech My system wont boot while trying to isolate my Nvidia RTX 2070m gpu any solutions, it has Intel integrated graphics as well.

    • @jirehla-ab1671
      @jirehla-ab1671 ปีที่แล้ว

      ​@@kskroyaltechdoes this config also work if i install fedora linux in the kvm guest ?

    • @jirehla-ab1671
      @jirehla-ab1671 ปีที่แล้ว

      ​@@kskroyaltechmay i ask will the config in this also work if i installed linux in kvm guest?

  • @refex_yt_2071
    @refex_yt_2071 9 หลายเดือนก่อน +1

    really good, thanks

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

    Bro PC not turning on 😢

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

      What is the problem bro

  • @crilleboys
    @crilleboys ปีที่แล้ว +8

    One giant leap for man, one small step for Microsoft.

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

    am setting this up because Lutris installing EA launcher an general wine game installs hate me so am doing this till a games to much for it XD

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

    Please create install macos in windows with gpu pass through

    • @kskroyaltech
      @kskroyaltech  15 วันที่ผ่านมา

      I’m not sure how to do that.

  • @arshkhanlm3086
    @arshkhanlm3086 11 หลายเดือนก่อน

    It doesn't boot on Linux Mint Host

    • @kskroyaltech
      @kskroyaltech  11 หลายเดือนก่อน

      Any error you are getting.

    • @arshkhanlm3086
      @arshkhanlm3086 11 หลายเดือนก่อน

      The nvidia probe routine was not called for 1 devices

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

    I got bad luck, my pc only have one gpu

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

    thanks for the vid, i get a message about opengl not working, how should i fix that? :D

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

      make sure 3D acceleration is turned on using Virtio. QXL doesn't have 3D accleration support.

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

      @@TheJason13 yeah, i get an error message 😿

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

    Excellent video! Is it possible to accomplish this using a single GPU?

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

      Yea, but you computer must has a iGPU and atleast one Discrete GPU

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

      @@kskroyaltech i have AMD RX 580 (8GB flashing for mac boot)
      and opensuse thumbleweed...
      so can I run this tutorial with a single GPU?
      I'm worried about causing damage :)

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

    Could you make a tutorial for Fedora?

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

      Almost similar, but to update intiramfs you need to dracut. Anyway will try making a video

  • @NeilHaran
    @NeilHaran 3 หลายเดือนก่อน

    Near native GPU performance? This is the part you should likely correct in this video.

    • @kskroyaltech
      @kskroyaltech  3 หลายเดือนก่อน

      Yep with Windows 10 You will get close to Native GPU performance when it configured properly.

  • @bozardio
    @bozardio 4 หลายเดือนก่อน

    This caused my linux partition to be unbootable. Thanks

  • @LynelleSwitzer-o5g
    @LynelleSwitzer-o5g 3 หลายเดือนก่อน

    Chase Extensions

  • @MacadamToby-q4s
    @MacadamToby-q4s 4 หลายเดือนก่อน

    Bridget Divide

  • @MyrtleWhite-y4r
    @MyrtleWhite-y4r 4 หลายเดือนก่อน

    Shad Cape