You can change the NTP server configuration after the initial deployment of your VMware Cloud Director appliance.

Procedure

  1. Log in directly or by using an SSH client to the VMware Cloud Director appliance console as root.
  2. To modify the NTP server, edit the /etc/systemd/timesyncd.conf file.
    The contents of the /etc/systemd/timesyncd.conf file must be similar to the following. To specify multiple NTP servers, use a space-delimited list.
    # This file is part of systemd.
    #
    # systemd is free software; you can redistribute it and/or modify it
    # under the terms of the GNU Lesser General Public License as published by
    # the Free Software Foundation; either version 2.1 of the License, or
    # (at your option) any later version.
    #
    # Entries in this file show the compile time defaults.
    # You can change settings by editing this file.
    # Defaults can be restored by simply deleting this file.
    #
    # See timesyncd.conf(5) for details.
    
    [Time]
    #FallbackNTP=time1.sample-time-server.com time2.sample-time-server.com time3.sample-time-server.com time4.sample-time-server.com
    NTP=time.sample-time-server.com
  3. Restart the NTP service.
    systemctl restart systemd-timesyncd.service -l
  4. Verify that the service is running properly.
    timedatectl status
    Sample output from the timedatectl command.
    Local time: Tue 2022-12-13 15:29:18 UTC
      Universal time: Tue 2022-12-13 15:29:18 UTC
            RTC time: Tue 2022-12-13 15:29:18
           Time zone: Etc/UTC (UTC, +0000)
     Network time on: yes
    NTP synchronized: yes
     RTC in local TZ: no
    
  5. Sync the time to the NTP server.
    ntpdate time_server
  6. Repeat steps 2 through 5 on each appliance in the cluster.