Symptoms
Instant clone virtual machines do not release DHCP acquired IP address lease during refresh/recompose.Clone customization fails because no new IP addresses are available.Note: This KB is applicable for VMware Horizon 7 version 7.8 and above
Cause
DHCP lease for IP address is released by a clone during shutdown operation. If the clone shutdown was not gracefully completed, the IP address may not be released. The connection server waits 60 seconds by default for shutdown to complete during refresh/recompose cycle. If shutdown is not complete by then, it will force power-off the clone VM causing the lease to not be released.
Resolution
To resolve this issue:
If you have windows update enabled on clones, it can cause increased shutdown times while windows is applying updates. In this case, run windows update on your primary image, disable windows update service on primary and push a new image. If the issue persists, follow option 2 or 3 described below.Configure a power-off script to release the IP address during shutdown. Note that this will release the IP address early in the shutdown process. If there are other services/drivers requiring network connection, follow option 3 explained below.
Create a batch script on primary VM containing the command “ipconfig /release”. For IPv6 environment, use "ipconfig /release6".Edit the pool on connection server and set the value for “Power-off script name” to absolute path of the script on primary VM.Push the new primary image to update instant clone pool.
A slow shutdown, taking longer than 60 seconds, will cause the connection server to power off the VM. In that case, increase the timeout for guest shutdown from default of 60 seconds to a longer timeout. Follow the below steps to change the timeout to 120 seconds. No reboot or push image is needed after this change.
Connect to view ADAM Database. Refer: KB 2012377 In the ADSI Edit navigation pane, select OU=Properties, OU=VirtualCenter.Find the correct virtual center object by validating pae-VCURL attribute. To view attributes of an object, right click and select Properties.Scroll to pae-NameValuePair attribute. Edit and add value guestOsShutdownToolsTimeoutSec=120.