Solved

Start Virtual Machines minimized in VMWare Player

Posted on 2011-02-18
2
2,284 Views
Last Modified: 2012-05-11
We have a server running ubuntu desktop 10.04 and VMWare Player 3.1.  We have 8 Windows XP Virtual machines that we use for a training class.  These machines are set up so that guests can come in with their laptops and rdp into their own virtual desktop which is preconfigured with our software and settings.

We keep all the "Master VM's" in ./home/user/VirtualMachines.  Our script copies all of the machines over to a folder on the desktop called Training VM then auto launches all the vm's.  Once the training is finished, the trainer runs a script that deletes the training folder then empties the trash so they can start with fresh vm's the next time.

We are having two separate though minor issues.  The larger of the two is that each machine is opening full screen and we cannot figure out to make the vm's start minimized.  The second issues is that when the machines are started, we get the "this machine was moved or copied" message and cannot see how to either avoid or auto answer this prompt.

I know this is not the best way to do this, and we plan on using a hypervisor with snapshots the future, but for now we are limited to the hardware we have on hand and the server is not esxi compatable and I do not have time to test other options at the moment.  Hoping someone out there might be able to help me figure these two problems out.

Thanks in advance!
0
Comment
Question by:arstacey
2 Comments
 
LVL 5

Accepted Solution

by:
rdhoore108 earned 500 total points
ID: 34932434
To prevent the question whether it was moved or copied, your script could update the config location inside the virtual machine's .vmx configuration file (which is plain xml) to match the current location.

Then you would get the same behavior as if it is moved, though, which is not what you want, as you seem to want to run multiple copies of the same VM at the same time, and they would all have the same MAC address, which would create a non-functional networking scenario.

I've just looked through this document:
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1541

It's for ESX/ESXi, but probably also applies to the player in this regard. It says that you can add a line which tells to always copy or always keep. Look for "Sometimes the message quoted above does not appear." :-)

Your other issue, to start minimized, I am not aware how it could be done in Player. I know that Workstation (which used to be free, I don't know if it is still free) comes with the vmrun command, which offers a lot of scripting facilities, see:

http://www.vmware.com/pdf/vix160_vmrun_command.pdf

(but I don't see any option there to start a machine minimized though).
0
 

Author Closing Comment

by:arstacey
ID: 35149059
Thanks.  Tested updating the xml manually and that worked so I will work it into the script.   Found a utility for ubuntu that allows you to specify programs to minimize after they start.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
In this video tutorial I show you the main steps to install and configure  a VMware ESXi6.0 server. The video has my comments as text on the screen and you can pause anytime when needed. Hope this will be helpful. Verify that your hardware and BIO…

791 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question