VMware Cloud Community
mazixo
Contributor
Contributor
Jump to solution

time sync problem

Hi

Im looking for way to sync all my esx4/4.1 and ESXi5 Hosts with my NTP Server  automaticlly .

some of the hosts can sync the date and time and whenever I change time or date after few secend  it syinc but other host cant syinc with NTP .

is there way to check this sync procces and how can I be sure about this and fix them

tanx

Love,Life,Freedome is iranain's right Maziyar Khamenh
0 Kudos
1 Solution

Accepted Solutions
Josh26
Virtuoso
Virtuoso
Jump to solution

Gopinath Keerthyrajan wrote:

since most of the applications will be in sync with AD and so it is easy to manage one NTP in the environment that is AD, so if AD is there in my opinion it is good to add esx hosts to AD and in the esx host give AD as the NTP server

It's easy enough to configure your domain controller to support NTP and configure your hosts to talk to it - without any need at all for the hosts to join the domain as members.

View solution in original post

0 Kudos
7 Replies
Gkeerthy
Expert
Expert
Jump to solution

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=103583...

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=100373...

refer the above links and check

Please don't forget to award point for 'Correct' or 'Helpful', if you found the comment useful. (vExpert, VCP-Cloud. VCAP5-DCD, VCP4, VCP5, MCSE, MCITP)
mazixo
Contributor
Contributor
Jump to solution

so I think Its nessesery that all ESX and ESXi host be join into DC !? :smileymischief:

Love,Life,Freedome is iranain's right Maziyar Khamenh
0 Kudos
Gkeerthy
Expert
Expert
Jump to solution

since most of the applications will be in sync with AD and so it is easy to manage one NTP in the environment that is AD, so if AD is there in my opinion it is good to add esx hosts to AD and in the esx host give AD as the NTP server

Please don't forget to award point for 'Correct' or 'Helpful', if you found the comment useful. (vExpert, VCP-Cloud. VCAP5-DCD, VCP4, VCP5, MCSE, MCITP)
vGuy
Expert
Expert
Jump to solution

you need to ensure you have a reliable time source whether it's AD or ntp (I would rather prefer ntp). Accurate time sync for all the hosts is important as the Guest Operating systems uses the ESX(i) host for time sync for one time operations such as (snapshot revert, suspend/resume of the VM, and etc.) even when the host time sync is disabled.

for the troubleshooting, ensure a) ntp server is reachable from the host, b) no firewalls are blocking the ntp port 123 udp, c) ntp client service is enabled on the hosts d) use ntp query, "ntpq -p" to see if the offset is very large, in that case you may need to configure the time manually and then sync again.

you can also monitor the ntp on service console using tcpdump, below is the kb article on that:

http://kb.vmware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&docTypeID=DT_KB_1_1&e...

...hth!

0 Kudos
Josh26
Virtuoso
Virtuoso
Jump to solution

Gopinath Keerthyrajan wrote:

since most of the applications will be in sync with AD and so it is easy to manage one NTP in the environment that is AD, so if AD is there in my opinion it is good to add esx hosts to AD and in the esx host give AD as the NTP server

It's easy enough to configure your domain controller to support NTP and configure your hosts to talk to it - without any need at all for the hosts to join the domain as members.

0 Kudos
sparrowangelste
Virtuoso
Virtuoso
Jump to solution

maybe op hasnt setup NTP at all?

follow the following steps.

the link has a pic

  1. Go to esxi configuration tab
  2. Go down to the time      configuration tab
  3. Click properties
  4. When the time configuration      box opens click Options
  5. When the NTP daemon options      shows up click on  NTP settings
  6. Add your NTP server
    1. Check the restart NTP service when you are finished.

http://sparrowangelstechnology.blogspot.com/2012/07/setup-ntp-for-your-esxi-host.html

--------------------- Sparrowangelstechnology : Vmware lover http://sparrowangelstechnology.blogspot.com
0 Kudos
gaspipe
Enthusiast
Enthusiast
Jump to solution

If running Linux VMs, especially older releases, also check this KB: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=100642...

0 Kudos