I have already asked a similar question on StackOverflow, but so far nobody has bitten. Maybe a VMware expert can help me out.
I am currently writing an application to manage our VMs which have three generations:
- Gold is the "tools-only" VM,
- Silver is the code branch specific VM,
- Bronze is a user-specific copy of Silver.
The VMs are running on individual users' machines in VMware Workstation.
So far, I have been using the VIX API 1.11 to do this, and I have pulled out useful information such as the VM name (which appears as "Virtual machine name" under Settings), and snapshot data to give a nice summary of the types of machines that exist on a users' machine and on a designated download area on our network.
Unfortunately, I have been finding great difficulty as how to change "property" values. The VIX API gives a number of GetProperty type methods, and only one SetProperty method, which I now realise is only there to provide a more flexible way to provide extended properties for specific methods. I have also looked at the vmrun.exe utility, and there is no getProperty or setProperty command at all.
Does anybody know how I can get greater control over VMs? I really don't want to hack the VMX files or hack VMware Workstation's dialogue boxes!