How to configure time sync for Windows VM
-
Hi!
I am having strange time-sync-issues with a Windows 2022 VM with Citrix tools (9.3.1).
As the VM is a Domain Controller, it is important to avoid any time-sync through XenTools.Are you aware of how to fully "runtime-time-syncs" between host and VM?
I just found old posts about registry-keys, but they do not exist:
https://support.citrix.com/article/CTX272319/time-synchronization-issues-on-windows-vms-with-the-9x-citrix-vm-toolsAre there any "debug-logs"?
Thank you for your help!
KPS -
Time Sync likely isn't going to be critical from your VM DC to the Host, since the host time shouldn't impact anything being performed within the domain.
You can still set your time source to target the host if you want, and then have your host target pool.ntp.org (or whatever public TS you want).
This article from MS outlines the process
But to summarize
w32tm.exe /config /syncfromflags:manual /manualpeerlist:192.168.10.5,0x8 /reliable:yes /update
and then
w32tm.exe /config /update
Obviously you'd change the IP address to match whatever your host is. On your host you would then point those to a public time source that you want to use.
-
@DustinB
Thats right, but not for Domain Controllers.
There is a clear hierarchy, where all DCs should sync to the PDC emulator.Syncing to the host should be avoided according to the MS support. They asked me to disable it, but only sent the instructions for HyperV and VMWare
-
@KPS said in How to configure time sync for Windows VM:
They asked me to disable it, but only sent the instructions for HyperV and VMWare
Right, you would have a single Time Authority within your domain following the process above, and everything else would point to that PDC (even though all DCs are equal now) as their time source.
IE If my PDC was 192.168.10.5
w32tm.exe /config /syncfromflags:manual /manualpeerlist:pool.ntp.org,0x8 /reliable:yes /update
then
w32tm.exe /config /update
Then each subsequent DC would then point to
w32tm.exe /config /syncfromflags:manual /manualpeerlist:192.168.10.5,0x8 /reliable:yes /update
followed up with
w32tm.exe /config /update
-
As long as you configure things right like @DustinB said you should be good to go, I don't believe anything will override that and sync to the host.