<div dir="ltr">Good morning Jose Ángel, <div><br></div><div>Thank you very much for your response. </div><div><br></div><div>udev rules within the vm in /etc/udev/rules create eth0 or 1 depending on the MAC. </div><div><br></div><div>In /dev/sr0 a file named context.sh contains the IP and the gw among other data but I don't understand why eth0 doesn't have the IP associated or the route table is empty. </div><div><br></div><div>I've tried to run a command on vm boot which executes "ifconfig eth0 IP" and "route add default gw dir". The problem is that on boot the directory containing context.sh is not mounted and I cannot access the contextualization data. </div><div><br></div><div>I've also tried to execute a script in /etc/one-context.d/ but it doesn't seem to execute. </div><div><br></div><div>Thank you very much, </div><div><br></div><div>Best regards</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-02 15:18 GMT+01:00 Jose Angel Diaz <span dir="ltr"><<a href="mailto:joseangel.diaz@cenatic.es" target="_blank">joseangel.diaz@cenatic.es</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:'arial narrow',sans-serif">Hi Manuel</div><div class="gmail_default" style="font-family:'arial narrow',sans-serif"><br></div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">Have you test that the udev is not conflicting with your context interfaces?</div><div class="gmail_default" style="font-family:'arial narrow',sans-serif"><br></div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">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.</div><div class="gmail_default" style="font-family:'arial narrow',sans-serif"><br></div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">Some time the /etc/udev/rules.d/70-persistent-net.rules</div><div class="gmail_default" style="font-family:'arial narrow',sans-serif"><br></div><div class="gmail_default" style="font-family:'arial narrow',sans-serif">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.</div><div class="gmail_default" style="font-family:'arial narrow',sans-serif"><br>Hope it helps..</div><div class="gmail_default" style="font-family:'arial narrow',sans-serif"><br></div><div class="gmail_default" style="font-family:'arial narrow',sans-serif"><br></div><br><br><br><div><font color="#999999">Enviado con <a href="https://mailtrack.io/install?source=signature&lang=es&referral=joseangel.diaz@cenatic.es&idSignature=23" target="_blank">MailTrack</a></font></div><img width="0" height="0" src="https://mailtrack.io/trace/mail/ff0d2311470fd44a4cc5a9b86b9639e951124493.png"></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">2014-12-02 15:01 GMT+01:00 Manuel Alfonso López Rourich <span dir="ltr"><<a href="mailto:alfonso.lopez@cenits.es" target="_blank">alfonso.lopez@cenits.es</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Good morning, <div><br></div><div>I'd like to ask you a question about network contextualization of VMs. </div><div><br></div><div>I had created a template with CentOS (in Contextualization tag "Add network contextualization" and "Add SSH contextualization" is enabled. </div><div><br></div><div>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) <i>ifconfig eth0 some_ip</i> and (2) <i>route add default gw</i>)</div><div><br></div><div>How could I modify some script so that after booting a vm those commands are executed automatically?</div><div><br></div><div>Thank you very much</div><div><br></div><div>Best regards</div><div><br></div><div><br></div></div>
<br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">Jose Angel Diaz Diaz<div><br></div><div>Coordinador Tecnologico </div><div>CENATIC</div></div></div>
</div>

<br>
------------------------------<u></u>------------------------------<u></u>------------------------------<u></u>---------------<br>Correo Corporativo Fundación Cenatic<br><br>Este email ha sido enviado desde una plataforma perteneciente a la Fundación Cenatic  <br><br>Cualquier duda o modificacion contactar con Fundación Cenatic<br><a href="tel:%2B34%20924%2067%2073%2016" value="+34924677316" target="_blank">+34 924 67 73 16</a><br><a href="mailto:info@cenatic.es" target="_blank">info@cenatic.es</a><br></blockquote></div><br></div>