AfuentesM
Contributor
Contributor

.bat command to start two independent WorkStation and run different virtual machines in each one

Hello to all,

Im new in the community, and I need the help of all of you.

My goal is automate the starting of different virtual machines when the host is started up. The application is a typical dispatching.

Therefore, I want two different workstations (VMware) and different operating system in each one. The first workstation should have Windows XP  and the second workstation should have Windows 7.

I checked all the documentation concerning the VMRUN and I achieved open two different workstation but the two virtual machines always run in the same workstation.

Anyone knows how to achieve that?

Thank you very much!

PD: my .bat is the following:

@Echo off

cd \Program Files (x86)\VMware\VMware Workstation

  start vmware.exe

  vmrun start "C:\MYDIRECTORY\W7\W7.vmx"

  start vmware.exe

  vmrun start "C:\MYDIRECTORY\MaquinaVirtualSiemens\Siemens.vmx"

0 Kudos
2 Replies
jpsider
Expert
Expert

you should not have to start vmware.exe first.

What if you just run the two vmrun commands? What happens then?

0 Kudos
continuum
Immortal
Immortal

Try

rem # create a cmd for every VM

echo > startvm-1.cmd "C:\Program Files (x86)\VMware\VMware Workstation\vmware.exe" -n -x    G:\_vms_\knoppix\knoppix.vmx

echo > startvm-2.cmd "C:\Program Files (x86)\VMware\VMware Workstation\vmware.exe" -n -x    G:\_vms_\dos71\dos71.vmx

rem # launch the cmds ...

start startvm-1.cmd

start startvm-2.cmd


________________________________________________
Do you need support with a VMFS recovery problem ? - send a message via skype "sanbarrow"
I do not support Workstation 16 at this time ...

0 Kudos