As I have a bunch of questions about how you can delete the vSphere Cluster Service VMs (vCLS VMs) I figured I would create a quick demo. It is pretty straightforward, and it should only be used when people are doing some kind of full cluster maintenance. This demo shows you how to get the VMs deleted by leveraging a vCenter Server Level Advanced setting (config.vcls.clusters.domain-c<identifier>.enabled). I have also written a post that has a bunch of requirements, Q&A, and considerations for the vCLS VMs, if you are interested in that read it here.
Here’s the summary of how to delete the VMs: Go to your vCenter Server object, go to the configure tab, then go to “Advanced Settings”, add the key “config.vcls.clusters.domain-c<identifier>.enabled” and set it to false. The domain “c-number” for your cluster can be found in the URL when you click on the cluster. It should look something like the following, where the bold part is the important bit: https://vcsa-06.rainpole.com/ui/app/cluster;nav=h/urn:vmomi:ClusterComputeResource:domain-c22:4df0badc-1655-40de-9181-3422d6c36a3e/summary. If you want to recreate the VMs, simply set the value to “true” when the deletion task has completed.
Note, if you have a resource pool configuration, enabling “retreat mode” (disabling vCLS)) doesn’t impact resource pools in any shape or form, it just impacts DRS load balancing. Anyway, I hope you find the demo useful.
Serhei says
What is a workaround when all vCLs VMs were deleted? How to recreate them?
Duncan Epping says
If they have been deleted you enable vCLS again using the advanced setting shown in the demo. If for whatever reason they just disappeared, add the advanced setting with “False”, wait for 60 seconds, then change the value to “True” and they should pop up again.
Kevin says
Hello,
I would like to reinstall totally my vCenter. I’m going to delete my vCenter VM for that. What is the best practice concerning vCLS before that, please ?
Duncan Epping says
I would recommend enabling Retreat mode so that the vCLS VMs are deleted before you add the hosts to the new vCenter Server.
Ron says
Greetings Duncan! Big fan! Is there a way to programmatically grab the cluster number needed to be able to automate this with powercli … I have a 4node self managed vsan cluster, and once upgrading to 7U1+ my shutdown and startup scripts need tweaking (bc the vCLS VMs do not behave well for this use case workflow). An alternative could be to not use DRS and HA … but I would like the customer to gain the benefits of these important features … I’ve scrubbed the communities site (to no avail for my use case), and bf I call support I figured I’d ask …
Duncan Epping says
William actually has examples of how to retrieve the MoRef for various objects, like the cluster: https://www.virtuallyghetto.com/2011/11/vsphere-moref-managed-object-reference.html. Hope this helps, and thanks for the compliments!
Ron says
Thx Duncan. Figured it out for my use case, and posted to communities https://communities.vmware.com/t5/VMware-vCenter-Discussions/disable-vCLS-need-to-delete-vCenter-advanced-option-name/m-p/2837907/highlight/true#M42545
Duncan Epping says
that is awesome, thanks for sharing!
Joe Cooper says
In order to retire an old datastore that vCLS VMs were placed on I put my cluster into retreat mode. The VMs did not delete themselves. So I went ahead and manually powered off and deleted the VMs. Now, at this point, after taking the cluster out of retreat mode and turning DRS back on the vCLS VMs are not being recreated and the cluster is showing the expected vSphere DRS functionality alert. Is there any way to force the cluster to re-provision the vCLS VMs?
Thanks,
Joe
Roland says
thanks for sharing. I had the problem that from the three vCLS VMs only one was available. The other two were sitting on an unavailable datastore… so I had no chance to manupualte them. So I just did your procedure: All VMs were deleted and then recreated on proper datastores.
Fabien says
Hello, what about disabling vCLS permently when you only have only 2 hosts in the cluster and no DRS license ? Will it impact HA ? HA relies on DRS to restart VM but since there is only 2 hosts in the cluster, if one fails it should not need much computation to know where to restart the VMs. 🙂
Duncan Epping says
Sure, you can do that. But keep in mind that over time vCLS will be used by HA as well. So disabling it may cause problems in the future.
ferdinho says
Hello Duncan, I have My vCLS on “inaccessible” status, What can I do?
Justin says
Awesome. Made the jump from 6.7 to 7.0.3 and several clusters had bad vcls vm’s that were basically in emergency (im doing nothing) “Grub rescue>” . this cleaned up those clusters including the bad ones.