Enabling VLAN for existing VMs

Hi everyone,

I just switched my existing setup (OpenNebula 4.12) from dummy networking to an OpenVSwitch setup with VLANs. For newly created VMs, everything is working fine. However, all existing VMs get no network connectivity since their template does not get updated with the new VNet-Settings. In particular, OpenNebula does not advise OpenVSwitch to assign a VLAN tag. If I assign the tag manually (e.g. ‘ovs-vsctl set Port vnet0 tag=2’), the connection works again. But that’s not a practical solution for me. Is there a way to fix this without deleting the VMs?

Greetings
Wilma

I managed to resolve the problem by editing the database.

Greetings
Wilma

Hi Wilma,

Just to point pout, that the only way to change the vnet settings of
existing VMs is to update the DB as mentioned in your last message…

Cheers