We have a vSphere 5 Hypervisor that runs few Windows XP/Vista/7 virtual machines with VMWare tools installed on each.
Would like to be able to:
- power on a VM by its name
- connect an ISO image from a local machine to a powered on VM
- copy few files to a VM, to a specific folder (NANT and NUNIT
binaries and dlls with tests) - run a just copied executable and wait till it completes
- get a file from a TEMP folder, which path has to be determined by
reading an Environment variable of a VM - determine whether or not a particular process is running inside VM
I would like to use VmWare.Vim.dll which is a part of a VmWare Infrastructure (VI) toolkit. I code in C# and .NET 4.
Power on/off operations I could do easily, but what about others? I have no clue how to do these operations. Haven’t found anything in documentation.
Perhaps there are other tools/API that could help me?
Previously we used VixCOM and Vestris.VmWareLib wrapper, but we had a simple VMWare Workstation. Now we moved to a vSphere and these API don’t work.
Best Regards,
Alex
Look at vSphere Web Services SDK:
GuestFileManager,
GuestOperationsManager and
GuestProcessManager (http://pubs.vmware.com/vsphere-50/index.jsp?topic=/com.vmware.wssdk.apiref.doc_50/vim.vm.guest.ProcessManager.html)