VMware {code} Community
rohith470
Contributor
Contributor

IVirtualMachineOperations.StartProgramInGuest returns -1073740791 instead of the new process id that has been started. Then all further calls fail with internal server error.

We are using vmware management SDK to start an executable on a remote machine managed in a vcenter.

While trying to start the process using "VMware.Interfaces.Operations.IVirtualMachineOperations.StartProgramInGuest" by passing the executable path, instead of receiving the id of the process that has been started, we are receiving -1073740791. And further call to list the running processes on the remote machine also fail with internal server error.

Can you mention why this is happening and the solution to avoid this ?

4 Replies
rohith470
Contributor
Contributor

EDIT : 

Correction ---- New process id is returned correctly. But, when exit code for this process is queried, -1073740791 is returned. Then, on trying to fetch a file from the remote machine, internal server error is encountered.

Reply
0 Kudos
rohith470
Contributor
Contributor

Found that "-1073740791" error code corresponds to "0xC0000409" windows process exit code, which is the error code for "STATUS_STACK_BUFFER_OVERRUN".

Process started via vmware management sdk is exiting with this error code, but manual execution of the executable file works fine.

Please look into this ASAP.

luminos
Contributor
Contributor

rohith470​, Did you get solution to your problem? I am facing the similar issue. This is observed when I have updated the pyvmomi to version 6.7. The same code was working fine with vsphere SDK 6.5.

Reply
0 Kudos
rohith470
Contributor
Contributor

luminos, Nope, did not find any solution yet.
Reply
0 Kudos