• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 52
  • Last Modified:

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.
1 Solution
Dmitri FarafontovLinux Systems AdminCommented:
If you install VMWare tools you should have a more or less consistent time. You did not mention the hypervisor you are using with your previous post however. Here is a video about it:
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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.


SeeDkAuthor Commented:
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.
Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
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.
SeeDkAuthor Commented:
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.
Satish AutiSenior System AdministratorCommented:
You need to disable time sync with exsi and configure your domain controller as NTP server for fetching time from external time servers.


OR run below command in elevated command prompt.

net stop w32time
w32tm /unregister
w32tm /register
net start w32time
net time /setsntp:
net stop w32time & net start w32time
w32tm /config /manualpeerlist:pool.ntp.org /syncfromflags:manual /reliable:yes /update
w32tm /resync /rediscover
net stop w32time & net start w32time

SeeDkAuthor Commented:
Ok thanks I made this change - hoping this does the trick to keep it in sync.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now