Hyper-V Standalone: Configure the Host as Authoritative Time Server and Guests to Use It
Posted by Philip Elder on 01 May 2014 10:14 AM
We have a number of single server virtualization solutions where the VMs are running at quite a high load point.
This tends to create timing issues with the VMs not being able to keep up with keeping time. In some cases we have SQL VMs that can skew time visibly.
So, we need a reliable time source. We are not able to set pool.ntp.org as the time source for the primary DC in this situation as it would not be keeping time very well either thus requiring a more frequent polling interval. Do that with ntp.org and the server will receive a Kiss-of-Death packet in short order.
So, we configure our Hyper-V host to be an authoritative time server polling ntp.org’s servers every 30 minutes.
To do so we need to set things up on the host.
We use this free tool to test our setup from a client system:
Drop in the Hyper-V host’s name and we should see the following:
Once we have a successful time poll we run the following command set on the PDCe VM as per our previous blog post on time skew:
The final result should be the Hyper-V server as source time.
We then create a batch file with the step 4 command in it and schedule that batch file to run as frequently as every minute on the most demanding VMs.
Chef de partie in the SMBKitchen ASP Project