Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Powershell on VMware 5.5

Posted on 2014-03-20
9
Medium Priority
?
462 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
9 Comments
 
LVL 35

Expert Comment

by:Seth Simmons
ID: 39943002
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 62

Expert Comment

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

Author Comment

by:AXISHK
ID: 39944301
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 62

Expert Comment

by:gheist
ID: 39944558
No idea. If you have 128CPUs and 100GB/s disk you can start all systems at once.... Otherwise it s one-after-another...
0
 

Author Comment

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

Expert Comment

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

Author Comment

by:AXISHK
ID: 39946896
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 62

Accepted Solution

by:
gheist earned 2000 total points
ID: 39947150
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
ID: 39948280
Tks
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
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 Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

610 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