VMware Cloud Community
kralijir
Contributor
Contributor
Jump to solution

Shut down all VMs on ESXi

Hello,

I am new in vSphere administration. I would like to restart our ESXi servers due to updates, but I read that you should shut down all VMs that are on it. Do you have a better solution to do that then shut down VMs one by one? I would expect a powershell script but I did not find any so far.

Thank you

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
JLackman
Enthusiast
Enthusiast
Jump to solution

Kralijir, you can do that from the GUI console.

In the left pane, select the ESX host.

In the right pane, click on the "virtual machines" tab. Now, you can bulk select all of the VMs there, and simply right click to shut them all down, or make any other bulk changes.


Some changes via bulk selection require all VMs to be in the same state; Powered Off, Powered On, etc.

If this works for you, please mark this reply as the "answer".

View solution in original post

2 Replies
JLackman
Enthusiast
Enthusiast
Jump to solution

Kralijir, you can do that from the GUI console.

In the left pane, select the ESX host.

In the right pane, click on the "virtual machines" tab. Now, you can bulk select all of the VMs there, and simply right click to shut them all down, or make any other bulk changes.


Some changes via bulk selection require all VMs to be in the same state; Powered Off, Powered On, etc.

If this works for you, please mark this reply as the "answer".

AdilArif
Enthusiast
Enthusiast
Jump to solution

Hi Kralijir,

I understand your concern for not shutting down the VMs, as that would require downtime.

My suggestion would be see if you have enough resources to migrate all the VMs on the ESXi host to other hosts within the infrastructure. If yes, then you will have to migrate those VM's first.

Then put the host in maintenance mode and shutdown.

You can do use to method to update all the ESXi servers one by one.

Hope this helps.

Cheers,

Adil Arif

Cheers, Adil Arif https://in.linkedin.com/pub/adil-arif/5b/a22/30 Blog: http://enterprisedaddy.com
0 Kudos