I am running a Ubuntu on a workstation with 2 GTX 1070 and I5 7400 CPU, I have QEMU installed and I have an old windows 10 vm I tried to link the GPU by adding the PCI link hardware in virt-manager GUI, and restored windows vm (from a saved state) it detects a PCI hardware but does not install any drivers, I powered the VM completely then tried to run it again but I got this error
File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
ret = fn(self, *args, **kwargs)
File "/usr/share/virt-manager/virtManager/object/domain.py", line 1384, in startup
self._backend.create()
File "/usr/lib/python3/dist-packages/libvirt.py", line 1353, in create
raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: unsupported configuration: host doesn't support passthrough of host PCI devices
so I check if VT is enable and it is, since
sudo rdmsr 0x3A
returns a 5
next step I did was to check kvm-ok
and I got
INFO: /dev/kvm exists
KVM acceleration can be used
everything seems okay so far so I used
virt-host-validate
and realized IOMMU
is not enabled so I did the following, edited
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash intel_iommu=on"
followed by update-grub
now IOMMU
is enabled since virt-host-validate
outputs
QEMU: Checking if IOMMU is enabled by kernel : PASS
now when I try to run the same vm without the pci link it works fine but adding the pci link causes the libvirtd
to timeout and freeze
авг 28 00:45:22 WORKSTATION systemd[1]: libvirtd.service: Unit process 1814 (dnsmasq) remains running after unit stopped.
авг 28 00:45:22 WORKSTATION systemd[1]: libvirtd.service: Unit process 1815 (dnsmasq) remains running after unit stopped.
авг 28 00:45:22 WORKSTATION systemd[1]: libvirtd.service: Unit process 4018 (libvirtd) remains running after unit stopped.
авг 28 00:45:22 WORKSTATION systemd[1]: Failed to start Virtualization daemon.
The output pf dmesg
[32729.791574] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000500] Failed to grab modeset ownership
[32729.792216] [drm:nv_drm_master_set [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000900] Failed to grab modeset ownership
am I missing something, do I need to enable any extra features or maybe disable any?