Reputation: 27339
I need to run thousands of times a windows program inside a virtual machine, VM, (I am using VMWare player), and call it with different parameters each time. I wonder if this can be done out of the VM, I mean, if what I need to do inside the VM is for instance
cd c:\temp
executable ARG1 ARG2
(where ARG1 and ARG2 are the variable input parameters), I want to know if I can do it calling this out of the VM from Linux, something like
bash: ./vmwareplayer [call previous msdos script with arguments ARG1 and ARG2]
Or if this is possible with other sort of VM.
Upvotes: 4
Views: 4029
Reputation: 154
Probably the easiest way is to install a ssh server in your VM. Then you just need ssh to your machine an run the program inside the VM.
You can execute a command like:
ssh user@NAT-IP command
Or just open a session and you will have a command prompt:
ssh user@NAT-IP
Make sure that you have configured your Network Adapter in NAT mode.
Upvotes: 4