Hi Manuel Have you test that the udev is not conflicting with your context interfaces?
After install the context packages it's necesary to clean the resol.conf, delete some ifcfg-ethxx scripts on the system to make the context correctly change the info in the machine. Some time the /etc/udev/rules.d/70-persistent-net.rules To add some scripts to execute on the context stage you could add some scripts in the /etc/one-context.d dir with a correct secuential number and it could be launched inside the VM when is starting. Hope it helps.. Enviado con MailTrack <https://mailtrack.io/install?source=signature&lang=es&referral=joseangel.d...@cenatic.es&idSignature=23> 2014-12-02 15:01 GMT+01:00 Manuel Alfonso López Rourich < alfonso.lo...@cenits.es>: > Good morning, > > I'd like to ask you a question about network contextualization of VMs. > > I had created a template with CentOS (in Contextualization tag "Add > network contextualization" and "Add SSH contextualization" is enabled. > > After deploying a VM, I can see that there is a context.sh file with the > content of some network parameters (ETH0_GATEWAY, etc.) but network is not > configured correctly after the deployment of a vm (to fix it I have to > execute (1) *ifconfig eth0 some_ip* and (2) *route add default gw*) > > How could I modify some script so that after booting a vm those commands > are executed automatically? > > Thank you very much > > Best regards > > > > _______________________________________________ > Users mailing list > Users@lists.opennebula.org > http://lists.opennebula.org/listinfo.cgi/users-opennebula.org > > -- Jose Angel Diaz Diaz Coordinador Tecnologico CENATIC -- --------------------------------------------------------------------------------------------------------- Correo Corporativo Fundación Cenatic Este email ha sido enviado desde una plataforma perteneciente a la Fundación Cenatic Cualquier duda o modificacion contactar con Fundación Cenatic +34 924 67 73 16 i...@cenatic.es
_______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org