[ovs-discuss] libvirt: error : cannot execute binary ovs-vsctl: Permission denied

Harsh Gondaliya harshgondaliya_vinodbhai at srmuniv.edu.in
Tue Mar 26 14:06:48 UTC 2019


I installed OVS from source int to my /usr/src directory using the
installation steps mentioned here:
http://docs.openvswitch.org/en/latest/intro/install/general/

However when I try to create a VM in KVM-QEMU and add it to OVS Bridge I
get error: Error starting domain: internal error: Unable to add port vnet0
to OVS bridge br0

The system logs shows this error:

Mar 26 19:25:01 dpdk-OptiPlex-5040 libvirtd.service: 20423: error :
virCommandWait:2553 : internal error: Child process (ovs-vsctl --timeout=5
-- --if-exists del-port vnet0 -- add-port br0 vnet0 -- set Interface vnet0
'external-ids:attached-mac="52:54:00:90:c6:c3"' -- set Interface vnet0
'external-ids:iface-id="a9700eff-03a7-4c47-a112-429fc20677a2"' -- set
Interface vnet0 'external-ids:vm-id="41b4eef0-b820-41da-9034-9de22e1379e0"'
-- set Interface vnet0 external-ids:iface-status=active) unexpected exit
status 126:

*libvirt:  error : cannot execute binary ovs-vsctl: Permission denied*

Mar 26 19:25:01 dpdk-OptiPlex-5040 kernel: [ 1932.243181] audit: type=1400
audit(1553608501.701:59): apparmor="DENIED" operation="exec"
profile="/usr/sbin/libvirtd" name="/usr/local/bin/ovs-vsctl" pid=20679
comm="libvirtd" requested_mask="x" denied_mask="x" fsuid=0 ouid=0

Mar 26 19:25:01 dpdk-OptiPlex-5040 libvirtd.service: 20423: debug :
virCommandRun:2280 : Result status 0, stdout: '' stderr: 'libvirt:  error :
cannot execute binary ovs-vsctl: Permission denied#012'
Mar 26 19:25:01 dpdk-OptiPlex-5040 libvirtd.service: 20423: error :
virNetDevOpenvswitchAddPort:155 : internal error: Unable to add port vnet0
to OVS bridge br0
Mar 26 19:25:01 dpdk-OptiPlex-5040 NetworkManager[1096]: <info>
[1553608501.7126] devices removed (path: /sys/devices/virtual/net/vnet0,
iface: vnet0)

Any guidance how can I give permissions to libvrt to execute ovs-vsctl?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20190326/98917158/attachment.html>


More information about the discuss mailing list