vCMA Appliance – Hostname Won’t Survive Reboot

VMware_vSphere_Logo

So in order to change the actual hostname of vCMA virtual appliance, from default localhost/localhost.localdom, we have to edit these files:

/etc/hosts

/etc/hostname

/etc/sysconfig/network

My vCMA is called SPN-vCMA-01 on Alex.com domain so after session with vi we should have this:


Nothing major you might think and quite rightly so. BUT the settings are not surviving a reboot! It all gets reverted back to localhost/localhost.localdom once you give the VM a kick…

The trick here is to add a pointer (PTR) record in your reverse lookup DNS zone (the same that vCMA points for name resolutions) and viola, tt suddenly remembers the correct hostname!

Once more thing you might want to do is to add A record for you applicance in forward lookup zone.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.