Problem during power on and trying to run guest program in VM under vsphere client

39 views
Skip to first unread message

Heming Liu

unread,
Sep 29, 2015, 4:05:40 PM9/29/15
to vmwaretasks
Hi guys

             This problem bugged me for the whole day.

 
              I'm able to use the vetris api to connect to vm and i enabled automatically logon, if I see my screen, the runprograminguest can start fine, 

              However, if i power off and then power on, I need to wait for the VM windows screen to physically appear for the interactive_environment. 

              I do not want to silly wait for 60 seconds, but when I use WaitForVMWareUserProcessInGuest(), it just times out as there is no vmwareuser.exe present, i think it is changed to  vmtoolsd.exe


               virtualMachine.WaitForToolsInGuest();
               virtualMachine.WaitForVMWareUserProcessInGuest("username", "password");
               virtualMachine.LoginInGuest("username", "password", Constants.VIX_LOGIN_IN_GUEST_REQUIRE_INTERACTIVE_ENVIRONMENT, 30000);
                    
                    // run notepad
               virtualMachine.RunProgramInGuest(@"C:\Program Files\test\test.exe", string.Empty);


               is there anyway to resolve this?


               greatly appreciated


thanks

Daniel Doubrovkine

unread,
Sep 30, 2015, 6:55:18 AM9/30/15
to vmwar...@googlegroups.com
The extra wait unfortunately was the only reliable way we found how to do this, but maybe a VMWare forum would be able to help with a better solution.

--
You received this message because you are subscribed to the Google Groups "vmwaretasks" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vmwaretasks...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages