I'm building a script to start/stop/backup virtual machines using python but I stumbled in an issue with ISession.
When starting and unlocking the machine I cannot get another lock later, saying the machine is already locked.
I'm using the following code:
Code: Select all
progress = machine.launchVMProcess(session, "headless", None)
progress.waitForCompletion(-1)
log("Started '%s'" % machine.name)
time.sleep(1)
session.unlockMachine()
Thanks