Thursday, July 4, 2024
HomeData ModellingVirtualizationHow To Configure NTP Time on vSphere ESXi / vCenter

How To Configure NTP Time on vSphere ESXi / vCenter

In this blog post we see how to set up time synchronization of your vSphere ESXi / vCenter using a time server from your local network. If using a Local NTP Server is not an option for you, it’s also okay to go with an Internet-based(Public) time server that takes care of your time zone. It is assumed that your NTP server doesn’t have authentication mechanisms in place, or any kind of access control that restricts NTP clients connectivity.

Step 1: Configure NTP Server (Optional)

You can choose to use publicly available NTP servers or set one locally in your infrastructure. For local installation and configuration of NTP servers check out the guides in the following links.

With the NTP server installed and configured you can then proceed to configure your vSphere ESXi environment.

Step 2: Enable NTP daemon on ESXi Hosts

On each ESXi host we’ll need to start and enable NTP service. This can be performed from vSphere Web Client or from vCenter web console.

Option 1: Enable NTP daemon on ESXi using vSphere Web Client

Login to your host’s vSphere Web Client and go to Host > Manage > Services. Select NTP daemon and click start.

vsphere esxi ntp 01

Update the policy as well to start the service with the host.

vsphere esxi ntp 02

Option 2: Enable NTP daemon on ESXi using vCenter

Login to vCenter console and select the host where NTP daemon is to be started. Go to Configure > Services. From a list of services choose NTP Daemon and hit Start.

vsphere esxi ntp 03

Next click “EDIT STARTUP POLICY” to update how the service lifecycle is managed.

vsphere esxi ntp 04

Choose Start and stop with the host for automatic startup when the host is started.

vsphere esxi ntp 05

Step 3: Configure vSphere ESXi / vCenter to use NTP

Let’s consider the two configuration scenario for setting NTP server in your VMware vSphere environment.

Configure vCenter to use NTP synchronization

Login to VMware vCenter server management console – https://vcenter.example.com:5480/. Authenticate using credentials set at the time of installation.

vsphere esxi ntp 06

From the main menu navigate to Time > Time zone > Edit to set the correct timezone.

vsphere esxi ntp 07

Set NTP host under Time synchronization settings.

vsphere esxi ntp 09

Configure ESXi host to use NTP Time

You can use either of these methods.

Method 1: Using vSphere Web client

Select the host, then go to Manage > System > Time & date > Edit NTP Settings

vsphere esxi ntp 10

Choose the setting to enable NTP and input your NTP server IP. If you haven multiple servers separate the list using comma.

vsphere esxi ntp 12

When done save the settings by clicking Save.

Method 2: Using vCenter web console

Login to vCenter, then select ESXi host, Configure > Time Configuration > ADD SERVICE > NETWORK TIME PROTOCOL

vsphere esxi ntp 13

Provide IP address of NTP server. For multiple servers separate the list with comma.

vsphere esxi ntp 14

Click “TEST SERVICES” to test NTP service connection.

vsphere esxi ntp 15

Our ESXi host and vCenter should now be using NTP for time settings. It’s recommended to provide multiple NTP servers to ensure time is at sync at any point in time. Configuring multiple NTP servers provides redundancy in case one of the servers is not reachable.

VMware Learning Materials:

Similar articles:

Calisto Chipfumbu
Calisto Chipfumbuhttp://cchipfumbu@gmail.com
I have 5 years' worth of experience in the IT industry, primarily focused on Linux and Database administration. In those years, apart from learning significant technical knowledge, I also became comfortable working in a professional team and adapting to my environment, as I switched through 3 roles in that time.
RELATED ARTICLES

Most Popular

Recent Comments