Solved

Vmware 2.0 Free - Automatic Power on when system start

Posted on 2009-04-06
7
740 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
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.

 
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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Last article we focus in how to VMware: How to create and use VMs TAGs – Part 1 so before follow this article and perform the next tasks, you should read the first article how to create the TAG before using them in Veeam Backup Jobs.
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.
Teach the user how to use vSphere Update Manager to update the VMware Tools and virtual machine hardware version Open vSphere Client: Review manual processes for updating VMware Tools and virtual hardware versions: Create a new baseline group in vSp…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

708 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

11 Experts available now in Live!

Get 1:1 Help Now