Page 1 of 1

IProgress.WaitForCompletion() issue

Posted: 24. Jul 2012, 21:42
by useruser1
After launching a guest vm via IMachine.LaunchVMProcess, I am adding a WaitForCompletion(-1) to make sure nothing is further executed until the vm is fully started and up and running.
However, the progress ends up being complete and there for moving on from the WaitForCompletion(-1) as soon as the LaunchVMProcess command executes successfully.

However, the vm is still loading, and I want to make sure it is up and running completely before I do anything else. Is there something else I can use to make sure execution only continues when the vm is completely started, possibly logged in, and running. I want to do something similar after powering down the vm with Isession.console.PowerDown(), since I have the same issue.

Thanks