February 14, 20224 yr Hi guys. I am trying to pass my gpu into my vm. IOMMU Info: IOMMU Group 16: 26:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU104 [GeForce RTX 2080 SUPER] [10de:1e81] (rev a1) 26:00.1 Audio device [0403]: NVIDIA Corporation TU104 HD Audio Controller [10de:10f8] (rev a1) 26:00.2 USB controller [0c03]: NVIDIA Corporation TU104 USB 3.1 Host Controller [10de:1ad8] (rev a1) 26:00.3 Serial bus controller [0c80]: NVIDIA Corporation TU104 USB Type-C UCSI Controller [10de:1ad9] (rev a1) Error: internal error: qemu unexpectedly closed the monitor: 2022-02-14T05:55:54.470356Z qemu-system-x86_64: -device vfio-pci,host=0000:26:00.0,id=hostdev0,bus=pci.0,addr=0x5: vfio 0000:26:00.0: group 16 is not viable Please ensure all devices within the iommu_group are bound to their vfio bus driver.
February 14, 20224 yr You probably passed to the vm only video and audio (26:00.0 and 26:00.1). These components are attached to vfio when you start the vm, but 26:00.2 and 26:00.3 are not, they are bound to their drivers in the host (different from vfio-pci). Since the gpu is a single device, this cannot operate correctly. Attach to vfio at boot the whole iommu group 16: all the devices should be attached to vfio at boot. Add to the vm xml also 26:00.2 and 26:00.3 for passthrough. Setup all these components in a multifunction device.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.