<div class="gmail_quote">Hi <br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-IE" link="blue" vlink="purple"><div><p class="MsoNormal">Is there a way to query this VM ID from inside the VM? Or can I configure OpenNebula to automatically store the VM ID in, for example, a text file inside a VM when it creates the VM? It would also help if the application could query an IP-to-VM ID mapping from OpenNebula, if such a mapping exists for VMs that are created with bridged DHCP network access.</p>

</div></div></blockquote><div> </div><div>This goal can be easily achieved through contextualisation data (<a href="http://opennebula.org/documentation:archives:rel2.2:cong">http://opennebula.org/documentation:archives:rel2.2:cong</a>), notably by using the variables $VMID</div>

<div> </div><div>Regards,</div></div><br>