8

No matter what, a Hyper-V virtual machine keeps finding ways to sync time with the host.

I have:

  • Disabled the time synchronization service
  • Disabled Windows time synchronization on the guest machine
  • mapped time.windows.com to 127.0.0.1 on the hosts file on the guest machine
  • used the Security Policy console to remove all users from being able to set date and time

What's interesting here, is that somehow Windows resets the last point (security policy) and adds back LOCAL SERVICE to the list of users allowed to set date and time. This is a totally unexpected behavior to me.

Anything I am missing?

resle
  • 209
  • 1
  • 4
  • 9

5 Answers5

4

How about unchecking Time synchronization option in Integration Services under VM settings? enter image description here

batistuta09
  • 9,210
3

Hyper-V guests always synchronize time with the host on BIOS level during boot. Try to specify the time zone properly, otherwise you can manage time in Active Directory.

You can check the following link: https://blogs.msdn.microsoft.com/virtual_pc_guy/2010/11/19/time-synchronization-in-hyper-v/

Hope it helps.

Stuka
  • 6,012
1

For anyone still looking for this answer, there are 2 services in the VM that need to be stopped - "Windows Time" and "Hyper-V Time Synchronization Service". When I stop (and disable) both of these services then I'm able to set the clock in my VM and it doesn't get reset, even after a reboot.

MDK
  • 11
1

In addition to the answer that suggests to stop "Windows Time" and "Hyper-V Time Synchronization Service", I found that you not only need to stop it, but to deactivate the "Windows time" service. If not it will be restarted.

0

Very old question, but I found the solution! After disabling and stopping time services, restart your VM. Now the time stays changed for good.

FYI to change date easily, just to "date 6/20/2020" on cmd console

Evelyn
  • 9