Some of you by now will have had chance to try out the new instant clones functionality in Horizon 7. It’s a great step forward in terms of the ‘just in time’ desktop and it’s ability to eliminate maintenance windows and speed up provisioning make it a great tool going forwards.
However, a question i am commonly asked is how to handle placing hosts into maintenance mode. As the instant clone process utilises local running machines to clone from, these machines cannot be vmotioned and if you try to shut them down, you’ll get issues with all the desktops on the host.
I’ve seen people try to get around this in different ways including disabling pool provisioning and manually deleting all the objects, but there is a much easier way. Disabling provisioning after all is a bit extreme if you have many hosts and just want to place one in maintenance mode.
Here are two ways you can achieve this:
Method 1. From vSphere Client
- Select the host that you want to put in maintenance mode. If you are using the vSphere web client, make sure that the plug-in to edit Annotations is installed.
- Look up Annotations in the host’s Summary tab and set InstantClone.Maintenance to 1.
- Wait up to 3 minutes and the parent VMs on this host will be deleted. Also, the value for InstantClone.Maintenance will change to 2.
- Put the host in maintenance mode. This host will no longer be used for provisioning.
- Perform maintenance.
- Take the host out of maintenance mode.
- Clear the InstantClone.Maintenance annotation value.
- As new provisioning happens, parent VMs and then instant clones will be created on this host.
Method 2. From Connection Server
- From the Connection Server, run IcMaint.cmd to delete the parent VMs and put the host in maintenance mode. See http://pubs.vmware.com/horizon-7-view/index.jsp#com.vmware.horizon-view.desktops.doc/GUID-6025D684-2E05-4857-9C24-18F16DDC38FD.html. The syntax is: IcMaint.cmd -vc <VC host name or IP> -uid <user ID> -password <user password> -hostName <ESXi host name> -maintenance ON
- Wait up to 3 minutes and the parent VMs on this host will be deleted.
- Perform maintenance.
- Run IcMaint.cmd again to take the host out of maintenance mode. The syntax is: IcMaint.cmd -vc <VC host name or IP> -uid <user ID> -password <user password> -hostName <ESXi host name> -maintenance OFF
- As new provisioning happens, parent VMs and then instant clones will be created on this host.