I posted about “retreat mode” and how to delete the vCLS VMs when needed a while back, including a quick demo. Back then you needed to configure an advanced setting for a cluster if you wanted to delete the VMs for whatever reason. (Usually for troubleshooting purposes people would do a delete/recreate.) Starting with vSphere 8.0 U2 you can now use the UI to enable retreat mode on a per cluster level. How do you do this? well fairly straight forward:
- Click on the cluster you would want to delete the VMs for
- Click on Configure
- Click on “General” under “vSphere Cluster Services”
- Click on “EDIT VCLS MODE”
- Click on “Retreat Mode” and click “OK”
Now the VMs will be deleted, if you want to recreate the VMs, follow the same procedure, but change “Retreat Mode” to “System Managed”. I tested the process yesterday and created a quick demo for you:
Quick and Great demonstration
This is a huge help, in my case as a cloud provider we have been needing to configure this to decommission clusters and the settings stay in the config files unless manually removed for a cluster which does not exist anymore.
In my case, an incorrect VM registration has placed production VMs into the vCLS folder. Now, I’m unable to move these VMs out of the vCLS folder, and we are considering enabling Retreat Mode (the VMware ESXi version is 7.0U3q). Our concern is whether enabling Retreat Mode could delete the production VMs or only the vCLS VMs. Thank a lot for you suggestions
I replied via email, but let me reply here as well:
You can safely use retreat mode, it really only impacts the vCLS VMs, it has no impact on any of the other VMs when it comes to deletion.