[ovs-discuss] Error starting domain: internal error: Unable to add port vnet0 to OVS bridge br0
csikor at tmit.bme.hu
Fri Mar 8 12:58:13 UTC 2019
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
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
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
> 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-
> <model type='virtio'/>
> <address type='pci' domain='0x0000' bus='0x00' slot='0x07'
> 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
> 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
> File "/usr/lib/python2.7/dist-packages/libvirt.py", line 1035, in
> if ret == -1: raise libvirtError ('virDomainCreate() failed',
> libvirtError: internal error: Unable to add port vnet0 to OVS bridge
> 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
> discuss mailing list
> discuss at openvswitch.org
More information about the discuss