Updating Hyper-V Guest Time


Based on this post, I tried disabling Time Synchronization in VMM but though it seemed to save it never did.

For us, hyper-v servers were part of a domain so the guest AD server was setting the time for the hyper-v hosts and they were setting it for all the guests. So we were in a bit of a loop.  More research led me to Ben Armstrong’s post and his answer to Question #6 got me going.

On the primary Active Directory server (If it’s a hyper-v Guest) add this registry setting

  • reg add HKLM\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\VMICTimeProvider /v Enabled /t reg_dword /d 0
  • When prompted to “overwrite”, type Y and hit <enter>

Now you just set the NTP server as normal on that AD server and now it’ll stick.

  • win32tm /config /update / /synchfromflags:MANUAL
  • w32tm /resync

Then to send to each server if you don’t want to wait.

  • w32tm /resync /computer:<computerName> /rediscover

That should do it.

Return TopTrackbackPrintPermalink


Got something to say? Join the discussion »

leave a reply

 [Quick Submit with Ctrl+Enter]

Remember my details
Notify me of followup comments via e-mail