I cannot for the life of me get my Hyper-V PDC (2012 R2) to sync with an external time source. I have tried a number of configurations but in the end I can only get the w32tm /query /source
command to show either Local CMOS Clock
or VM IC Time Synchronization Provider
I've tried the following settings
Setup 1
- Time Syncronization Integration Service enabled on VM
- Run command
w32tm /config "/manualpeerlist: 0.pool.ntp.org" /syncfromflags:manual /reliable:yes /update
- Run command
net stop w32time && net start w32time
- Run command
w32tm /resync /rediscover
- The above command successfully completes
- And
w32tm /query /source
showsVM IC Time Synchronization Provider
Setup 2
- Time Syncronization Integration Service disabled on VM
- Run command
w32tm /config "/manualpeerlist: 0.pool.ntp.org" /syncfromflags:manual /reliable:yes /update
- Run command
net stop w32time && net start w32time
- Run command
w32tm /resync /rediscover
- The above command always fails with "The computer did not resync because no time data was available"
- And
w32tm /query /source
showsLocal CMOS Clock
Setup 3
- Time Syncronization Integration Service enabled on VM
- Reg key
HKLM\System\CurrentControlSet\Services\W32Time\TimeProviders\VMICTimeProvider :Enabled:0
- This is supposed to disable the moment-to-moment synchronization of the VMICTimeProvider but still allow the service to perform on VM boot (#6 Here)
- Run command
w32tm /config "/manualpeerlist: 0.pool.ntp.org" /syncfromflags:manual /reliable:yes /update
- Run command
net stop w32time && net start w32time
- Run command
w32tm /resync /rediscover
- The above command always fails with "The computer did not resync because no time data was available"
- And
w32tm /query /source
showsLocal CMOS Clock
What is the proper way to configure a Hyper-V PDC to correctly sync with an external source?
When you say you disabled the Time Syncronization Integration Service in Setup 2 do you mean you unchecked that box in the properties of the VM? If so, then that's the correct procedure. Follow Setup 2 again and run the following commands on the DC from an elevated command prompt. Then reconfigure it as you did in Setup 2.
net stop w32time
w32tm /unregister
w32tm /register
net start w32time