kassant7
asked on
server time wrong after hyper v install
Server 2008R2, after we installed the hyperv role, the server clock could not keep the correct time.
Server has been running fine with the correct time for 4+ years. Installed hyperv 2 weeks ago and the clock has been wrong ever since.
Server is the only DC and was set for NTP sync with us.pool.ntp.org, and a few other sources. Seems like everything was fine until we installed hyoperv.
We did all the usual, resync this, change source that, unregister w32tm, all no joy. The only thing that works is to set the server to sync from the cmos battery. This keeps the clock to within 2 minutes, but that isnt really synced.
The real question is why whatever clock the server uses to keep time (it isnt the cmos clock) will not keep time correctly.
Open to suggestions.
Server has been running fine with the correct time for 4+ years. Installed hyperv 2 weeks ago and the clock has been wrong ever since.
Server is the only DC and was set for NTP sync with us.pool.ntp.org, and a few other sources. Seems like everything was fine until we installed hyoperv.
We did all the usual, resync this, change source that, unregister w32tm, all no joy. The only thing that works is to set the server to sync from the cmos battery. This keeps the clock to within 2 minutes, but that isnt really synced.
The real question is why whatever clock the server uses to keep time (it isnt the cmos clock) will not keep time correctly.
Open to suggestions.
Installing Hyper-V with other roles (including ADDS) has adverse effects because of how Hyper-V wants so manage resources. It is basically universally accepted that Hyper-V should always be the only role running on bare metal, and even other applications should be lightweight, such as backup or management agents.
ASKER
I agree, but we couldn't do that in this case.
The server is already running and the client didnt want to make too many changes. They needed to run some old program that only worked on XP as a VM.
The server is already running and the client didnt want to make too many changes. They needed to run some old program that only worked on XP as a VM.
Then time will skew. Hyper-v is six years old and I has always been this way. If there were a solution, it'd be documented by now. Short of faster hardware to minimize the impact, or running a third-party NTP client that refreshes more often (which is inefficient on the network) little can be done.
1 so the time is off on the host?
2 is it the same case for Vms (if you have any)?
3can you run that from cmd as admin
w32tm /query /source
and post it back here
4 also
sfc /scannow
2 is it the same case for Vms (if you have any)?
3can you run that from cmd as admin
w32tm /query /source
and post it back here
4 also
sfc /scannow
ASKER
Time is off on the host.
The time on the VM is fine. It is not a domain member and the hyperv time sync off.
Currently the source is cmos when we run w32tm /query /source When it was set to NTP the time gets off by more than 3 hours per day.
SFC found no issues when we ran it at the beginning of this episode, 3 days ago.
The time on the VM is fine. It is not a domain member and the hyperv time sync off.
Currently the source is cmos when we run w32tm /query /source When it was set to NTP the time gets off by more than 3 hours per day.
SFC found no issues when we ran it at the beginning of this episode, 3 days ago.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I took those steps already. I will try it again if you desire.
I will paste the entire reg entry we import to reset the time server when it messes up. I have to find it and export to txt.
I will paste the entire reg entry we import to reset the time server when it messes up. I have to find it and export to txt.
ASKER
Sorry for the delay. This is what we use for PDC's now;
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM \CurrentCo ntrolSet\S ervices\W3 2Time]
"DisplayName"="@%SystemRoo t%\\system 32\\w32tim e.dll,-200 "
"ErrorControl"=dword:00000 001
"ImagePath"=hex(2):25,00,5 3,00,79,00 ,73,00,74, 00,65,00,6 d,00,52,00 ,6f,00,6f, 00,\
74,00,25,00,5c,00,73,00,79 ,00,73,00, 74,00,65,0 0,6d,00,33 ,00,32,00, 5c,00,73,\
00,76,00,63,00,68,00,6f,00 ,73,00,74, 00,2e,00,6 5,00,78,00 ,65,00,20, 00,2d,00,\
6b,00,20,00,4c,00,6f,00,63 ,00,61,00, 6c,00,53,0 0,65,00,72 ,00,76,00, 69,00,63,\
00,65,00,00,00
"Start"=dword:00000003
"Type"=dword:00000020
"Description"="@%SystemRoo t%\\system 32\\w32tim e.dll,-201 "
"ObjectName"="NT AUTHORITY\\LocalService"
"ServiceSidType"=dword:000 00001
"RequiredPrivileges"=hex(7 ):53,00,65 ,00,41,00, 75,00,64,0 0,69,00,74 ,00,50,00, 72,\
00,69,00,76,00,69,00,6c,00 ,65,00,67, 00,65,00,0 0,00,53,00 ,65,00,43, 00,68,00,\
61,00,6e,00,67,00,65,00,4e ,00,6f,00, 74,00,69,0 0,66,00,79 ,00,50,00, 72,00,69,\
00,76,00,69,00,6c,00,65,00 ,67,00,65, 00,00,00,5 3,00,65,00 ,43,00,72, 00,65,00,\
61,00,74,00,65,00,47,00,6c ,00,6f,00, 62,00,61,0 0,6c,00,50 ,00,72,00, 69,00,76,\
00,69,00,6c,00,65,00,67,00 ,65,00,00, 00,53,00,6 5,00,53,00 ,79,00,73, 00,74,00,\
65,00,6d,00,54,00,69,00,6d ,00,65,00, 50,00,72,0 0,69,00,76 ,00,69,00, 6c,00,65,\
00,67,00,65,00,00,00,00,00
"FailureActions"=hex:80,51 ,01,00,00, 00,00,00,0 0,00,00,00 ,03,00,00, 00,14,00,0 0,\
00,01,00,00,00,60,ea,00,00 ,01,00,00, 00,c0,d4,0 1,00,00,00 ,00,00,00, 00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM \CurrentCo ntrolSet\S ervices\W3 2Time\Conf ig]
"MaxAllowedPhaseOffset"=dw ord:000001 2c
"FrequencyCorrectRate"=dwo rd:0000000 4
"SpikeWatchPeriod"=dword:0 0000384
"LocalClockDispersion"=dwo rd:0000000 a
"HoldPeriod"=dword:0000000 5
"PhaseCorrectRate"=dword:0 0000007
"MaxPollInterval"=dword:00 00000f
"MaxPosPhaseCorrection"=dw ord:0002a3 00
"PollAdjustFactor"=dword:0 0000005
"AnnounceFlags"=dword:0000 0005
"TimeJumpAuditOffset"=dwor d:00007080
"MinPollInterval"=dword:00 000006
"EventLogFlags"=dword:0000 0002
"MaxNegPhaseCorrection"=dw ord:0002a3 00
"LargePhaseOffset"=dword:0 2faf080
"UpdateInterval"=dword:000 00064
"LastClockRate"=dword:0002 625a
[HKEY_LOCAL_MACHINE\SYSTEM \CurrentCo ntrolSet\S ervices\W3 2Time\Para meters]
"ServiceDllUnloadOnStop"=d word:00000 001
"ServiceMain"="SvchostEntr y_W32Time"
"NtpServer"="3.us.pool.ntp .org,0x1 2.us.pool.ntp.org,0x1"
"Type"="NTP"
"ServiceDll"=hex(2):25,00, 73,00,79,0 0,73,00,74 ,00,65,00, 6d,00,72,0 0,6f,00,6f ,\
00,74,00,25,00,5c,00,73,00 ,79,00,73, 00,74,00,6 5,00,6d,00 ,33,00,32, 00,5c,00,\
77,00,33,00,32,00,74,00,69 ,00,6d,00, 65,00,2e,0 0,64,00,6c ,00,6c,00, 00,00
[HKEY_LOCAL_MACHINE\SYSTEM \CurrentCo ntrolSet\S ervices\W3 2Time\Secu rity]
"Security"=hex:01,00,04,80 ,98,00,00, 00,a4,00,0 0,00,00,00 ,00,00,14, 00,00,00,0 2,\
00,84,00,06,00,00,00,00,00 ,14,00,fd, 01,02,00,0 1,01,00,00 ,00,00,00, 05,12,00,\
00,00,00,00,18,00,ff,01,0f ,00,01,02, 00,00,00,0 0,00,05,20 ,00,00,00, 20,02,00,\
00,00,00,14,00,8d,01,02,00 ,01,01,00, 00,00,00,0 0,05,04,00 ,00,00,00, 00,14,00,\
8d,01,02,00,01,01,00,00,00 ,00,00,05, 06,00,00,0 0,00,00,14 ,00,9d,01, 02,00,01,\
01,00,00,00,00,00,05,13,00 ,00,00,00, 00,14,00,a 9,00,02,00 ,01,01,00, 00,00,00,\
00,05,13,00,00,00,01,01,00 ,00,00,00, 00,05,12,0 0,00,00,01 ,01,00,00, 00,00,00,\
05,12,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM \CurrentCo ntrolSet\S ervices\W3 2Time\Time Providers]
[HKEY_LOCAL_MACHINE\SYSTEM \CurrentCo ntrolSet\S ervices\W3 2Time\Time Providers\ NtpClient]
"RunOnVirtualOnly"=dword:0 0000000
"DllName"=hex(2):25,00,73, 00,79,00,7 3,00,74,00 ,65,00,6d, 00,72,00,6 f,00,6f,00 ,\
74,00,25,00,5c,00,73,00,79 ,00,73,00, 74,00,65,0 0,6d,00,33 ,00,32,00, 5c,00,77,\
00,33,00,32,00,74,00,69,00 ,6d,00,65, 00,2e,00,6 4,00,6c,00 ,6c,00,00, 00
"Enabled"=dword:00000001
"CrossSiteSyncFlags"=dword :00000002
"InputProvider"=dword:0000 0001
"EventLogFlags"=dword:0000 0001
"SpecialPollTimeRemaining" =hex(7):32 ,00,2e,00, 75,00,73,0 0,2e,00,70 ,00,6f,00, 6f,\
00,6c,00,2e,00,6e,00,74,00 ,70,00,2e, 00,6f,00,7 2,00,67,00 ,2c,00,37, 00,63,00,\
37,00,37,00,32,00,65,00,36 ,00,00,00, 33,00,2e,0 0,75,00,73 ,00,2e,00, 70,00,6f,\
00,6f,00,6c,00,2e,00,6e,00 ,74,00,70, 00,2e,00,6 f,00,72,00 ,67,00,2c, 00,37,00,\
63,00,37,00,37,00,32,00,65 ,00,36,00, 00,00,00,0 0,00,00,00 ,00,00,00, 00,00,00,\
00,00,00,00,00,00,00,00,00 ,00,00,00, 00,00,00,0 0,00,00,00 ,00,00,00, 00,00,00,\
00,00,00,00,00,00
"SignatureAuthAllowed"=dwo rd:0000000 1
"CompatibilityFlags"=dword :80000000
"ResolvePeerBackoffMinutes "=dword:00 00000f
"ResolvePeerBackoffMaxTime s"=dword:0 0000007
"AllowNonstandardModeCombi nations"=d word:00000 001
"LargeSampleSkew"=dword:00 000003
"SpecialPollInterval"=dwor d:00000384
[HKEY_LOCAL_MACHINE\SYSTEM \CurrentCo ntrolSet\S ervices\W3 2Time\Time Providers\ NtpServer]
"ChainEntryTimeout"=dword: 00000010
"RunOnVirtualOnly"=dword:0 0000000
"DllName"=hex(2):25,00,73, 00,79,00,7 3,00,74,00 ,65,00,6d, 00,72,00,6 f,00,6f,00 ,\
74,00,25,00,5c,00,73,00,79 ,00,73,00, 74,00,65,0 0,6d,00,33 ,00,32,00, 5c,00,77,\
00,33,00,32,00,74,00,69,00 ,6d,00,65, 00,2e,00,6 4,00,6c,00 ,6c,00,00, 00
"Enabled"=dword:00000001
"InputProvider"=dword:0000 0000
"ChainMaxEntries"=dword:00 000080
"ChainMaxHostEntries"=dwor d:00000004
"EventLogFlags"=dword:0000 0000
"ChainDisable"=dword:00000 000
"RequireSecureTimeSyncRequ ests"=dwor d:00000000
"ChainLoggingRate"=dword:0 000001e
"AllowNonstandardModeCombi nations"=d word:00000 001
[HKEY_LOCAL_MACHINE\SYSTEM \CurrentCo ntrolSet\S ervices\W3 2Time\Time Providers\ VMICTimePr ovider]
"RunOnVirtualOnly"=dword:0 0000001
"DllName"=hex(2):25,00,53, 00,79,00,7 3,00,74,00 ,65,00,6d, 00,52,00,6 f,00,6f,00 ,\
74,00,25,00,5c,00,53,00,79 ,00,73,00, 74,00,65,0 0,6d,00,33 ,00,32,00, 5c,00,76,\
00,6d,00,69,00,63,00,74,00 ,69,00,6d, 00,65,00,7 0,00,72,00 ,6f,00,76, 00,69,00,\
64,00,65,00,72,00,2e,00,64 ,00,6c,00, 6c,00,00,0 0
"Enabled"=dword:00000001
"InputProvider"=dword:0000 0001
[HKEY_LOCAL_MACHINE\SYSTEM \CurrentCo ntrolSet\S ervices\W3 2Time\Time Providers\ VMICTimePr ovider\Par ameters]
[HKEY_LOCAL_MACHINE\SYSTEM \CurrentCo ntrolSet\S ervices\W3 2Time\Trig gerInfo]
[HKEY_LOCAL_MACHINE\SYSTEM \CurrentCo ntrolSet\S ervices\W3 2Time\Trig gerInfo\0]
"Type"=dword:00000003
"Action"=dword:00000001
"GUID"=hex:ba,0a,e2,1c,51, 98,21,44,9 4,30,1d,de ,b7,66,e8, 09
[HKEY_LOCAL_MACHINE\SYSTEM \CurrentCo ntrolSet\S ervices\W3 2Time\Trig gerInfo\1]
"Type"=dword:00000003
"Action"=dword:00000002
"GUID"=hex:6e,51,af,dd,c2, 58,66,48,9 5,74,c3,b6 ,15,d4,2e, a1
If we set the server back to NTP sync, the time drifts by more than 10 minutes an hour. So any fixes we try have to be undone by unregistered and re-registering the w32tm service.
The server is currently using the cmos clock.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM
"DisplayName"="@%SystemRoo
"ErrorControl"=dword:00000
"ImagePath"=hex(2):25,00,5
74,00,25,00,5c,00,73,00,79
00,76,00,63,00,68,00,6f,00
6b,00,20,00,4c,00,6f,00,63
00,65,00,00,00
"Start"=dword:00000003
"Type"=dword:00000020
"Description"="@%SystemRoo
"ObjectName"="NT AUTHORITY\\LocalService"
"ServiceSidType"=dword:000
"RequiredPrivileges"=hex(7
00,69,00,76,00,69,00,6c,00
61,00,6e,00,67,00,65,00,4e
00,76,00,69,00,6c,00,65,00
61,00,74,00,65,00,47,00,6c
00,69,00,6c,00,65,00,67,00
65,00,6d,00,54,00,69,00,6d
00,67,00,65,00,00,00,00,00
"FailureActions"=hex:80,51
00,01,00,00,00,60,ea,00,00
[HKEY_LOCAL_MACHINE\SYSTEM
"MaxAllowedPhaseOffset"=dw
"FrequencyCorrectRate"=dwo
"SpikeWatchPeriod"=dword:0
"LocalClockDispersion"=dwo
"HoldPeriod"=dword:0000000
"PhaseCorrectRate"=dword:0
"MaxPollInterval"=dword:00
"MaxPosPhaseCorrection"=dw
"PollAdjustFactor"=dword:0
"AnnounceFlags"=dword:0000
"TimeJumpAuditOffset"=dwor
"MinPollInterval"=dword:00
"EventLogFlags"=dword:0000
"MaxNegPhaseCorrection"=dw
"LargePhaseOffset"=dword:0
"UpdateInterval"=dword:000
"LastClockRate"=dword:0002
[HKEY_LOCAL_MACHINE\SYSTEM
"ServiceDllUnloadOnStop"=d
"ServiceMain"="SvchostEntr
"NtpServer"="3.us.pool.ntp
"Type"="NTP"
"ServiceDll"=hex(2):25,00,
00,74,00,25,00,5c,00,73,00
77,00,33,00,32,00,74,00,69
[HKEY_LOCAL_MACHINE\SYSTEM
"Security"=hex:01,00,04,80
00,84,00,06,00,00,00,00,00
00,00,00,00,18,00,ff,01,0f
00,00,00,14,00,8d,01,02,00
8d,01,02,00,01,01,00,00,00
01,00,00,00,00,00,05,13,00
00,05,13,00,00,00,01,01,00
05,12,00,00,00
[HKEY_LOCAL_MACHINE\SYSTEM
[HKEY_LOCAL_MACHINE\SYSTEM
"RunOnVirtualOnly"=dword:0
"DllName"=hex(2):25,00,73,
74,00,25,00,5c,00,73,00,79
00,33,00,32,00,74,00,69,00
"Enabled"=dword:00000001
"CrossSiteSyncFlags"=dword
"InputProvider"=dword:0000
"EventLogFlags"=dword:0000
"SpecialPollTimeRemaining"
00,6c,00,2e,00,6e,00,74,00
37,00,37,00,32,00,65,00,36
00,6f,00,6c,00,2e,00,6e,00
63,00,37,00,37,00,32,00,65
00,00,00,00,00,00,00,00,00
00,00,00,00,00,00
"SignatureAuthAllowed"=dwo
"CompatibilityFlags"=dword
"ResolvePeerBackoffMinutes
"ResolvePeerBackoffMaxTime
"AllowNonstandardModeCombi
"LargeSampleSkew"=dword:00
"SpecialPollInterval"=dwor
[HKEY_LOCAL_MACHINE\SYSTEM
"ChainEntryTimeout"=dword:
"RunOnVirtualOnly"=dword:0
"DllName"=hex(2):25,00,73,
74,00,25,00,5c,00,73,00,79
00,33,00,32,00,74,00,69,00
"Enabled"=dword:00000001
"InputProvider"=dword:0000
"ChainMaxEntries"=dword:00
"ChainMaxHostEntries"=dwor
"EventLogFlags"=dword:0000
"ChainDisable"=dword:00000
"RequireSecureTimeSyncRequ
"ChainLoggingRate"=dword:0
"AllowNonstandardModeCombi
[HKEY_LOCAL_MACHINE\SYSTEM
"RunOnVirtualOnly"=dword:0
"DllName"=hex(2):25,00,53,
74,00,25,00,5c,00,53,00,79
00,6d,00,69,00,63,00,74,00
64,00,65,00,72,00,2e,00,64
"Enabled"=dword:00000001
"InputProvider"=dword:0000
[HKEY_LOCAL_MACHINE\SYSTEM
[HKEY_LOCAL_MACHINE\SYSTEM
[HKEY_LOCAL_MACHINE\SYSTEM
"Type"=dword:00000003
"Action"=dword:00000001
"GUID"=hex:ba,0a,e2,1c,51,
[HKEY_LOCAL_MACHINE\SYSTEM
"Type"=dword:00000003
"Action"=dword:00000002
"GUID"=hex:6e,51,af,dd,c2,
If we set the server back to NTP sync, the time drifts by more than 10 minutes an hour. So any fixes we try have to be undone by unregistered and re-registering the w32tm service.
The server is currently using the cmos clock.
Please try this command:
w32tm /config /manualpeerlist:time.nist. gov,0x8 /syncfromflags:MANUAL
net stop w32time
net start w32time
or alternately use that:
http://www.satsignal.eu/ntp/x86/index.html
w32tm /config /manualpeerlist:time.nist.
net stop w32time
net start w32time
or alternately use that:
http://www.satsignal.eu/ntp/x86/index.html
ASKER
I installed the NTP program. That takes over for w32time, /query /source no longer works.
It is up and running, the average offset is 90K so we'll see if the program does what it says and step the time incrementally until it is in sync to within 30ms.
It is up and running, the average offset is 90K so we'll see if the program does what it says and step the time incrementally until it is in sync to within 30ms.
ASKER
After 2 days of running the program on the affected server, things did not improve. The offset on the 4 chosen servers is from 9615 to 40092. This is after the reach has gotten to 377 with a poll of 64.
None of the servers have the + sign indicating they are suitable for sync.
I dont think it is working. It is supposed to slowly adjust the clock to be in sync by taking many smaller steps rather than big changes.
I guess whatever is wrong on the server is also affecting this program. Which may mean the issue isnt the windows time service, but something else.
None of the servers have the + sign indicating they are suitable for sync.
I dont think it is working. It is supposed to slowly adjust the clock to be in sync by taking many smaller steps rather than big changes.
I guess whatever is wrong on the server is also affecting this program. Which may mean the issue isnt the windows time service, but something else.
ASKER
The server is now doing "ok". We have it set to sync from the local clock and NTP once a day.
It is not accurate down to the ms, but it is <2 min off.
I think it must be an issue with HYper v like stated here.
It is not accurate down to the ms, but it is <2 min off.
I think it must be an issue with HYper v like stated here.
ASKER
Thank you.