I created a VM from RHEL ISO Fle, and followed some steps to cleanup nic details and also inserted a systemd script to create machine id. Converted VM to template, However when i spin a new VM with new hostname via template, it has same Hostname as template. Can you please direct what i missed here, I went through lot of documents found online nothing helped me out. New to VMware world.Thanks
vSphere handles the template creation at the Virtual Machine level, by default. Therefore, anything internal to the VM is not modified during the deployment of a template.
There is a way to change that through the usage of Guest Customizations. This will allow you you to change several internal properties of the VM, including the guest OS' hostname. More info: Create a Customization Specification for Linux