Solved

Vmware 2.0 Free - Automatic Power on when system start

Posted on 2009-04-06
7
741 Views
Last Modified: 2012-05-06
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 :)
0
Comment
Question by:Gonzalo Becerra
  • 3
  • 2
7 Comments
 
LVL 14

Expert Comment

by:igor-1965
ID: 24077443
It is being set in individual VM - check out power options.
0
 
LVL 16

Expert Comment

by:Bryan Butler
ID: 24077495
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

$numProcesses.Lines

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


As far as shutting down, this might help:  http://communities.vmware.com/message/949876#949876
0
 
LVL 1

Author Comment

by:Gonzalo Becerra
ID: 24077761
Sorry, can tell me any example? i have the Virtual Machine on D:\Virtual Machines\Win2k3.vmx and user Administrator
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 16

Expert Comment

by:Bryan Butler
ID: 24082513
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?
0
 
LVL 1

Author Comment

by:Gonzalo Becerra
ID: 24082802
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! :=)

vmware.JPG
0
 
LVL 16

Accepted Solution

by:
Bryan Butler earned 500 total points
ID: 24131896
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"

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

When we have a dead host and we lose all connections to the ESXi, and we need to find a way to move all VMs from that dead ESXi host.
HOW TO: Upload an ISO image to a VMware datastore for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere Host Client, and checking its MD5 checksum signature is correct.  It's a good idea to compare checksums, because many installat…
Teach the user how to install ESXi 5.5 and configure the management network System Requirements: ESXi Installation:  Management Network Configuration: Management Network Testing:
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…

932 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

10 Experts available now in Live!

Get 1:1 Help Now