NTP : Time Synchronization Settings2023/02/22 |
Time Synchronization is disabled by default but if you like to enable it, configure like follows.
For ESXi time settings,
it's impossible to change timezone setting on ESXi, timezone is set to UTC.
So time stamps of files or log recordes are stored with UTC time.
Therefore, you need to see time stamps on the system with remembering they are UTC time.
|
|
[1] | Configure Time Synchronization Settings. |
# current NTP status [root@ctrl:~] esxcli system ntp get Enabled: false Loglevel: warning PID: 0 Runtime Seconds: 0 Servers: Service Providing Kernel Time: Time Service Enabled: false Time Synchronized: false # set NTP servers and enable NTP client feature # esxcli system ntp set --server=[ntp server1] --server=[ntp server2] ..... [root@ctrl:~] esxcli system ntp set --server=10.0.0.10 --server=ntp.nict.jp [root@ctrl:~] esxcli system ntp set --enabled=yes
esxcli system ntp get Enabled: true Loglevel: warning PID: 262861 Runtime Seconds: 450 Servers: 10.0.0.10, ntp.nict.jp Service Providing Kernel Time: Network Time Protocol Time Service Enabled: true Time Synchronized: true # show synchronization status [root@ctrl:~] ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== dns.srv.world 61.205.120.130 2 u 1 64 1 0.306 +0.034 0.000 ntp-b3.nict.go. .NICT. 1 u 1 64 1 20.940 +1.203 0.000[root@ctrl:~] chkconfig ntpd ntpd on[root@ctrl:~] esxcli network firewall ruleset rule list | grep ntp ntpClient Outbound UDP Dst 123 123 |
To change NTP settings on VMware Host Client, Configure like follows.
|
|
[2] | Login to VMware Host Client with root user account and click [Manage] icon that is under [Navigator] menu. |
[3] | Click [Time & date]. |
[4] | Click [Edit NTP Settings]. |
[5] | Check a box [Use Network Time Protocol (enable NTP client)]. Next select [Start and stop with host] to enable auto-start setting and also input NTP servers you like to use. |
[6] | After saving settings, start [ntpd] service on [Services] section. |
[7] | Make sure the system time that is shown with UTC time. |
|