You mention amd_iommu but you are using Nvidia and I doubt this is the correct approach.

Have you checked the procedure at: https://access.redhat.com/documentation/en-us/red_hat_virtualization/4.4/html-single/setting_up_an_nvidia_gpu_for_a_virtual_machine_in_red_hat_virtualization/index 
It seems quite extensive and if your Nvidia supports vGPU, you can give it a try.

Best Regards,
Strahil Nikolov 



Sent from Yahoo Mail for iPhone

On Sunday, June 11, 2023, 4:32 PM, pawel.osadtschy01--- via Users <users@ovirt.org> wrote:

Hi, need a help!
may be the problem is very simple, but I've not found solution:
-oVirt 4.5.4 on RHEL 8.7
-amd_iommu is on on the Host with Nvidia Card A40

I can see my cards in vGPU Settings for Windows VMs (Windows 10 Pro).
Without activation of the vGPU device VM started normally.
With one active vGPU card VM cannot start. Error message on the Host:

Jun 07 13:39:51 depotlsa8ovh1 kernel: [nvidia-vgpu-vfio] e80ae200-4cea-4213-9e78-ebf0b86a756a: start failed. status: 0x0 Timeout Occured
Jun 07 13:39:51 depotlsa8ovh1 libvirtd[3278]: Kann nicht vom Monitor lesen: Die Verbindung wurde vom Kommunikationspartner zurückgesetzt
Jun 07 13:39:51 depotlsa8ovh1 libvirtd[3278]: Interner Fehler: qemu unexpectedly closed the monitor: 2023-06-07T11:39:51.494056Z qemu-kvm: -device vfio-pci-nohotplug,id=hostdev0,sysfsdev=/sys/bus/mdev/devices/e80ae200-4cea-4213-9e78-ebf0b86a756a,display=on,ramfb=on,bus=pci.7,addr=0x0: vfio e80ae200-4cea-4213-9e78-ebf0b86a756a: error getting device from group 156: Connection timed out. Verify all devices in group 156 are bound to vfio-<bus> or pci-stub and not already in use.

Looks like libvirtd cannot get any device. Is it problem of Nvidia settings on the host or Problem of VM settings?
Thank you
Paolo
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/55NGZTV55BFLRMBXWSN6IUGZV6IZBMWA/