Menu Title

Time Synchronization Problem in Hyper-V Host

w32 query configuration

I had clock issue on a Hyper-V Guest virtual machine. When I manually adjusted to the correct time on the virtual machine, within 5 seconds, the time changed back to 4-5 minutes late.

I have finally got it working! In this article, I explain how the clock issue is resolved.

Before we proceed, you need to understand the time server in your domain environment. The authoritative time server for your domain computers is the server that holds the PDC Emulator FSMO role in the forest root domain. You can execute "netdom /query fsmo" in the forest root domain machine to determine the DC that PDC Emulator role is running on.

The first thing that you will do is to ensure that Hyper-V Guest operating system receives time from the Hyper-V Host.

On Hyper-V Guest:

  • Execute "w32tm /query /configuration" to determine the time provider is Virtual Machine Integration Service (VMIC).

w32 query configuration

  • If not, "Time Synchronization Integration Service" might not be installed, you can navigate to Hyper-V Manager > VM Settings > Integration Services under Management and install "Time Synchronization"

Hyper-V Time Synchronization Service

HostGator $2.75 per month
HostGator
24/7/365 Technical Support, Free Site Building Tools, 4500 Website Templates, Free Shopping Cart Software, Ideal for WordPress, 45 Day Money Back Guarantee

The next step is to sync time on the virtual machine with the PDC emulator.

On Hyper-V Host:

  • Execute "w32tm /query /status" to identify the time provider

w32 query status

 

All in One WordPress Hosting Starts at 30$ per month
All in One WordPress Hosting
WordPress
High optimized WordPress hosting, secure firewall, HTTPS, Backup, hack-fix guarantee and many others at 30$ per month
  • Execute "w32tm /config /syncfromflags:domhier /update" to look at the PDC for time and resync

 

Here are few commands that you may find necessary

  • net stop w32time - Stop Windows Time Service
  • net start w32time - Start Windows Time Service 
  • w32tm /resync - Sync time service with the defined provider

Related Post