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

vmrun runProgramInGuest with Ubuntu guest doesn't work

$
0
0

I'm new to VMWare and the VIX API in general.  As part of a project, I need to move some files to the guest os, perform some computation on them and retrieve them to the host OS. To test vmrun, I wrote a simple C program that appends the number 10 to a new line in a text file. I start the guest OS, move the file over and run the program on it, and retrieve it. But this sequence of steps does not modify the file at all. Below are the sequence of commands I use:

 

1.) vmrun -T ws start /path/to/Ubuntu/vmx/file

    (This brings up the Ubuntu Log in screen but I don't manually log in)

 

2.) vmrun -T ws -gu username -gp passwd copyFileFromHostToGuest /path/to/Ubuntu/vmx/file /home/username/test.txt /home/g_username/test.txt

 

3.) vmrun -T ws -gu username -gp passwd runProgramInGuest /path/to/Ubuntu/vmx/file /home/g_username/test.exe

(This should append to the file. The program completes, but does not display any output on host)

 

4.) vmrun -T ws -gu username -gp passwd copyFileFromHostToGuest /path/to/Ubuntu/vmx/file /home/g_username/test.txt /home/username/test.txt

 

The file I get back is completely unmodified.

 

I think the problem is with step 3.) The program is not running in the guest at all. Any feedback you guys can provide will be appreciated.


Viewing all articles
Browse latest Browse all 34639

Trending Articles



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