VMware
 

Knowledge Base

Search the Knowledge Base:

Products:
Search In:
 

Programming API Might Not Show Current Value for Virtual Machine Power State

Details

 When you call GetProperties( ) to examine the VIX_PROPERTY_VM_POWER_STATE property, the value might not immediately show the result of a recent change in the virtual machine's power state. Instead, the value shows the previous power state. For example, after you power off a virtual machine, the Vix_GetProperties( ) might continue to report for a brief time that the power state of the virtual machine is VIX_POWERSTATE_POWERED_ON.

Solution

If your client application depends on checking the power state, sleep several seconds after a power state change before checking the value of the VIX_PROPERTY_VM_POWER_STATE property.

Keywords

vs100

Feedback

Rating: 1 - Lowest 2 3 4 5 - Highest (0 Ratings)   

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (2000 or fewer characters)
Submit
Rating: 1 - Lowest 2 3 4 5 - Highest (0 Ratings)   
Actions