VMware Cloud Community
Ravi1987
Contributor
Contributor

How to sync esxi 5.0 with external NTP server

Hi team,

i am building new infrastrure for Vmware Vsphere 5.0 to host almost 200 Virtual machine... DC and adc will be all virtual.  now i dont have any NTP server in my environment.  i want esxi server to sync with external NTP and then let my all vm DC/adc will sync from esxi ....

can we have any setting in esxi 5.0 with external NTP sync

Ravi
Tags (2)
Reply
0 Kudos
6 Replies
golddiggie
Champion
Champion

You can... Such as the ntp.org pool servers/configurations. Just use either the full name of the pool, or get the IP address that pool uses. I would rather use the name over the IP since the IP could change.

Reply
0 Kudos
rickardnobel
Champion
Champion

You can set this with the vSphere Client, by going to the Host - tab Configuration, select Time Configuration under Software.

My VMware blog: www.rickardnobel.se
Reply
0 Kudos
Ravi1987
Contributor
Contributor

plz share the all pool ipaddreses or names.

Ravi
Reply
0 Kudos
golddiggie
Champion
Champion

http://www.pool.ntp.org/en/

That lists them... Click on the Active Servers link (far right) for your region to get the lists...

Reply
0 Kudos
abbie11
Enthusiast
Enthusiast

Hi ravi,

Welcome to the VMware Communities forums.

please follow below stesp if not .

  1. Log on to the service console as the root user.
  2. You are going to replace the content of /etc/ntp.conf, so make a backup copy of this file with the command:

    cp /etc/ntp.conf /etc/ntp.conf.bk


  3. Edit the contents of the default /etc/ntp.conf (which the ESX installation creates for you), so the file looks like this:

    restrict 127.0.0.1
    restrict default kod nomodify notrap
    server 0.vmware.pool.ntp.org
    server 1.vmware.pool.ntp.org
    server 2.vmware.pool.ntp.org
    driftfile /var/lib/ntp/drift

Yours, Abbie

Winning!
Reply
0 Kudos
rickardnobel
Champion
Champion

abbie11 wrote:

  1. Log on to the service console as the root user.
  2. You are going to replace the content of /etc/ntp.conf, so make a backup copy of this file with the command:

    Hello abbie11. I belive your steps do not apply in this case, since that relates to configuring the Service Console found in ESX, but not available in ESXi 5.

My VMware blog: www.rickardnobel.se
Reply
0 Kudos