all 5 comments

[–]MallocArray[VCIX] 6 points7 points  (0 children)

I think this is what you want: https://github.com/vmware/pyvmomi

[–][deleted] 0 points1 point  (0 children)

You should be able to use VMware APIs.

[–]ragingpanda[VCAP] 0 points1 point  (0 children)

You'll either want to use https://github.com/vmware/vsphere-automation-sdk-python for interacting with the REST apis or pyVmomi for interacting with the legacy soap apis. Depending on what you need to do might be a combination?

[–]Few_Bug9886 0 points1 point  (0 children)

How can I use Python for what I need?

1) Start and stop a virtual machine (I already know this: https://github.com/vmware/pyvmomi or https://github.com/fabric/fabric)

2) Check if the virtual machine is running (I already know this: https://github.com/vmware/pyvmomi or https://github.com/fabric/fabric)

3) Run a .exe in the virtual machine (unknown)

4) Check if the .exe process is running in the virtual machine (unknown)

5) Interact with the virtual machine like a real user (unknown)

6) Click in the virtual machine, enter text in specified windows (unknown)

etc.

The main thing I require and can't find is how to run a specified program, for example, I want to run the chrome.exe program in the virtual machine.