Solved

NTP Server in VMware

Posted on 2016-08-23
5
115 Views
Last Modified: 2016-09-16
I have configured NTP in VMware vSphere 6. all setting are done as per the guidelines but still that doesn't work. The time showing in "configuration- Time " as in red color. The server is set up in US time zone. When I set up NTP and apply changes it wont take time from NTP server.

when I telnet to the console of the host and type the date : it shows the UTC time - ex. Tue Aug 23 01:41:05 UTC where as the time zone set in server is 7:12 AM.  

The problem I am facing is when ever I reboot the guest machines, it automatically take the UTC time zone from host and I have to change manually. even after I manually set the time in configuration- time menu [ without configuring ntp] it will take UTC time only.

Please help

Sunny
0
Comment
Question by:Sunny Sebastian
5 Comments
 
LVL 118

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 500 total points
ID: 41766786
The reasons it displays in RED, is because there is a difference between Client Time and ESXi host time.

So the computer that is running the Client, has a different time to host.

NTP does NOT recognise time zones. it just syncs the minutes and seconds, but if your host is too far off, it will not sync at all.
0
 

Author Comment

by:Sunny Sebastian
ID: 41766882
Andrew,

First of all thanks for your reply. I used to read many of your VMware suggestions and resolutions and achieved the result as well. I value your comments a lot.

OK what I am saying, as I know ESXi host always will take time UTC. If I set the time from time configuration menu, that will not reflect the time in EXSi host OS - unix. so when I console the host using SSH, and type date, I get a different time - always 5.30 hours behind the UTC. Importantly, when ever client reboots, it take this time by default by passing the time I set manually in "Configuration - Time setting'. I read from your topics and other VMware forums that we can set up NTP services where the host get time sync from a NTP server.

I have two VMs setup in different geographical region. I have configured both ESXi hosts for NTP servers and one get proper response and clearly getting the time from NTP server and a reboot does not change the time for client. Other Exsi set up in US has the problem where it did not get time frm NTP server. I am looking to resolve this problem as my production server time change make huge impact.

Thanks Sunny
0
 
LVL 34

Expert Comment

by:Gary Patterson
ID: 41767316
While it is possible for guests to sync time with the ESXi host, it is not the best practice.  

Best practice, and the one recommended by VMWare, is to set up ESXi hosts and guests to obtain time as NTP clients, and disable VMWare Tools time sync.

Native time synchronization software, such as Network Time Protocol (NTP), is typically more accurate than VMware Tools periodic time synchronization and is therefore preferred. You can use only one form of periodic time synchronization in the vCenter Server Appliance. If you decide to use native time synchronization software, vCenter Server Appliance VMware Tools periodic time synchronization is disabled, and the reverse.

http://pubs.vmware.com/vsphere-60/index.jsp#com.vmware.vsphere.vcsa.doc/GUID-6C202AED-91DE-4D20-B95D-0A71D101312C.html

Example recommended NTP configuration:

External NTP server (pool.ntp.org) provides time to
Your internal NTP server(s) (NTP client and server) provides time to
ESXi host (NTP client)
Guest1 (NTP client)
Guest2 (NTP client)

One recommended configurations uses Cisco IOS routers (or other network edge devices capable of being both an NTP client and server) as the internal NTP server.  In a Windows environment, configure domain controllers as NTP servers (time sync is needed for Kerberos with AD anyway).

Regardless of the design, internal time servers should be redundant and highly available, since they are critical infrastructure.

Goal is to reduce the amount of NTP traffic across the Internet connection, and reduce the load on public NTP servers.

Time zones are then configured on each guest per guest operating system mechanisms.
1
 

Author Comment

by:Sunny Sebastian
ID: 41772653
OK thanks for the article
0
 
LVL 13

Expert Comment

by:frankhelk
ID: 41779776
Just to mention: I've written an article about NTP, which might be helpful, too.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
Teach the user how to join ESXi hosts to Active Directory domains Open vSphere Client: Join ESXi host to AD domain: Verify ESXi computer account in AD: Configure permissions for domain user in ESXi: Test domain user login to ESXi host:

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now