Problem Performing Tasks in Guest OS

49 views
Skip to first unread message

Fred Deew

unread,
Jul 7, 2015, 2:04:50 PM7/7/15
to vmwar...@googlegroups.com
Hello,

I am having problems performing any task that involves the guest OS. I can use VMWareTasks to successfully connect to my Workstation (11.1.2), start/stop virtual machines, and take/revert to snapshots. These seem to be the functions that involve the host OS. LoginInGuest continues past the point of the function call, but I can't confirm that the Login actually occured. WaitForVMWareUserProcessInGuest times out, as well as RunProgramInGuest.

When I looked at the source code for WaitForVMWareUserProcessInGuest, the function is looking for vmwareuser.exe. In the guest OS I can't find that process at all, and on this site (https://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vmtools.install.doc%2FGUID-FB7FA658-7622-4680-BD9F-7A6670C12794.html) the process is referred to as vmtoolsd.exe, which I can find in the guest OS. Perhaps this process has a new name and this is causing the guest OS operations to fail? I am new to C# as well as VIX.

If you would like too look at my source code, it is essentially the same as VMWareVirtualHostSamples.cs\GettingStartedWorkstation() but with WaitForVMWareUserProcessInGuest before RunProgramInGuest.

Any help appreciated!

Daniel Doubrovkine

unread,
Jul 8, 2015, 11:59:40 AM7/8/15
to vmwar...@googlegroups.com
I doubt that VMWareTasks has anything to do with it. 

Try running a process after login (eg. notepad), do you see that process appear in task manager for this user (you don't see it, it's on a different "desktop" 0). 

--
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.



--

Fred Deew

unread,
Jul 9, 2015, 12:46:24 PM7/9/15
to vmwar...@googlegroups.com
Hey Daniel,

I could find the notepad process after I ran the program. I think the issue came from using RunProgramInGuest, which waits for the program to finish, instead of DetachProgramInGuest. Still can't get WaitForVMWareUserProcessInGuest to work, but I'm not sure I will need it any more.

Thanks again for making this available.
Reply all
Reply to author
Forward
0 new messages