XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    How to configure time sync for Windows VM

    Scheduled Pinned Locked Moved Compute
    5 Posts 3 Posters 631 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      KPS Top contributor
      last edited by KPS

      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-tools

      Are there any "debug-logs"?

      Thank you for your help!
      KPS

      D 1 Reply Last reply Reply Quote 0
      • D Offline
        DustinB @KPS
        last edited by

        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.

        K 1 Reply Last reply Reply Quote 0
        • K Offline
          KPS Top contributor @DustinB
          last edited by

          @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

          D 1 Reply Last reply Reply Quote 0
          • D Offline
            DustinB @KPS
            last edited by

            @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

            1 Reply Last reply Reply Quote 0
            • planedropP Offline
              planedrop Top contributor
              last edited by

              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.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post