Solved

Start Virtual Machines minimized in VMWare Player

Posted on 2011-02-18
2
2,204 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
Comment Utility
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
Comment Utility
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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Join & Write a Comment

This is an issue that we can get adding / removing permissions in the vCSA 6.0. We can also have issues searching for users / groups in the AD (using your identify sources). This is how one of the ways to handle this issues and fix it.
David Varnum recently wrote up his impressions of PRTG, based on a presentation by my colleague Christian at Tech Field Day at VMworld in Barcelona. Thanks David, for your detailed and honest evaluation!
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
Advanced tutorial on how to run the esxtop command to capture a batch file in csv format in order to export the file and use it for performance analysis. He demonstrates how to download the file using a vSphere web client (or vSphere client) and exp…

743 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now