- VCP5 – NOTES Configure NTP on an ESXi Host
Time syncing is very important when it comes to production environment. All the devices must be synced to NTP or a time server so in case of anomalies, breakdowns or crashes or any other problem the logs can be compared.
The VMWARE VSPHERE has built in NTP Client which can be used to sync the time with an NTP server local or available from internet. It is advisable to sync all the devices in your infrastructure to the same NTP server. In vmware vshphere you can do the following configuration by clicking on the
ESXi host then clicking on configuration then clicking on time time configuration . The screen will show do you currently have the NTP client running or not. The next screenshot shows the NTP service is not running. To change the NTP settings click on the properties link.
On clicking the properties link you get a window like this you can enable the NTP client from here as well but if you want to add NTP server you have add NTP server to the esxi host you need to click on the options link
On clicking the options button you get another window where you can tweak the settings how you want the NTP client to be started the settings include.
1.) Start automatically if ports are open and stop when ports are closed.
Note:- Selecting this option starts the NTP service automatically when port 123 UDP which is default port for NTP is open. It will stop the service if the port is closed
2.) Start and Stop with host.
Note:- This selection starts the service automatically when the host starts and stop when the host stops (Which is obvious )
3.) Start and Stop manually.
Note:- You can manually start or stop the service as per your convenience.
On the next tab NTP settings You can add number of NTP servers. I am in CANADA and previously worked with a professor from university of calgary so I used the NTP servers from U of Calgary.
After Finishing the setting you can go back again to the configuration window of the ESXi host and check whether the host is synchronized with NTP server or not.
I received an error
Later on I found the clock on the BIOS was not set correctly. But before I could change the time on BIOS the NTP server synchronized.
Hope this article is helpful to you in your VCP5 studies.