I am using the VIX API to do a simple set of operations
I open a vm, revert to a snaphsot, then power on the vm and run some commands on it. Finally I close it. I have one difficulty in that the vm can be accessed by multiple VIX API clients - performing the same sequence. The clients are independent of each other. The single shared resource is the vm. I was wondering if it is possible somehow to prevent the multiple clients accessing the vm at the same time. I want the whole operation from reverting the snapshot to powering off the vm to be atomic. I see that I can detect the power state and act accordingly, but this leaves a gap while I am doing the revert to snapshot. Is it maybe possible to use the WriteVariable and ReadVariable functions to act as flags?
Thanks for your help in anticipation!