vSphere tip: Don’t forget to set the hostname

After you apply a host profile to a new member of an HA cluster on vSphere, you may receive an error indicating that HA could not be made active on the new host. In your perusal of events in vCenter, you may run across this error:

Cannot complete command ‘hostname -s’ on host or returned incorrect name format

If this happens to you, all it means is that you’ve not set the hostname for the new vSphere host and it’s probably still set to “localhost.” This is easy to correct.

Simply go to Configuration > DNS and Routing > Properties and enter the correct hostname.

Then, place the server into maintenance mode and remove it from maintenance mode. HA will restart and all will be well.

About The Author

Leave a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Scroll to Top