The Guest OS Customization process cannot apply network settings or a unique identity when deploying a VM from a Linux template despite the valid specification assigned in vCenter. Because the system retains default values the critical files /etc/hostname and /etc/hosts remain unchanged.
/var/log/vmware-imc/toolsDeployPkg.log on the failed VM[YYYY-MM-DDTHH:MM:SS] ERROR: Fatal error occurred during customization !! Customization halted[YYYY-MM-DDTHH:MM:SS] ERROR: Error : Operation not permitted: Error writing data to file (/etc/sysconfig/network). Operation not permitted at /var/run/.vmware-imgcust-dPMTCAb/scripts/Utils.pm line 655.This issue occurs when a network configuration file on the guest OS has the immutable attribute set. This attribute locks a file against modification, deletion, or renaming, even by the root user, preventing the vmtoolsd process from updating necessary files during customization.
To resolve this issue, the immutable flag must be removed from the affected configuration file within the source template.
lsattr /etc/sysconfig/networksudo chattr -i /etc/sysconfig/network