I am currently using the following bat file to start multiple virtual machines:
start ""/b "C:\Users\Abe\Desktop\Virtual machine 1.lnk"
start ""/b "C:\Users\Abe\Desktop\Virtual machine 2.lnk"
My problem is that this start each machine in is own instance of VMware. Is there any way to build a script (.bat or otherwise) that will start the virtual machines in a single instance of VMware Workstation.
Regards and thanks in advance
k
You could create a batch file like this:
vmrun start "C:\VM\VM1.vmx"
vmrun start "C:\VM\VM21.vmx"
This would open both VMs in the same GUI - at least that is the way it works on my Windows 7 host with Workstation 9.
The vmrun command is what you want here.
Not wanting to appear obtuse but I have gone through the guide and do not quite see how to apply a solution.
Thanks
k
You could create a batch file like this:
vmrun start "C:\VM\VM1.vmx"
vmrun start "C:\VM\VM21.vmx"
This would open both VMs in the same GUI - at least that is the way it works on my Windows 7 host with Workstation 9.
Many thanks vmroyale; that pretty much does it.
One odd thing occurres though when starting up the vm's they did not auto detect and use the host computer display setting, i.e., did not open to full screen as per the .vmx file setting. Any thought as to what might cause that?
Thanks again and regards
k
have a read of the following PDF from VMware regarding the vmrun command
www.vmware.com/pdf/vix162_vmrun_command.pdf
You can auto start your VMs by doing the following without the need to create any batch file:
Just to add to what Scorpion99 mentioned, Running VMware Workstation as a server with shared virtual machines (2005585), be aware that using this method the VM's are running Headless and you would then access them via RDC or by other Services configured to be available as well as WSX. They do not appear in the VMware workstation GUI like when starting normally.