Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Trying to get Windows 7 box to act as an NTP Time Server for linux clients

From here:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\ In the right pane, right-click AnnounceFlags, and then click Modify. In the Edit DWORD Value dialog box, under Value data, type 5, and then click OK. Enable NTPServer. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer\ In the right pane, right-click Enabled, and then click Modify. In the Edit DWORD Value dialog box, type 1 under Value data, and then click OK. HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\VMICTimeProvider\ In the right pane, right-click Enabled, and then click Modify In the Edit DWORD Value dialog box, type 0 under Value data, and then click OK Exit Registry Editor. At the command prompt, type the following command to restart the Windows Time service, and then press ENTER: net stop w32time && net start w32time

Turned off firewall on Win7 box.

EDIT 2 - This is working

enter image description here Using Meinberg NTPD

EDIT

enter image description here

Just after I posted I noticed the service had stopped... still the time doesn't sync on the linux box

enter image description here

however looking at the traffic on Microsoft Network Monitor I see that port 123 is unreachable.

Maybe I should try using NetTime? http://www.timesynctool.com/

share|improve this question
1  
Why not just put ISC's NTPd on the computer? –  Chris S May 17 '12 at 15:49
add comment

2 Answers

up vote 8 down vote accepted

According to Microsoft, "the Windows Time service is not an exact implementation of the Network Time Protocol (NTP)." It works well enough as a time server for other Windows machines, but it should not be used as a time server for Linux clients with an expectation that time will be kept in sync precisely. The deficiencies of W32Time are laid out in Microsoft's KB939322 article:

We do not guarantee and we do not support the accuracy of the W32Time service between nodes on a network. The W32Time service is not a full-featured NTP solution that meets time-sensitive application needs. The W32Time service is primarily designed to do the following:

  • Make the Kerberos version 5 authentication protocol work.
  • Provide loose sync time for client computers.

Kerberos version 5 requires computers to be synchronized within 5 minutes -- a very low standard of accuracy! W32Time may get you within a few seconds most of the time, but Microsoft absolutely does not guarantee this level of performance.

The solution is to use a real NTP server, which is to say, use ntpd. Normally, your time server would be one of your Linux machines, but Windows ports of ntpd are available if needed.

share|improve this answer
    
Thanks to you and ChrisS. I switched over to Meinberg's NTPd. time.gov/timezone.cgi?Central/d/-6/java this helped to give exact time. As did setting my Win7 box to talk to localhost for its own clock (NTPd is talking to some authoritative NTP server). –  Dave Mateer May 17 '12 at 17:10
    
i.imgur.com/fm2ZU.png - here's a screenshot showing a linux box and a Windows box. We point all our linux boxen at our AD domain name (i.e. all DCs) for NTP. As you can see their time is pretty well synced. Can you elaborate on what the issues are with doing this? Just curious to know if I'm sitting on a ticking timebomb here. We've been doing this for 3+ years already. –  ThatGraemeGuy May 17 '12 at 19:12
2  
Added more detail above. Not a time bomb, but W32Time's minor inaccuracies can be very frustrating when comparing syslog/eventlog data for related events between different hosts on a Windows network. –  Skyhawk May 17 '12 at 20:35
    
I've had a lot of problems trying to syncronise Linux and Windows servers. Do you know if an Amazon EC2 Linux server would make a suitable NTP server for a domain? Or does the EC2 hypervisor override the clock? –  paradroid May 17 '12 at 20:46
1  
@paradroid Yes, it would work. See also: Do I need to run ntpd in my EC2 instance? –  Skyhawk May 18 '12 at 14:26
show 2 more comments

Well Microsoft W32Time Service will sync your local clock with any of NTP server. First Make your Windows 7 machine to sync with times.microsoft.com or pool.ntp.org and then with enable NTP server from Computer Management -> Group Policy Editor.

All steps are as below :

  • Open the Group Policy Editor
  • Click Computer Configuration , click Administrative Templates , click System , and then click Windows Time Service .
  • Click Time Providers , double-click Enable Windows NTP Server in the right pane, click the Enabled button, and then click OK .
  • From the Group Policy Object Editor menu, click File , and then click Exit.

Reference from :

http://javadotnet.in/2013/01/16/create-your-own-ntp-server-for-lan-with-windows-2008-windows-7/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.