Clock skew after resume on virtual machine

  1.    #1

    Clock skew after resume on virtual machine


    Hi, I'm a relatively experienced Windows user and have a Windows 10 system set up as a virtual machine guest on a Linux system host, and when the computer (and Windows 10 guest) resume from suspend, the clock is wrong and never resets automatically. It's necessary for me to right-click on the clock in the lower-right corner, and navigate to "Internet Time" where I can update it manually using "update now" on one of the time servers.

    The system is set to use time.windows.com, but it apparently doesn't sync frequently enough to update the time after it's resumed from suspend.

    I've checked to make sure the "Windows Time" service is running (it is, and set to Automatic at startup). I've also verified w32tm is configured to use time.windows.com (w32tm /query /source)

    I've also gone through steps in guides similar to this one:
    FULL FIX: Windows time service not running on Windows 10

    Is this something that other users using Win10 as a virtual machine experience? Should it be necessary to set up a task that executes upon the system resuming? Perhaps a task that just syncs the clock every few minutes?
      My ComputerSystem Spec

  2. f14tomcat's Avatar
    Posts : 42,523
    Triple boot - Win 10 Pro, Win 10 Pro Insider (2) - (and a sprinkling of VMs)
       #2

    gossamer said: View Post
    Hi, I'm a relatively experienced Windows user and have a Windows 10 system set up as a virtual machine guest on a Linux system host, and when the computer (and Windows 10 guest) resume from suspend, the clock is wrong and never resets automatically. It's necessary for me to right-click on the clock in the lower-right corner, and navigate to "Internet Time" where I can update it manually using "update now" on one of the time servers.

    The system is set to use time.windows.com, but it apparently doesn't sync frequently enough to update the time after it's resumed from suspend.

    I've checked to make sure the "Windows Time" service is running (it is, and set to Automatic at startup). I've also verified w32tm is configured to use time.windows.com (w32tm /query /source)

    I've also gone through steps in guides similar to this one:
    FULL FIX: Windows time service not running on Windows 10

    Is this something that other users using Win10 as a virtual machine experience? Should it be necessary to set up a task that executes upon the system resuming? Perhaps a task that just syncs the clock every few minutes?
    It may be that you are using Linux as the host, not Windows. I have several VMs running as guests under Windows 1903, and no issues like you describe.
      My ComputersSystem Spec

  3. Megahertz's Avatar
    Posts : 278
    Windows 7 HP 64 - Windows 10 Pro
       #3

    Linux sets the real clock (RTC) as UTC (GMT time) and windows sets the RTC as local time (LTC).

    In Linux, UTC sets RTC. RTC is converted to LTC using Time zone to show on the taskbar.

    In Windows, UTC is converted to LTC using Time zone and sets the RTC. What you see in the taskbar is the same as the RTC.

    I don't know if it's Windows that enters sleep mode or if it is Linux.

    How many minutes is the difference when you wake up from sleep?
      My ComputerSystem Spec

  4.    #4

    Megahertz said: View Post
    Linux sets the real clock (RTC) as UTC (GMT time) and windows sets the RTC as local time (LTC).

    In Linux, UTC sets RTC. RTC is converted to LTC using Time zone to show on the taskbar.

    In Windows, UTC is converted to LTC using Time zone and sets the RTC. What you see in the taskbar is the same as the RTC.

    I don't know if it's Windows that enters sleep mode or if it is Linux.

    How many minutes is the difference when you wake up from sleep?
    I don't believe it's a timezone issue. I do increasingly believe it's a problem with how Linux is setting the clock for the virtual machine.

    The time difference is more than just a timezone difference. I think the initial time reflects the time the virtual host was last suspended. In other words, after it resumes, it either never receives an update from the host on the current time or it never probes the time server after resuming for the current time.
      My ComputerSystem Spec

  5. jimbo45's Avatar
    Posts : 7,663
    Windows / Linux : Centos, Ubuntu, OpenSuse
       #5

    Hi there

    @gossamer


    I think in the Virtual Bios ( The BIOS set by the VM) -- to get into it depending on the Virtual Software you are using go into "Boot into Firmware" or equivalent on the VM menu. From there you can set the time for the virtual machine -- might depend on the VM software you are using.

    I use Linux Hosts regularly for running Windows VM's -- no probs at all with timezones.

    Check on your Linux Host that the timezone is being set correctly -- and of course from the Host Machine's BIOS as well.

    Cheers
    jimbo
      My ComputerSystem Spec

  6.    #6

    gossamer: If you have Vmware Tools (or equivalent) installed, try to disable timesync in VM properties; it can interfere with timezone & ntp.
      My ComputerSystem Spec



 

Related Threads
virtual machine in Virtualization
I want to build an oracle VM. I have a new PC with UEFI I am not used to. It is set to the old BIOS and secure boot is disabled. I found virtualization by searching and chose to change virtualization from disabled toe enabled. Is this what I...
I have used VMware in the past with limited success though I suspect the hardware limitations had something to do with it. The leaning curve was modest if not at times tedious to confusing at times and I am not particularly looking forward to that...
SKY GO on a Virtual Machine in Virtualization
Hi folks anybody here managed to get SKY GO up and running on a Windows Virtual Machine. I'm bashing my head against a brick wall here. Netflix, BBC Iplayer and Amazon prime all work perfectly so what's with SKY. - Even BT sports works fine...
DM Log Collector was ran in safe mode and attached. 102728 The BSOD occurs very soon after logging in. Windows 10
I went to see my daughter and after she resumed her computer from hibernate (it had been off for about 2 days) a message popped up saying its ip address had been detected in use by another computer. I suspect it was my cell phone that when in...
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 04:30.
Find Us