Wait until the VM is running