?
Solved

Powershell on VMware 5.5

Posted on 2014-03-20
9
Medium Priority
?
461 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
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When converting a physical machine to a virtual machine using VMware vCenter Converter Standalone or vCenter Converter Enterprise, if an adapter type is not selected during the initial customization the resulting virtual machine may contain an IDE d…
Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
Suggested Courses

800 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