即使在明确同步时间后,Windows Server 2003 和 time.nist.gov 之间的时差也会增加

Abb*_*bas 4 windows-server-2003 ntp w32time time-synchronization time-server

我已将服务器的时间同步到 time.nist.gov。该服务器与客户端服务器通信,该服务器也与 time.nist.gov 同步。

在注意到即使在显式同步之后我们似乎与时间服务器不同步之后,我设置了一个每小时的批处理作业来查看我的假设是否正确以及我们的时差是多少。

我在周五设置了这项工作,它已经检查了 50 次时间。当我在周五第一次检查时,w32tm效用显示的差异小于10 毫秒。几个小时前的最后一次检查显示有20 秒的差异。

还有 9 种情况(在 50 次尝试中)error: 0x800705B4是超时错误。自美国东部时间 2012 年 1 月 6 日星期五下午 5:35 以来,时差似乎以每小时 1 秒的速度增加

我有一个设置为 VMWare VM 的 Windows Server 2003 Enterprise Edition,时区是 EST。这是记录同步差异的 my w32tmandDOS命令:

w32tm /stripchart /computer:time.nist.gov /samples:1 /dataonly >> D:\timedump.txt
Run Code Online (Sandbox Code Playgroud)

以下是最后 4 个条目:

Tracking time.nist.gov [192.43.244.18].
Collecting 1 samples.
The current time is 1/8/2012 10:35:00 AM (local time).
10:35:00, +20.3387625s

Tracking time.nist.gov [192.43.244.18].
Collecting 1 samples.
The current time is 1/8/2012 11:35:00 AM (local time).
11:35:00, +20.4854414s

Tracking time.nist.gov [192.43.244.18].
Collecting 1 samples.
The current time is 1/8/2012 12:35:00 PM (local time).
12:35:00, +20.6239407s

Tracking time.nist.gov [129.6.15.28].
Collecting 1 samples.
The current time is 1/8/2012 1:35:00 PM (local time).
13:35:00, error: 0x800705B4
Run Code Online (Sandbox Code Playgroud)

Sha*_*den 6

您的时间服务正在同步,然后 VM 主机将其设置回错误的时间。

您要么需要固定主机的时间,要么需要关闭与 VM 的时间同步。

要禁用时间同步,需要将这些设置添加到.vmx,或通过虚拟机编辑设置中的 vSphere 客户端;选项选项卡 -> 常规 -> 配置参数。

tools.syncTime = "0"
time.synchronize.continue = "0"
time.synchronize.restore = "0"
time.synchronize.resume.disk = "0"
time.synchronize.shrink = "0"
time.synchronize.tools.startup = "0"
time.synchronize.resume.host = "0"
Run Code Online (Sandbox Code Playgroud)