Symptoms
An error message halts provisioning, machines provide the following error message:
"Error during Provisioning Initial publish failed: Fault type is AGENT_CUSTOMIZATION_FAULT - Internal template vm-XXXX customization failed. Error description not set by agent"
The Internal Template is a clone of your parent image where a domain join is performed.Logs state that customization failed with an error message not set by the agent.
When you follow the guidelines outlined here: Troubleshooting Vmware Horizon Machines that do not complete Customization (83985), you inspect the customization logs and find that the machine joined the domain, and restarted but failed for an unknown reason.
2023-02-16T10:09:34.189-06:00 DEBUG (0F2C-0FC8) <4040> [vmware-svi-ga] svmga::core::windows::Customization::CustomizeVM(): ** Internal Template **
2023-02-16T10:09:45.898-06:00 DEBUG (0F2C-0FC8) <4040> [vmware-svi-ga] svmga::core::windows::DomainJoin::JoinMachineToDomainEx(): Domain Join successful
2023-02-16T10:09:55.993-06:00 DEBUG (0F2C-0FC8) <4040> [vmware-svi-ga] svmga::core::windows::Cloneprep::CustomizeIT(): Template: Marked Template Rebooted. About To Reboot
2022-02-16T10:10:35.153-06:00 DEBUG (0FC8-0CCC) <3276> [vmware-svi-ga] svmga::core::windows::Customization::CustomizeVM(): Internal Template Customization Failed
Purpose
To highlight a potential error message that may appear during customization.
Resolution
Please ensure all appropriate antivirus exclusions are in place :
Antivirus executable exclusion list for VMware Horizon (2082045)For a full overview of considerations with Anti-Virus and Horizon, please see our TechZone Whitepaper on the topic: Antivirus Considerations in a VMware Horizon Environment
If you have Appvolumes or other software that can attach or detach disks, please ensure attachment does not occur during this process.
To resolve the issue, On the parent image perform the below steps:
Stop the svserviceDisable the svserviceCreate a post-customization script to be run. Note: For more information refer, Running QuickPrep Customization Script
For example:
Sc config svservice start= auto
Sc start svservice
Note: A Final restart of the VM is recommended.
Shut down and take a snapshotRecompose or enable provisioning
Another option would be to disable attachments on the Appstack before doing a recompose or provisioning operation for the pool
Related Information
This is a child article of AGENT_CUSTOMIZATION_FAULT - An Index of Instant Clone Customization Errors (90884)