windows icon indicating copy to clipboard operation
windows copied to clipboard

[Question]: Possible to re-sync time in Windows VM using a Linux command?

Open eylenburg opened this issue 6 months ago • 3 comments

Is your question not already answered in the FAQ?

  • [x] I made sure the question is not listed in the FAQ.

Is this a general question and not a technical issue?

  • [x] I am sure my question is not about a technical issue.

Question

When the Linux host goes into standby (sleep/suspend, whatever the correct term is), the Windows VM "pauses" its time. So when the host sleeps for 10 minutes, the time in the Windows VM is wrong.

Is there any way to fix the time with a Linux command?

virsh domtime ‘VM_Name’ —now would work normally but the Docker image doesn't contain virsh so I was wondering if there's a workaround?

eylenburg avatar Jun 25 '25 08:06 eylenburg

No, I have no idea. The quickest solution would be to install a program in Windows that syncs the time to a NTP server and set the interval very low (every minute for example).

kroese avatar Sep 18 '25 18:09 kroese

I installed NetTime in the install.bat, and it works fine.

benjamin658 avatar Oct 09 '25 02:10 benjamin658

@benjamin658 Did you configure it for a very low interval? Because in the screenshot on their homepage it appears to sync every 10 hours, which would not solve the OP's problem. But I guess that is configurable?

kroese avatar Oct 09 '25 07:10 kroese