Tuesday, April 26, 2011

Shut down all running VMs

From the ESX Service Console, you can run a short script to shut down all running VMs that are registered on the host. The following script will enumerate the running VMs, try to first shut them down gracefully, and power them off if a graceful shutdown is unsuccessful:

vmware-cmd -l | xargs -i'{}' vmware-cmd '{}' stop trysoft hard
More vQuotes

No comments:

Post a Comment