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

windows 7 on Workstation 6.5.4: VixVM_RunProgramInGuest fails

$
0
0

Hi,

I wrote a simple program that would turn on a vm, copy a file and run an executable file.

Please see the code "run.c", attached.

My workstation is 6.5.4 and I have two os's: windows xp and windows 7 (btw 6.5.4 doesn't recognize windows 7 so it thinks the os is vista x64).

 

First off, everything works fine on xp.

 

For windows 7, I can turn on, log-in, and even do other guest functions like copying files successfully,

but running the program (via VixVM_RunProgramInGuest) always fails.

 

By "fails", I don't necessarily mean error on the host program. In fact, I have seen three outcomes after trying to run various programs at various directories on the vm:

 

1.  after VixVM_RunProgramInGuest, the wait function would immediately terminate (without error), but i do not see anything running on the guest machine

2.  after VixVM_RunProgramInGuest, the wait function stalls (until timeout); still don't see anything running on the guest machine

3.  VixVM_RunProgramInGuest returns an error code 3004.

FYI,
3004 – VIX_E_PROGRAM_NOT_STARTED
A program could not run on the guest operating system.

Again, I do not understand why it runs on xp and not on 7, and also why other guest functions work but running exe. doesn't work in particular.

 

Thank you for your help!


Viewing all articles
Browse latest Browse all 34639

Trending Articles



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