I would like to know how to set the default gateway for a virtual router.
I logged into the router and added a gateway to the /etc/network/interfaces file, but when I reboot it reverts to the original content.
Versions of the related components and OS (frontend, hypervisors, VMs):
Manual network configuration in OpenNebula instances will be overriden by the contextualization agent within the VM. You can setup the gateway information in the virtual network configuration backing the Vrouter network interface. You can also set this information directly in the CONTEXT section of the VR VM Template.
You might need to adjust this paramenter if you want to adjust the gateway post VM deployment. By default, after a VM is deployed, the ethx attributes cannot be changed. You need to restart opennebula to have this change active.
I found that when I create a virtual router from the Instances → Virtual Routers menu, I can’t set the context, but when I select a template from Templates → Virtual Routers and instantiate it, I can set the context. Is this a bug on the Instances page?