How to change the hostname of a VMware replication agent

Changing the hostname of a VMware replication agent

Task

Change the hostname of a VMware replication agent.

Solution

The VMware replication agent hostname ("hwragent", by default) can be changed from the agents's console.
  1. Go to the agent command line by pressing the "To console" button in TUI.
  2. Edit /etc/hostname file and change the hostname of the agent machine.
  3. Reboot the VMware VM gracefully for the changes to take effect.