VMware Cloud Community
jgregory1
Contributor
Contributor

What is recommended way(e.g. command) to monitor a VM during provisioning and confirm PowerOn & configuration is complete?

Currently, using check to confirm power state is PowerOn and then get ipaddress. However, I notice that just because state = PowerOn, the vm is still being configured and cannot obtain the ipaddress. Any thoughts are greatly appreciated. 

0 Kudos
4 Replies
daphnissov
Immortal
Immortal

One of the most reliable ways is to check and ensure VMware Tools are running.

0 Kudos
jgregory1
Contributor
Contributor

We do that now. It reports back that tools are ready, but the IP address is not established yet. So, automated process/cmd to get IP is executed, but continues in loop until it gets IP address. Sometimes, it can loop about a minute. I'm trying to cleanup process and trying to find a more reliable command to check if VM is 'settled' before executing command to get IP. We do a pause directly after PowerOn, but that is not always reliable (depending on OS type).

0 Kudos
daphnissov
Immortal
Immortal

After VMware Tools being available, there's really not. You'd probably want to enter a loop that checks for IP availability after Tools are up, and then set a timeout to break the loop and continue.

0 Kudos
jgregory1
Contributor
Contributor

Thanks!

0 Kudos