NTP Server settings might not be applied in some circumstances
search cancel

NTP Server settings might not be applied in some circumstances

book

Article ID: 405706

calendar_today

Updated On:

Products

VCF Operations/Automation (formerly VMware Aria Suite) VMware vSphere ESXi

Issue/Introduction

  • In the Time Synchronization settings menu (https://<vIDM FQDN>:8443/cfg/configuretimesync), the system fails to save NTP configurations. After entering the following details and clicking the Save button, the NTP Server field remains blank:
    • Time Sync: NTP
    • NTP Server: <NTP Server FQDN or IP address>
  • Attempts to manually configure the NTP Server via the command line using ntpServer.hzn also fail to return a successful status:
    • /usr/local/horizon/scripts/ntpServer.hzn --set <NTP Server IP address>
      /usr/local/horizon/scripts/ntpServer.hzn --get
      # Output: server=<NTP Server IP address>
      
      /usr/local/horizon/scripts/ntpServer.hzn --status
      # Output: ntpstatus=error
  • This issue occurs when using a standalone Windows Server 2019 (not joined to Active Directory) with the NTP Server role enabled.

Environment

VMware Identity Manager 3.3.7

Cause

  • The NTP Server's Root Dispersion is greater than 5 seconds. If this value exceeds the 5-second threshold, the vIDM default configuration may fail to update or save NTP Server settings.
  • For Windows-based NTP servers, you can verify this status by running the following command:
    • w32tm /query /status
  • Example Output:
    • Root Dispersion: 10.0000000s

Resolution

To resolve this issue, adjust the RootDistanceMaxSec parameter within the vIDM appliance to allow for a higher dispersion threshold. Follow these steps:

  1. Log in to the vIDM appliance as the root user via SSH.
  2. Create a backup of the existing configuration file:

    cp /etc/systemd/timesyncd.conf /etc/systemd/timesyncd.conf.backup
  3. Open the /etc/systemd/timesyncd.conf file using a text editor (such as vi):

    vi /etc/systemd/timesyncd.conf
  4. Locate the line #RootDistanceMaxSec=5 and change it to RootDistanceMaxSec=20.

    Note: Ensure you remove the # character to uncomment the line and enable the setting.
  5. Save the changes and exit the editor.
  6. Restart the time synchronization service to apply the new configuration:

    systemctl restart systemd-timesyncd.service
  7. Retry the NTP Server configuration in the Time Synchronization menu of the UI.

Additional Information

Note: The appropriate value for RootDistanceMaxSec may vary depending on the environment and the specific configuration of the NTP Server. If the configuration still fails after setting the value to 20, try increasing it further (for example, to 30 or higher).