VMware control from Python
Peach 2.0 development is blazing along, at some point I needed a python module to control a vmware server to allow for automatic start, stop and reverting. I figured I’d release this useful bit of code as a python module.
from vix import Vix
import time
vm = Vix()
print "Connecting"
vm.Connect()
print "Opening vm"
vm.Open("E:\\VMs\\Windows XP\\Windows XP Professional.vmx")
#print "Powering On vm"
#vm.PowerOn()
#print "Waiting a bit..."
#time.sleep(10)
#print "Powering off vm"
#vm.PowerOff()
print "Reverting to snapshot 0"
vm.GetRootSnapshot()
vm.RevertToSnapshot()
print "Sleeping"
time.sleep(10)
print "Disconnecting"
vm.Disconnect()

Any chance you have the source code available?
Yes, if you follow the provided link you will find the source available.