Vmware 2.0 Free - Automatic Power on when system start

Hi guys,

I install 2 Virtual Machines on Vmware Server 2.0 Free on Windows 2003, but i need turn on the vm's when system startup or shutdown when power off.

Please help :)
Gonzalo BecerraSharePoint - Technical Lead for Operations & Engineering Team - Superrvising AssociateAsked:
Who is Participating?
Bryan ButlerConnect With a Mentor Commented:
You can check out some samples here: http://www.vmware.com/pdf/vix160_vmrun_command.pdf
I think for server, it would be:

vmrun -T server -h <url - ex. https://www.test.com:5555/sdk -u user -p paswrd start "<file name>.vmx"

It is being set in individual VM - check out power options.
Bryan ButlerCommented:
I guess you're going to need a startup script that you put in your "windows startup".  I have one that waits till there are at least 26 processes running to start running tests this way....

& "C:\Program Files\VMware\VMware Workstation\vmrun"  -gu Tester -gp drmsncsu start "C:\Users\Bryan.DRMS\Documents\Virtual Machines\XP_Base_D2\Windows XP Professional.vmx"  

Start-Sleep 25
do {
    $numProcesses=& "C:\Program Files\VMware\VMware Workstation\vmrun" -gu Tester -gp drmsncsu ListProcessesInGuest "C:\Users\Bryan.DRMS\Documents\Virtual Machines\XP_Base_D2\Windows XP Professional.vmx" | measure-object -line


    Start-Sleep 10
} until ($numProcesses.Lines -gt 26)

As far as shutting down, this might help:  http://communities.vmware.com/message/949876#949876
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Gonzalo BecerraSharePoint - Technical Lead for Operations & Engineering Team - Superrvising AssociateAuthor Commented:
Sorry, can tell me any example? i have the Virtual Machine on D:\Virtual Machines\Win2k3.vmx and user Administrator
Bryan ButlerCommented:
So, to start it with powershell:

& "C:\Program Files\VMware\VMware Workstation\vmrun"  -gu <userid>-gp <password> start "D:\Virtual Machines\Win2k3.vmx"

And I guess DOS would work without the "&".  This assume you installed to the default location.  You supply your userid and pw.  Does that work for you?
Gonzalo BecerraSharePoint - Technical Lead for Operations & Engineering Team - Superrvising AssociateAuthor Commented:
Thanks, but i have a problem when i test startup the virtual machine.
The version of Vmware is Vmware Server 2.0

Thanks for help! :=)

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.