Symptoms
Following documentation ,Increase the Timeout Limit for ClonePrep Customization Scripts, extended the timeout limit beyond 10 minutes. However when provisioning desktops with a script that takes longer than 10 minutes, customization times out at 10 minutes.You can see errors similar to the below in Connection Server's debug log:Location of Horizon View log files (1027744)
[VirtualCenterDriver] VM: script-test1 timed out in customization state. Customization start time: 1674649072735. In Customization state for 619379 msecs. Customization method: cloneprep
[EventLogger] Error_Event:[BROKER_PROVISIONING_ERROR_VM_CUSTOMIZATION_TIMEOUT] "Provisioning error occurred for Machine script-test1: Customization operation timed out": MachineId=16680348-6cc1-4e0c-8fba-666b0d64dadd, MachineName=script-test1, Node=cs.test.local, Severity=ERROR, Time=Wed Jan 25 21:28:12 JST 2023, Module=Broker, Source=com.vmware.vdi.desktoptracker.VmInformation, Acknowledged=true
Cause
Horizon has logic to time out the customization procedure itself in 10 minutes, in addition to the set scripts timeout limit.
Resolution
To provisioning VDIs successfully, adjust your script so that it takes less than 10 minutes to complete.