Public bug reported:
I have a network configured like this (/etc/libvirt/qemu/networks/en4.xml): <network> <name>en4</name> <uuid>163f7064-5a07-4fff-8510-63ac4868ab24</uuid> <forward mode='hostdev' managed='yes'> <pf dev='eno4'/> </forward> </network> If I use this network in a qemu VM like this: <interface type='network'> <mac address='52:54:00:11:22:33'/> <source network='en4'/> <model type='rtl8139'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x09' function='0x0'/> </interface> I get an error like this when trying to start it using virsh: qemu-system-x86_64: -device vfio-pci,host=05:01.0,id=hostdev0,bus=pci.0,addr=0x9: vfio error: 0000:05:01.0: failed to open /dev/vfio/34: Permission denied However, as soon as I pass any device through (e.g. a <hostdev> instead of <interface>), the permission error goes away. So to me, it looks like when <interface> is using a network that uses a hostdev, libvirt does not set the proper permissions to allow qemu to access the vfio. --- Description: Ubuntu 18.04.3 LTS Release: 18.04 libvirt-daemon: Installed: 4.0.0-1ubuntu8.12 Candidate: 4.0.0-1ubuntu8.12 ** Affects: libvirt (Ubuntu) Importance: Undecided Status: New ** Tags: interface vfio -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1840552 Title: Permission denied when using vfio with interface pools To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1840552/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs