idanyadgar
Contributor
Contributor

REST API power management - machines are always off

Hello,

I'm using archlinux and trying to use VMWare Workstation REST API in order to manage my virtual machines.
I encountered difficulties using the power management API - it looks like all my machines are considered off when I use the API (although they are on).

I use vmrest 1.2.1 build-17966106 with VMware Workstation 16.1.2 build-17966106.

The output of `vmrest -d` when I request for machine's power state:

[vmrest] get VM power state request, vmID: C3Q6N31L9CCLTL82I1VJ0DAL9PVL89L6, request ID: dab3605f8864bb02ba062e1189b0ae9f8d23e72b
[goVigor] reqID=dab3605f8864bb02ba062e1189b0ae9f8d23e72b attempting to create/get a new vigor connection
[goVigor] reqID=dab3605f8864bb02ba062e1189b0ae9f8d23e72b attempting to join the vigor call queue
[goVigor] reqID=dab3605f8864bb02ba062e1189b0ae9f8d23e72b joined the call queue
[goVigor] reqID=dab3605f8864bb02ba062e1189b0ae9f8d23e72b can't find a cached vigor connection, creating one
[goVigor] reqID=dab3605f8864bb02ba062e1189b0ae9f8d23e72b initialize vigor connection
[goVigor]started, syncOfflineConnect
[goVigor] reqID=dab3605f8864bb02ba062e1189b0ae9f8d23e72b op address:0xc000aba230, callback returned, syncOfflineConnect execution took 1.49088ms
[goVigor] reqID=dab3605f8864bb02ba062e1189b0ae9f8d23e72b done, syncOfflineConnect
[goVigor] reqID=dab3605f8864bb02ba062e1189b0ae9f8d23e72b syncOfflineConnect execution took 1.885061ms
[goVigor] reqID=dab3605f8864bb02ba062e1189b0ae9f8d23e72b trying to increase reference count of vigor connection
[goVigor] reqID=dab3605f8864bb02ba062e1189b0ae9f8d23e72b increased reference count of vigor connection
[goVigor] reqID=dab3605f8864bb02ba062e1189b0ae9f8d23e72b trying to increase reference count of vigor connection
[goVigor] reqID=dab3605f8864bb02ba062e1189b0ae9f8d23e72b increased reference count of vigor connection
[goVigor] reqID=dab3605f8864bb02ba062e1189b0ae9f8d23e72b created a vigor connection successfully
[goVigor]started, PowerStateOfflineDevice.SyncQuery
[goVigor] reqID=dab3605f8864bb02ba062e1189b0ae9f8d23e72b op address:0xc000a96150, callback returned, PowerStateOfflineDevice.SyncQuery execution took 450.473µs
[goVigor] reqID=dab3605f8864bb02ba062e1189b0ae9f8d23e72b done, PowerStateOfflineDevice.SyncQuery
[goVigor] reqID=dab3605f8864bb02ba062e1189b0ae9f8d23e72b PowerStateOfflineDevice.SyncQuery execution took 673.442µs
[goVigor] reqID=dab3605f8864bb02ba062e1189b0ae9f8d23e72b attempting to decrease the reference count of vigor connection
[goVigor] reqID=dab3605f8864bb02ba062e1189b0ae9f8d23e72b decreased reference count of vigor connection
[goVigor] reqID=dab3605f8864bb02ba062e1189b0ae9f8d23e72b exited the vigor call queue
[goVigor] reqID=dab3605f8864bb02ba062e1189b0ae9f8d23e72b released vigor connection

 

In addition, changing the power state of a machine does nothing. I believe it is because my machines are considered off.

Thanks.

0 Kudos
0 Replies