On Fri, 24 Apr 2020 at 21:10, Mauricio Tavares <raubvogel@gmail.com> wrote:
Let's say I have libvirt

[root@vmhost2 ~]# virsh version
[...]
Running hypervisor: QEMU 2.12.0
[root@vmhost2 ~]#
[...]
When I try to start the guest I get the following error message:

[root@vmhost2 ~]# virsh start testfedora
error: Failed to start domain testfedora
error: internal error: qemu unexpectedly closed the monitor:
2020-04-24T20:01:35.341020Z qemu-kvm: -device
vfio-pci,host=01:00.0,id=hostdev0,bus=pci.8,addr=0x0: vfio error:
0000:01:00.0: failed to setup INTx fd: Operation not permitted

[root@vmhost2 ~]#

Why is it telling me that is not permitted?

The guest will be running as qemu on the host.  Does qemu have appropriate permissions in the host, and does that include in any hardening like SElinux that you're running?

Cheers,

- Peter