Whilst attempting to pass through a Quadro P1000 to a Windows 10 guest, I get the following error:
Virtual Machine Manager output:
Unable to complete install: ‘internal error: process exited while connecting to monitor: 2018-11-07T18:48:50.768157Z qemu-system-x86_64: -device vfio-pci,host=2f:00.0,id=hostdev0,bus=pci.0,addr=0x5: vfio error: 0000:2f:00.0: failed to setup container for group 17: No available IOMMU models’
Traceback (most recent call last):
File “/usr/share/virt-manager/virtManager/asyncjob.py”, line 88, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File “/usr/share/virt-manager/virtManager/create.py”, line 2288, in _do_async_install
guest.start_install(meter=meter)
File “/usr/share/virt-manager/virtinst/guest.py”, line 461, in start_install
doboot, transient)
File “/usr/share/virt-manager/virtinst/guest.py”, line 396, in _create_guest
self.domain = self.conn.createXML(install_xml or final_xml, 0)
File “/usr/lib/python2.7/dist-packages/libvirt.py”, line 3523, in createXML
if ret is None:raise libvirtError(‘virDomainCreateXML() failed’, conn=self)
libvirtError: internal error: process exited while connecting to monitor: 2018-11-07T18:48:50.768157Z qemu-system-x86_64: -device vfio-pci,host=2f:00.0,id=hostdev0,bus=pci.0,addr=0x5: vfio error: 0000:2f:00.0: failed to setup container for group 17: No available IOMMU models
This error occurs during installation from an ISO. The VM uses OVMF and host-passthrough for the CPU configuration, has two PCI devices (GPU and its audio component) added, and all other display adapters removed (i.e. Display Spice, Video QXL).
Host specification:
- Asrock X470 Taichi motherboard
- AMD Ryzen 7 2700X 8 core 16 thread CPU
- Crucial 16GB (2 x 8GB) DDR4 2666MHz ECC Unbuffered RAM
- Samsung 970 EVO 500GB NVMe SSD
- EVGA GeForce GTX1050Ti SC 4GB GPU
- Leadtek Quadro P1000 4GB DDR5 GPU
This is on a clean Debian Stretch install. Regarding procedure, I have followed the Binding a GPU to vfio-pci in Debian recommendations. The only thing in my /etc/initramfs-tools/modules files is:
vfio_pci ids=10de:1cb1,10de:0fb9
The output from ls-iommu.sh shows that IOMMU groupings are present, so there is no issue with the host UEFI setup etc:
IOMMU Group 17 2f:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:1cb1] (rev a1)
IOMMU Group 17 2f:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:0fb9] (rev a1)
Likewise the output from lspci -nnk is:
2f:00.0 VGA compatible controller [0300]: NVIDIA Corporation Device [10de:1cb1] (rev a1)
Subsystem: NVIDIA Corporation Device [10de:11bc]
Kernel driver in use: vfio-pci
Kernel modules: nouveau
2f:00.1 Audio device [0403]: NVIDIA Corporation Device [10de:0fb9] (rev a1)
Subsystem: NVIDIA Corporation Device [10de:11bc]
Kernel driver in use: vfio-pci
Kernel modules: snd_hda_intel
I note from the Ubuntu 17.04 – VFIO PCIe Passthrough & Kernel Update (4.14-rc1) post linked above that a lot more cruft is placed into /etc/initramfs-tools/modules etc, but I am reluctant to start trying things randomly without first understanding what is causing the current error. Can anyone shed some light on this for me please?