Knowledge Base

|
Timekeeping best practices for Windows, including NTP (1318)
Solution
Time Synchronization
| Windows Version | Recommended Time Sync Utility |
| Windows 2008 | w32time or NTP |
| Windows Vista | w32time or NTP |
| Windows 2003 | w32time or NTP |
| Windows XP | NTP |
| Windows 2000 | NTP |
Configuring w32time
When using w32time, there are a number of configuration parameters that can be changed. The table below describes the relevant parameters and gives a recommended value. All of the parameters are stored in the registry. Some of them can also be modified via the w32tm utility instead of directly editing the registry. This best practices guide covers running w32time in NTP mode. w32time can also use the windows domain hierarchy as time servers, which is not covered in this best practices guide.
| Key | Details |
|
HKEY_LOCAL_MACHINE\
SYSTEM\CurrentControlSet\
Services\W32Time\
TimeProviders\NtpClient\
SpecialPollInterval |
Recommended Value: 900
Type: REG_DWORD
Description: This parameter controls how often w32time will poll the time server to check whether time on the client needs to be corrected. The parameter is specified as number of seconds to wait between polling. The recommended value of 900 specifies that the time server should be polled once every 15 minutes. |
|
HKEY_LOCAL_MACHINE\
SYSTEM\CurrentControlSet\
Services\W32Time\Parameters\
NtpServer |
Recommended Value:
1.pool.ntp.org,0x1
2.pool.ntp.org,0x1
3.pool.ntp.org,0x1
Type: REG_SZ
Description: This parameter specifies the time servers to use. It is specified as a string of space separated servers. Specifying ",0x1" after the server name indicates that the server should be contacted at the frequency specified by the SpecialPollInterval setting. Note: Modify the recommended value to point to the ntp servers available in your environment. w32tm Command:
w32tm /config "/manualpeerlist:
1.pool.ntp.org,0x1
2.pool.ntp.org,0x1
3.pool.ntp.org,0x1" Note: Modify the command to use the ntp servers available in your environment. |
|
HKEY_LOCAL_MACHINE\
SYSTEM\CurrentControlSet\
Services\W32Time\Parameters\
Type |
Recommended Value: NTP
Type: REG_SZ
Description: This parameter specifies the mode that w32time should use. A value of NT5DS indicates that w32time should use the Windows domain hierarchy as its time servers rather than the NTP servers specified in the NtpServer key.
w32tm Command:
w32tm /config /syncfromflags:
MANUAL |
VMware Tools Time Synchronization and Configuration
When using w32time or NTP in the guest, disable VMware Tools periodic time synchronization.
To disable VMware Tools periodic time sync, use one of these options:
- Set tools.syncTime = "0" in the configuration file ( .vmx file) of the virtual machine.
OR
- Deselect Time synchronization between the virtual machine and the host operating system in the VMware Tools toolbox GUI of the guest operating system.
OR
- Run the VMwareService.exe -cmd "vmx.set_option synctime 1 0" command in the guest operating system. VMwareService.exe is typically installed in C:\Program Files\VMware\VMware Tools.
These options do not disable one-time synchronizations done by VMware Tools for events such as tools startup, taking a snapshot, resuming from a snapshot, resuming from suspend, or VMotion. These events synchronize time in the guest operating system with time in the host operating system even if VMware Tools periodic time sync is disabled, so it is important to make sure that the host operating system's time is correct. For more information about ESX 4/ESXi 4 or Workstation 7, see Timekeeping in VMware Virtual Machines. For vSphere 5, Workstation 8 or Fusion 4, see http://www.vmware.com/vmtn/resources/238.
Necessary Patches
|
Product |
Action |
|
ESX 3.5 and later |
No action required |
|
ESX 3.0.3 |
|
|
ESX 3.0.2 |
|
|
ESX 3.0.1 |
|
|
ESX 3.0.0 |
|
|
ESX 2.5.x and earlier |
Upgrade to ESX 3.0.0 or later |
|
Fusion 2.0 and later |
No action required |
|
Fusion 1.x |
Upgrade to Fusion 2.0 or later |
|
Player 2.0 and later |
No action required |
|
Player 1.x |
Upgrade to Player 2.0 or later |
|
Workstation 6.0 and later |
No action required |
|
Workstation 5.x |
Upgrade to Workstation 6.0 or later |
- If the virtual machine is attached to a domain, but the host machine is not, the virtual machine synchronizes time with the domain controller irrespective of the options selected in tools. This prevents login issues if the virtual machine's time is significantly different than the domain controller. You must adjust the time of the domain controller or remove the virtual machine from the domain controller to maintain a specific time within the virtual machine.
- If the windows virtual machine is not on the domain, run this command to ensure that the Windows and the Domain Controller time are in sync after a reboot:
sc triggerinfo w32time start/networkon stop/networkoff
- Windows 2000 – 216734
- Windows XP – 314054
- Windows Server – 816042
Note: The preceding links were available as of September 10, 2010. If you find the links to be broken, provide feedback on the article and a VMware employee will update the article as necessary.
Tags
Update History
Request a Product Feature
- Updated:
- Categories:
- Languages:
- Product Family:
- Product(s):
- Product Version(s):

