The customization may fail if third party software is installed in the template virtual machine or on the VirtualCenter server.
The VirtualCenter process uses custom scripts/executables to generate and inject the customized sysprep file from the Customization Wizard into the virtual machine. If any software (such as anti-virus) prevents these processes from running, the customization process fails to run the sysprep in the virtual machine.
To workaround this issue, try one of the following: