On 3/8/2019 3:49 AM, 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.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>
This looks correct to me - I use the same on my VM's with libvirt on
several RHEL 7 systems. It does not seem to work with libvirt on Ubuntu
though and I haven't tried others.
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.
The libvirt folks will be able to help you more than we can on this list.
- Greg
Regards,
Harsh
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
_______________________________________________
discuss mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-discuss