Dual GPU Passtrough Guide

By Taha14 minutes read

Prerequisites


Step 1: Enable IOMMU from BIOS


Step 2: Enable IOMMU in the Kernel


Step 3: Verify IOMMU Support


Step 4: Install Required Packages


Step 5: Add your user to the libvirt groups


Step 6: Block the GPU Driver


Step 7: Enable and Start the Libvirt Service and Reboot


Step 8: Check the GPU Drivers


Step 9: Download the Windows ISO File and VirtIO ISO Drivers


Step 10: Create a Windows Virtual Machine


Step 11: Setup Windows

Note

The Windows update will install the GPU driver automatically, which will cause the system to crash. You must disable the automatic updates from the Group Policy Editor to prevent this.


Step 12: Setup ROM File

Important

For desktop GPUs, this step is not required with 465.xx and later drivers. For laptop GPUs, this step is not required with 500.xx and later drivers. Refer to the NVIDIA Customer Help Page for more information.


Step 13: Setup shared memory


Step 14: Setup looking-glass-client and looking-glass-server


Step 15: Setup dummy output


Step 16: Add GPU to the Virtual Machine


Conclusion

Big Thanks

References