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

Levente Csikor csikor at tmit.bme.hu
Fri Mar 8 12:58:13 UTC 2019

Hi Harsh,

I have recently made the same and it was working.
>From this output, I am not entirely sure what the problem could be...
Are you sure you have started openvswitch properly and created the
bridge with no errors?

Do the ovs-vsctl show command print out your br0 bridge?

Your openvswitch service in the background might have started already
when you booted up the system and your new br0 was already existed so
there could have been an error when you manually created your own...

Are you sure you have the right privileges to add a port to the switch?
Is everything running as root/sudo?

Do you have all required libvirt packages installed properly (I have
libvirt-bin,libvirt-clients,libvirt-daemon, libvirt0,libvirt-daemon-
Are you sure that libvirtd is running in the background? (ps aux |grep

For now, I can only think about these! Would you be so kind as to share
more details?


On Fri, 2019-03-08 at 17:20 +0530, Harsh Gondaliya wrote:
> 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.openvs
> witch.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
> _______________________________________________
> discuss mailing list
> discuss at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-discuss

More information about the discuss mailing list