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
- Login into ESXi web UI as root user
- Go to Host -> Manage. Click on System -> Time and Date in right panel
- Click on edit NTP settings
- Configure NTP to start and stop with host
- Configure comma separate ntp servers list
- Click Save
- Under Host -> Manage. Click on Services.
- Click on "ntpd" and click "Start"
- 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:
- Enable SSH to ESXi host and SSH to ESXi as root user
- edit '/etc/ntp.conf' and add server details such as:
- server 0.pool.ntp.org
- server 1.pool.ntp.org
- server time.google.com
- 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
- Check peer status
- ntpq -p
- Enable ntpd service
- chkconfig ntpd on
- chkconfig --list | grep ntpd
Home > VMWare platform > VMWare vSphere or ESXi > Configure NTP from cli or UI