Virtual machine hostname differs within guest OS than that of the one specified during guest OS customization.
book
Article ID: 373946
calendar_today
Updated On:
Products
VMware vCenter Server 7.0
Issue/Introduction
Virtual machine hostname within guest OS being randomly picked and differs from the one specified during guest OS customization.
For example: If we specify the VM name as "Win11VM1" during guest OS customization. But after VM deployment, the VM hostname reflects different (eg. DESKTOP-XXXX) than that of the one specified as VM name.
Environment
VMware vCenter Server 7.x
Cause
The installed applications within guest OS might be preventing to apply the guest OS customization settings and not allowing to change the hostname.
Resolution
Deploy a new VM with required OS configuration without any applications installed and convert it into template.
Apply the guest OS customization (using VM name as hostname) when deploying VM from this template.
Check whether the VM name is reflecting as hostname within guest OS post deployment.