This article provides steps to change the hostname of a VMware ESXi host.
VMware vSphere ESXi 7.X
VMware vSphere ESXi 8.X
VMware vSAN 7.x
VMware vSAN 8.x
To rename a VMware ESXi host using the HTML5 client:
The iSCSI Qualified Name used for iSCSI storage configuration is based on the hostname of the ESXi host. If you are facing a storage connectivity issue after changing the hostname of the ESXi host, make sure to review your iSCSI software initiator configuration.
Unable to rename the iSCSI initiator on the ESXi host
Disabling vNetwork Distributed Switches
NOTE: If there are VM's on the host when it is removed from inventory, these will be removed as well. When the host is added back to the vCenter, the VM's residing on the host will be added back as well. This will result in the VM's having a new Managed Object ID (the "vm-###" value associated with the VM in vCenter). To avoid this change, migrate the VM's to a different host prior to the above procedure.