Hello,
I have a windows 2012 Server VM running on ESXi 5.1. I'm using the VIX API to interface with the VM. The vSphere Client shows that the VM is powered on, with the VMware tools installed. After invoking VixHost_Connect() successfully, and listing all the running VMs via VixHost_FindItems(), some of the VIX APIs return inconsistent values.
err = Vix_GetProperties(vmHandle, VIX_PROPERTY_VM_VMX_PATHNAME, &vmPath,
VIX_PROPERTY_VM_POWER_STATE, &vmPowerState,
VIX_PROPERTY_VM_IS_RUNNING, &vmIsRunning,
VIX_PROPERTY_VM_TOOLS_STATE, &vmToolsState,
VIX_PROPERTY_NONE);
In the above call, vmPowerState, vmIsRunning, both return false. vmPowerState is 0x02, which is off? The vmPath variable does show the correct value, and vmToolsState show '1'. Post this, when I call VixVM_LoginGuest(), or VixVM_WaitForToolsInGuest(), each of them errors out saying that the VM isn't running.
is there something obvious that I might be missing?
Regards,
Shiva