[Question]: Possible to re-sync time in Windows VM using a Linux command?
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?
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).
I installed NetTime in the install.bat, and it works fine.
@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?