<div dir="ltr">Hi<div><br></div><div>As mentioned in yout email you are looking for the AWS_IP_ADDRESS key, which is only valid for Amazon Hybrid VMs. This value is obtained through the monitorization process as reported/updated by Amazon.</div>



<div><br></div><div>In general, as boot time of a VM depends on the software stack running wihtin, you cannot rely on the VM status reported by the hypervisors, i.e. RUNNING means that the VM is running at hypervisor level but it can be stuck in the virtual BIOS because of an error or misconfiguration.</div>



<div><br></div><div>In our internal testing platform we use two techniques:</div><div><br></div><div>1.- Pro-active ping the VM, a simple ping+sleep loop with a timeout.</div><div>2.- Make the VM callback home to a known URL (you may use onegate for this)</div>



<div><br></div><div>Note that both requires connectivity to some extent between the knife controller and the VM.</div><div><br></div><div>Cheers</div><div><br></div><div>Ruben</div><div><br></div><div><br></div><div><br>


</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Apr 30, 2014 at 4:24 PM, Megam Systems <span dir="ltr"><<a href="mailto:gomegam@megam.co.in" target="_blank">gomegam@megam.co.in</a>></span> wrote:<br>



<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Dev-OpenNebula,<br>
<br>
When working on the addon-knife, upon launching a VM using the OpenNebula API, there is a need to wait till the VM is fully launched. Currently we wait until an IP address is available from the VMPool.<br>
<br>
Please find the reference of the code here.<br>
<a href="https://github.com/OpenNebula/addon-knife/blob/master/lib/chef/knife/opennebula_server_create.rb#L168" target="_blank">https://github.com/OpenNebula/<u></u>addon-knife/blob/master/lib/<u></u>chef/knife/opennebula_server_<u></u>create.rb#L168</a><br>




<br>
We need a better way as OpenNebula can run in private clouds as well.<br>
<br>
How can we know that a VM is fully launched and running ? What parameter (status etc..) helps us to figure out that the VM is running.<span><font color="#888888"><br>
<br>
-- <br>
Cheers,<br>
Megam Systems; <a href="http://www.gomegam.com" target="_blank">http://www.gomegam.com</a><br>
email : <a href="mailto:gomegam@megam.co.in" target="_blank">gomegam@megam.co.in</a>; twitter: @megamsystems<br>
blog  : <a href="http://blog.megam.co" target="_blank">http://blog.megam.co</a>        | try     : <a href="https://www.megam.co" target="_blank">https://www.megam.co</a><br>
github: <a href="https://github.com/megamsys" target="_blank">https://github.com/megamsys</a> | youtube : <a href="http://youtube.com/indykish" target="_blank">youtube.com/indykish</a><br>
<br>
______________________________<u></u>_________________<br>
Dev mailing list<br>
<a href="mailto:Dev@lists.opennebula.org" target="_blank">Dev@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/dev-opennebula.org" target="_blank">http://lists.opennebula.org/<u></u>listinfo.cgi/dev-opennebula.<u></u>org<br clear="all"><div><br></div>-- <br></a><div dir="ltr"><a href="http://lists.opennebula.org/listinfo.cgi/dev-opennebula.org" target="_blank"><div>

<div>-- <br></div></div>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect</a><div><a href="http://lists.opennebula.org/listinfo.cgi/dev-opennebula.org" target="_blank">OpenNebula - Flexible Enterprise Cloud Made Simple<br>

</a><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula</div></div>
</font></span></blockquote></div><font color="#888888">

</font></div></div>