custom vnet driver using ovswitch is not possible
|Category:||Core & System|
|Affected Versions:||OpenNebula 5.2|
I tried to add a new custom vnet driver. Everything is ok when hotplugging the interface to a running VM. But you have to modify the attach_nic script (which is I guess a bad idea? since it's outside of the vnet driver scope).
But when a new vm is DEPLOYed, ovswitch vn_mad type is hardcoded in the src/vmm/LibVirtDriverKVM.cc, meaning that you won't have the virtualport line in the libvirt XML vm definition. So the port of the VM won't be attached to the OVS bridge. And since it's hardcoded in the LibVirtDriverKVM.cc, you can't use custom drivers to deal with OVS type port. Am I wrong ?
It should be great if we can deal with OVS inside custom drivers.
ps: forum discussion is here https://forum.opennebula.org/t/custom-vnet-driver/4046