[ovs-discuss] Error starting domain: internal error: Unable to add port vnet0 to OVS bridge br0

Harsh Gondaliya harshgondaliya_vinodbhai at srmuniv.edu.in
Fri Mar 8 11:49:00 UTC 2019


I am trying to create a VM with its port attached to the OVS bridge. I have
created an OVS bridge br0 and then followed instructions mentioned on this
page to edit the XML file of VM:
http://docs.openvswitch.org/en/latest/howto/libvirt/

I have updated my Domain XML file for the VM to something like this:
<interface type='bridge'>
      <mac address='52:54:00:b1:72:f7'/>
      <source bridge='br0'/>
      <virtualport type='openvswitch'>
        <parameters interfaceid='193246cd-d7b8-4bbb-8ad7-4b0b4c933004'/>
      </virtualport>
      <model type='virtio'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07'
function='0x0'/>
    </interface>

But, as soon as I start VM using the Virtual Machine Manager, I get this
error: *Error starting domain: internal error: Unable to add port vnet0 to
OVS bridge br0*
This explanation is given for the error:
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 90, in
cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 126, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/libvirtobject.py", line 83, in
newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/domain.py", line 1402, in
startup
    self._backend.create()
  File "/usr/lib/python2.7/dist-packages/libvirt.py", line 1035, in create
    if ret == -1: raise libvirtError ('virDomainCreate() failed', dom=self)
libvirtError: internal error: Unable to add port vnet0 to OVS bridge br0

I am very new to this tool and am not able to figure out what could be done
to resolve this error. Any help in this regard would be great.

Regards,
Harsh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-discuss/attachments/20190308/b2514378/attachment.html>


More information about the discuss mailing list