SeeDk
asked on
Do VM's get their time from VMhosts at all?
I am having an issue with one Windows 7 VM where sometimes the time appears to be drifting. It will be a few minutes off from what it is supposed to be.
I installed a 'Net Time' client to get this to sync up with an internet time server and it was working fine for the most part. But the host was rebooted over the weekend and the VM again had the wrong time until someone logged into it to check.
What is strange is that I have other Windows 7 VMs which don't appear to have this problem - it is only this one VM but I'm not sure what else to check. The Windows time setting seem correct.
The VM host itself has a time that is way off - I think it has never been configured. Before any change I want to make sure it would even have an effect in this case.
I installed a 'Net Time' client to get this to sync up with an internet time server and it was working fine for the most part. But the host was rebooted over the weekend and the VM again had the wrong time until someone logged into it to check.
What is strange is that I have other Windows 7 VMs which don't appear to have this problem - it is only this one VM but I'm not sure what else to check. The Windows time setting seem correct.
The VM host itself has a time that is way off - I think it has never been configured. Before any change I want to make sure it would even have an effect in this case.
if you have VMware Tools installed, even if you turn off Sync with Host, (which is the Default) when the VM restarts or is vMotioned, it will Sync time with host!
see here to disable, by modifying the VMX file.
https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1189
https://blogs.vmware.com/apps/2016/01/completely-disable-time-synchronization-for-your-vm.html
see here to disable, by modifying the VMX file.
https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1189
https://blogs.vmware.com/apps/2016/01/completely-disable-time-synchronization-for-your-vm.html
ASKER
This is running on ESXI 5.5 - VMware tools is not installed on either VM. What is the default behavior in that case?
Actually both of these VMs are joined to a Windows domain and in theory it should get the time from Domain Controller. Which it has been working for a long time now - not sure why recently the time has become an issue.
Actually both of these VMs are joined to a Windows domain and in theory it should get the time from Domain Controller. Which it has been working for a long time now - not sure why recently the time has become an issue.
The Domain Controller should be where this VM gets it's time source.
the time of the VM, matches what the host ?
if VM time is not synced it will drift... it has no clock.
the time of the VM, matches what the host ?
if VM time is not synced it will drift... it has no clock.
ASKER
It did match with the DC until recently.
It begun to drift a few weeks ago which is why I installed net time :http://www.timesynctool.com/ on the VM.
Works fine but for some reason the time was still off. I guess the issue is not the ESXI host time though...it sounds like that should not affect it.
It begun to drift a few weeks ago which is why I installed net time :http://www.timesynctool.com/ on the VM.
Works fine but for some reason the time was still off. I guess the issue is not the ESXI host time though...it sounds like that should not affect it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok thanks I made this change - hoping this does the trick to keep it in sync.
https://www.youtube.com/watch?v=tVEw9VprYeQ