VMware vCenter Server Appliance hostname and DNS configuration revert after a reboot
search cancel

VMware vCenter Server Appliance hostname and DNS configuration revert after a reboot

book

Article ID: 344865

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
  • vCenter Server Appliance hostname and DNS configuration reverts to original values after rebooting the VCSA machine.
  • Changes made to the VCSA hostname or the DNS server through the command line or VAMI do not persist across reboots.


Environment

 

VMware vCenter Server Appliance 7.0.x
VMware vCenter Server Appliance 6.7.x
VMware vCenter Server Appliance 6.5.x
VMware vCenter Server Appliance 6.0.x
VMware vCenter Server Appliance 5.5.x

Resolution

Option 1: (for VCSA 6.0)
  1. Verify the hostname has changed using this command:
       cat /etc/hosts
  1. To prevent reversion of the host name, in an SSH session to the VCSA, edit the file vi /etc/sysconfig/networking/devices/ifcfg-eth0 to ensure that the host has the correct name.
  2. When network configuration occurs insert this entry before the IP Address line:

       HOSTNAME=hostname.fqdn ()  [ Where hostname.fqdn is the fully qualified VCSA hostname desired] 

  1. Save the file and exit the editor.


Option 2:
As an alternate method use provided below command to verify and update the vCenter appliance IP-address and hostname 
                # /opt/vmware/share/vami/vami_config_net.

Option 3: 
  1. Change the hostname from the VAMI page directly by navigating to VCSA_IP:5480 in a Web browser, [where VCSA_IP is the IP address of the VCSA.] 
  2. Click the Admin Tab, and press the Toggle Certificate Setting Button to set 'Certificate Regeneration Enabled' to yes.
  3. Power off the VM.
  4. Edit Settings of the VM. 
            [Options] - [vApp Options]
             "vApp Options" should be in "Enabled" state.
              "Properties" section should be filled with all the required information i.e. Hostname, Default Gateway, DNS etc under it and then click on OK.
  1. Power on the VM.
To prevent generation of new certificates in every reboot:
  1. Login to the VAMI page.
  2. Click the Admin Tab.
  3. Press the Toggle Certificate Setting Button to set 'Certificate Regeneration Enabled' to No.
 
To prevent reversion of the DNS configuration:
  1. Login to the VAMI page. [VCSA_IP:5480 in a Web browser] 
  2. Click the Networking Tab.
  3. Click the Address Tab and enter the desired DNS IP address.
  4. Perform a graceful shutdown of the VCSA machine for the changes to apply.
  5. Reboot the appliance. 
The DNS configuration is now persistent across reboots.
 


Additional Information