RTX 3080 and RX 6900XT GPU passthrough
ฝัง
- เผยแพร่เมื่อ 7 ก.พ. 2025
- In this video, we will get RTX 3080 and RX6900 to work in a virtual machine and try to get the best performance. The hypervisor feature used in this video should work with most other GPUs out there.
Libvirt manual:
libvirt.org/fo...
Hey Pavlo it seems this is your last video for the unforeseeable future. Thankyou for helping out there was a lot to learn from your videos. You've done a great job! Hope you are well!
Excellent work, Thanks very much.
same question, can you make a tutorial for single gpu passthrough for cpu ryzen?
Hey, can you do a tutorial on single gpu passthrough for nvidia?
im waiting for that video to
any chance on a single passthrough for manjaro?
Hi, friend, can you please make a video to optimize the VM with Dynamically isolating CPUs? thanks for all your videos, thank you
Hi. Nice work. If you can do the same in proxmox and explain it step by step you would become my ne hero! 😁
Can you make a video on vgpu_unlock ?
I wanna build a home server, using the ubuntu 20.04 server as the host machine, virtualize a win10 to run games, and virtualize another to run freenas. The host include integrated graphics and ext graphics(nv 2060
). followed a your pass-through virtualization tutorial video. During the advancement, I found that my ext graphics card and other hardware on the motherboard are always in an iommu group. An error is reported when adding graphics hardware to the virtual machine. I don't know how to separate the ext graphics card from the iommu group.
I think the solution is
1 Is that a patch needs to be applied. Is this kernel patch? Enable-overrides ACS
2 Is there a dedicated virtualization linux release version, easy to make ext graphic card pass-through? Include Enable-overrides ACS patch?
The following is the iommu grouping situation
Group: 0 0000:00:01.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
Group: 0 0000:00:01.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0] [1022:15d3] Driver: pcieport
Group: 0 0000:00:01.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0] [1022:15d3] Driver: pcieport
Group: 0 0000:00:01.6 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 PCIe GPP Bridge [6:0] [1022:15d3] Driver: pcieport
Group: 0 0000:01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU106 [GeForce RTX 2060 Rev. A] [10de:1f08] (rev a1) Driver: vfio-pci
Group: 0 0000:01:00.1 Audio device [0403]: NVIDIA Corporation TU106 High Definition Audio Controller [10de:10f9] (rev a1) Driver: vfio-pci
Group: 0 0000:01:00.2 USB controller [0c03]: NVIDIA Corporation TU106 USB 3.1 Host Controller [10de:1ada] (rev a1) Driver: vfio-pci
Group: 0 0000:01:00.3 Serial bus controller [0c80]: NVIDIA Corporation TU106 USB Type-C UCSI Controller [10de:1adb] (rev a1) Driver: vfio-pci
Group: 0 0000:02:00.0 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:43bc] (rev 02) Driver: xhci_hcd
Group: 0 0000:02:00.1 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b8] (rev 02) Driver: ahci
Group: 0 0000:02:00.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Device [1022:43b3] (rev 02) Driver: pcieport
Group: 0 0000:03:04.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset PCIe Port [1022:43b4] (rev 02) Driver: pcieport
Group: 0 0000:03:06.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset PCIe Port [1022:43b4] (rev 02) Driver: pcieport
Group: 0 0000:03:07.0 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] 300 Series Chipset PCIe Port [1022:43b4] (rev 02) Driver: pcieport
Group: 0 0000:05:00.0 Network controller [0280]: Intel Corporation Wi-Fi 6 AX200 [8086:2723] (rev 1a) Driver: iwlwifi
Group: 0 0000:06:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15) Driver: r8169
Group: 0 0000:07:00.0 Non-Volatile memory controller [0108]: Samsung Electronics Co Ltd NVMe SSD Controller SM961/PM961 [144d:a804] Driver: nvme
Group: 1 0000:00:08.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 00h-1fh) PCIe Dummy Host Bridge [1022:1452]
Group: 1 0000:00:08.1 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus A [1022:15db] Driver: pcieport
Group: 1 0000:00:08.2 PCI bridge [0604]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Internal PCIe GPP Bridge 0 to Bus B [1022:15dc] Driver: pcieport
Group: 1 0000:08:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Picasso [1002:15d8] (rev c8) Driver: amdgpu
Group: 1 0000:08:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio Controller [1002:15de] Driver: snd_hda_intel
Group: 1 0000:08:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor [1022:15df] Driver: ccp
Group: 1 0000:08:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1 [1022:15e0] Driver: xhci_hcd
Group: 1 0000:08:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Raven USB 3.1 [1022:15e1] Driver: xhci_hcd
Group: 1 0000:08:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller [1022:15e3] Driver: snd_hda_intel
Group: 1 0000:09:00.0 SATA controller [0106]: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] [1022:7901] (rev 61) Driver: ahci
Group: 2 0000:00:14.0 SMBus [0c05]: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller [1022:790b] (rev 61) Driver: piix4_smbus
Group: 2 0000:00:14.3 ISA bridge [0601]: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge [1022:790e] (rev 51)
Group: 3 0000:00:18.0 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 0 [1022:15e8]
Group: 3 0000:00:18.1 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 1 [1022:15e9]
Group: 3 0000:00:18.2 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 2 [1022:15ea]
Group: 3 0000:00:18.3 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 3 [1022:15eb] Driver: k10temp
Group: 3 0000:00:18.4 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 4 [1022:15ec]
Group: 3 0000:00:18.5 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 5 [1022:15ed]
Group: 3 0000:00:18.6 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 6 [1022:15ee]
Group: 3 0000:00:18.7 Host bridge [0600]: Advanced Micro Devices, Inc. [AMD] Raven/Raven2 Device 24: Function 7 [1022:15ef]
Great work, will this work for OS X in VM.
Hai ,virtualization is possible on my rtx3050?
how does I pass a single GPU? Idont have a intel gpu
I want to know how much money you've used to equip your work environment? Soooooo fast!
your bare bones setup likely had stock OCs or custom OCs set
you may want to revisit that OR power settings
there is something that is holding that value superficially lower
try on a fresh install only nvidia drivers installed
Hey, Pavol it's me again from the fedora 33 passthrough guide. I wanted to ask how I can pass through my 3.5-inch mechanical drives to my VM's that would give me the best performance? I already have games installed on them so id like to avoid formatting them. also when adding the features my VM gives me a black screen
Ps: I'm using an AMD ryzen 9 3950x with an RTX 2080 as the host with my 6900xt being passed to the guest. 32GB of ram being passed to the guest as well from 64GB
Appreciate the helpful videos... I've come across topics on reddit, people having issues with anti cheat software like Battle eye not working in the VM and preventing them from playing games.
Have you experienced this at all?
There are a couple of games that have issues with VMs, usually multiplayer games. I would always check the game you're trying to play to make sure you won't get banned.
Hi Pavol
Could You be so kind to explain: How to passthrough 1070 (laptop with igpu 530 and 1070) to Win10 VM that way: when Win10 vm is running Nvidia 1070 is assigned to it and (or not if gvt-g possible with 1070) removed from Linux Mint host (Linux stays with iGPU or iGPU and 1070 if gvt-g possible) and then if vm is closed - 1070 returns to host as pci device.
BIG THANKS for gvt-g with iGPU - works great but it is slow with cad (cursor is lagging or is refreshed rarely with Looking glass - generally is lagging with Win10 vm through Looking glass).
Great video! Good to see the VMs won't slow performance noticeably.
Do you have any experience with proxmox? Thinking of building a headless machine with VMs using GPU passthrough.. Was thinking since proxmox is kind of tailored for hypervisor stuff it could be a better option than Debian/Fedora.... -Any thoughts?
Proxmox should work just fine. For headless passthrough, you can’t really go wrong with Proxmox.
I have a problem, I have tried the xml hypervisor but it still gets black screen, sometimes error pci header 127. I use gpu rx 5700xt. how to fix it? thank you
Rx 5700xt suffers from the reset bug. There are some kernel patches and workarounds available online.
Hey, I tried passing a dedicated gpu on my laptop, the vfio-pci driver is binding the gpu but when I start the vm with the pci device selected the whole computer freeze, any suggestions?
My laptop is a acer A315-41G, ryzen 5 2500U (with Vega 8) + radeon 535
On my Lenovo Legion 5 AMD 4800H Nvidia 1660ti (Optima) laptop, I'm struggling to get gpu-passthrough working in Hyper-V and KVM. My work requires CUDA. I'm guessing the BIOS isn't supporting GPU pass-through. Proxmox and Unraid kernels appear not to support 4800H yet. What does work on Windows is: GPU Partitioning (beta), GPU in Windows Docker, and GPU access in WSL. Since WSL now has GPU access, it may ultimately be a reasonable solution. These are all emerging, related technologies which you might want to report on. However, I'm still hoping that someone can figure out how to perform a traditional GPU passthrough to a VM on my laptop.
You could try following this guide in addition to everything else you’ve tried. It might help. leduccc.medium.com/simple-dgpu-passthrough-on-a-dell-precision-7450-ebe65b2e648e
@@PavolElsig Haven't seen that writeup. I've tried many of its steps but not all together. I give it a try.
Following the instructions in the simple dgpu writeup, I'm still unable to get passthrough working on my Lenovo Legion 5. That shouldn't be the final word as I didn't perform a clean install before trying the writeup's instructions.