Configure NTP from cli or UI

From Notes_Wiki

Home > VMWare platform > VMWare vSphere or ESXi > Configure NTP from cli or UI

Changing time from CLI or UI is covered at ESXi host time settings

Configuring NTP from ESXi Web UI

  1. Login into ESXi web UI as root user
  2. Go to Host -> Manage. Click on System -> Time and Date in right panel
  3. Click on edit NTP settings
    1. Configure NTP to start and stop with host
    2. Configure comma separate ntp servers list
    3. Click Save
  4. Under Host -> Manage. Click on Services.
  5. Click on "ntpd" and click "Start"
  6. We can go back to Host -> Manage. Click on System -> Time and Date in right panel and look at value of "Current date and time"


Configure NTP from cli

To configure NTP from cli use:

  1. Enable SSH to ESXi host and SSH to ESXi as root user
  2. edit '/etc/ntp.conf' and add server details such as:
    server 0.pool.ntp.org
    server 1.pool.ntp.org
    server time.google.com
  3. Restart NTP service
    /etc/init.d/ntpd restart
    This command is useful to ensure time gets synced with configured NTP immediately without any delay. This might help when time between hosts must match such as while doing Powering off and powering on a VSAN cluster
  4. Check peer status
    ntpq -p
  5. Enable ntpd service
    chkconfig ntpd on
    chkconfig --list | grep ntpd



Home > VMWare platform > VMWare vSphere or ESXi > Configure NTP from cli or UI