xenserver/win-xenguestagent — pull request #4 by benchalmers (2013-09-04 13:43:52+00:00)
Title: [CP-5322] Add a new feature to set guest hostname via the guest agent

Feature is present if control/feature-setcomputername=1

To set the default name write 'set' to control/setcomputername/action

To set a non-default name write the name to control/setcomputername/name

The response appears in control/setcomputername/state

control/setcomputername/warn may contain information about non-error
behaviours of this feature (eg, if the NetBIOS computer name will be
truncated)

control/setcomputername/error may contain additional error information

control/setcomputername/state should be removed if you do not intend to
reboot the VM to initiate a name change

(note: this sets the DNS name, which may be up to 64 characters, the
NETBIOS name can only be up to 15 characters, and will be truncated
if the hostname exceeds this)

This changeset also adds data/host_name_dns which will report the dns
hostname (as opposed to the NetBIOS hostname) of the computer

Signed-off-by: Ben Chalmers