Not able to add pcie card to guest: Operation not permitted

Peter Crowther peter.crowther at melandra.com
Fri Apr 24 20:34:52 UTC 2020


On Fri, 24 Apr 2020 at 21:10, Mauricio Tavares <raubvogel at gmail.com> wrote:

> Let's say I have libvirt
>
> [root at vmhost2 ~]# virsh version
> [...]

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

>
> [root at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20200424/583fc423/attachment.htm>


More information about the libvirt-users mailing list