Solved

Powershell on VMware 5.5

Posted on 2014-03-20
9
452 Views
Last Modified: 2014-03-23
Is it possible to write a powershell to shutdown all vm guests (Window & Linux) on a VMware 5.5 host ?

How to allow the VM guests be power-on automatically once the VMware 5.5 host is boot up ?

Tks
0
Comment
Question by:AXISHK
  • 4
  • 4
9 Comments
 
LVL 34

Expert Comment

by:Seth Simmons
Comment Utility
see if this works for you

Using PowerShell to Gracefully Shut Down Multiple Virtual Machines in VMware
http://pipe2text.com/?page_id=1889
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
You need to set startup/shutdown configuration on ESX(i) host.
No powershell involved.
0
 

Author Comment

by:AXISHK
Comment Utility
Under Per-VM OVerrides, I should select "Guest shutdown" to leave OS performs the work.

For Startup Delay of 120s, does it mean VM will startup when VM host starts up for 120s ?

How about "Shutdown Delay" for VM ? Should I set it to 0 when I shutdown the VM host ?

Tks
VM-host.png
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
No idea. If you have 128CPUs and 100GB/s disk you can start all systems at once.... Otherwise it s one-after-another...
0
NetScaler Deployment Guides and Resources

Citrix NetScaler is certified to support many of the most commonly deployed enterprise applications. Deployment guides provide in-depth recommendations on configuring NetScaler to meet specific application requirements.

 

Author Comment

by:AXISHK
Comment Utility
Tks. What's the meaning for "Shutdown Delay" ? Should the VM be shut down at once if VM host is power off ?
0
 
LVL 61

Expert Comment

by:gheist
Comment Utility
It will wait for 120s for "shut down guest" to complete, then "power off"
0
 

Author Comment

by:AXISHK
Comment Utility
When I shutdown the VMhost, it will wait for 120s and each VM guestwill shutdown together.
If the VM host power on again, the VM guests will be startup after 120s.

Is my attached setting correct ?  Tks
VM-host.png
0
 
LVL 61

Accepted Solution

by:
gheist earned 500 total points
Comment Utility
You have to move machines higher in the list to start them automatically.
Current picture says - shut down good, but not start anything
0
 

Author Closing Comment

by:AXISHK
Comment Utility
Tks
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Using a software based iSCSI solution, there is no requirement to purchase a hardware iSCSI initiator or TOE (TCP/IP Offload Engine) interface card. A standard network interface card can be used to connect an existing ESXi server to a remote iSCSI t…
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 install vSphere Update Manager  Console to Windows system:  Install vSphere Update Manager: Configure vSphere Update Manager plug-in in vSphere Client: Verify vSphere Update Manager settings in vSphere Client:
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:

772 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