Why is the Time zone wrong on my VM?

Chris Shustak 1 Reputation point
2024-01-23T22:31:37.9766667+00:00

I have a hardware server running Windows 2022 standard, and acting as a Hyper V host.

I have two virtual servers configured on this physical box. One is the Active Directory Domain Controller / DNS server, and the other server is our practice management and file server.

The hardware server is a stand alone, workgroup, Windows install, while the DC and the practice management computer are both members of our office Active Directory domain, along with all of the workstations.

The hardware server syncs it's clock to the windows time server on the Internet. In Hyper V manager, I checked off Time Synchronization for each virtual machine.

Here is the output from the hardware server.

"w32tm /query /source" "time.windows.com,0x8"

The hardware server's time zone is correct - Eastern, and the time is correct as well.

For some weird reason, both VMs have the wrong time zone set. Time is correct, but the zone is 3 hours off.

I can't manually reset the time zone on either VM.

Why are the VMs getting the wrong time zone?

When I type "w32tm /query /source" I get "VM IC Time Synchronization Provider." as a response on both VM servers.

Thanks

Hyper-V
Hyper-V
A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,809 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Sachith Lakmal 126 Reputation points
    2024-01-23T22:49:44.6433333+00:00

    Disable Time Synchronization in Hyper-V Integration Services:

    In Hyper-V Manager, for each virtual machine, go to "Settings."

    Under the "Management" section, uncheck the "Time synchronization" option.

    Click "Apply" and then "OK."

    Configure Time Settings within VMs:

    Within each virtual machine, ensure that the time zone settings are correct.

    Use the following command to manually set the correct time zone on each VM:

       Set-TimeZone -Id "Eastern Standard Time"
       
    

    Replace "Eastern Standard Time" with the correct time zone for your location. Review Group Policy Settings:

    Check the Group Policy settings related to time synchronization. Open the Group Policy Editor (gpedit.msc) within each virtual machine and navigate to: Computer Configuration -> Administrative Templates -> System -> Windows Time Service -> Time Providers

    Ensure that the "Enable Windows NTP Client" policy is set to "Enabled" and configured properly.

    Check Registry Settings:

    Open the Registry Editor (regedit) within each virtual machine.

    Navigate to: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters

    HKEY_LOCAL_ \Services\W32Time\Parameters Verify the values of the keys related to time synchronization. For example, "Type" should be set to "NTP."

    Restart the Windows Time Service:

    In each virtual machine, open a command prompt with administrative privileges and run the following commands:

    net stop w32time net start w32time Verify Hyper-V Host Time Settings:

    Double-check the time zone and time settings on the Hyper-V host itself. Ensure that the host's time zone is set correctly.

    Recheck Hyper-V Integration Services:

    After making changes, re-enable time synchronization in Hyper-V Manager for each virtual machine.

    Check if the issue persists.

    Verify BIOS/UEFI Settings:

    Ensure that the system time and date in the host server's BIOS/UEFI settings are correct.

    Check for Windows Updates:

    Ensure that both the Hyper-V host and the virtual machines have the latest Windows updates installed.

    0 comments No comments

  2. Ian Xue 39,286 Reputation points Microsoft Vendor
    2024-01-24T07:13:18.0233333+00:00

    Hi Chris,

    Hope you're doing well. Please follow the following steps:

    1. Right click each VM and choose "settings".
    2. At the bottom choose "integration services".
    3. Turn off Time Sync. I hope this helps!

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.