Solved

Powershell on VMware 5.5

Posted on 2014-03-20
9
454 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
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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
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 500 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

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.
In this article, I show you step by step with screenshots to assist you - HOW TO: Deploy and Install the VMware vCenter Server Appliance 6.5 (VCSA 6.5), with some helpful tips along the way.
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 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…

776 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