[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

NTP Server in VMware

Posted on 2016-08-23
5
Medium Priority
?
947 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 124

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 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 36

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 14

Expert Comment

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

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ransomware is a malware that is again in the list of security  concerns. Not only for companies, but also for Government security and  even at personal use. IT departments should be aware and have the right  knowledge to how to fight it.
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Suggested Courses
Course of the Month18 days, 22 hours left to enroll

834 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