Wednesday, July 8, 2009

How to remove snapshots for all VMs on a Host

From the ESX console, run the following command

vmware-cmd -l | while read vmxpath; do vmware-cmd $vmxpath removesnapshots;done

This gets a list of the VMS, for each item returned, pass in the path through the variable $vmxpath and run the removesnapshots command.

No comments:

Post a Comment