Quantcast
Channel: VMware Communities : Popular Discussions - VIX API
Viewing all articles
Browse latest Browse all 34639

Call to RunProgramInGuest hangs without executing anything

$
0
0

Hello,

 

I'm automating several things on VMs located at a 3.5 ESX host and I've found that sometimes executing RunProgramInGuest just after rebooting the guest does not start the application nor returns error. If I call jobHandle.Wait() it just waits forever. The guest is a 2003 R2 Server, not sure if this matters.

 

Any hint?

 

PD: The code to execute the application is:

 

 

IJob jobHandle = _vmHandle.RunProgramInGuest(exePath,parameters, VixCOM.Constants.VIX_RUNPROGRAM_ACTIVATE_WINDOW, null, null);
int[] propertyIds = new int[] { VixCOM.Constants.VIX_PROPERTY_JOB_RESULT_GUEST_PROGRAM_EXIT_CODE };
object results = new object();
ulong errorValue = jobHandle.Wait(propertyIds, ref results);

Viewing all articles
Browse latest Browse all 34639

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>