[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Do VM's get their time from VMhosts at all?

Posted on 2017-06-19
7
Medium Priority
?
43 Views
Last Modified: 2017-06-19
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.
0
Comment
Question by:SeeDk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 12

Expert Comment

by:Dmitri Farafontov
ID: 42183831
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:
https://www.youtube.com/watch?v=tVEw9VprYeQ
0
 
LVL 123
ID: 42183834
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
0
 

Author Comment

by:SeeDk
ID: 42183839
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.
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 
LVL 123
ID: 42183850
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.
0
 

Author Comment

by:SeeDk
ID: 42183854
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.
0
 
LVL 11

Accepted Solution

by:
Satish Auti earned 2000 total points
ID: 42183870
You need to disable time sync with exsi and configure your domain controller as NTP server for fetching time from external time servers.

https://support.microsoft.com/en-in/help/816042/how-to-configure-an-authoritative-time-server-in-windows-server

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

Ref:
https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1318
0
 

Author Comment

by:SeeDk
ID: 42183995
Ok thanks I made this change - hoping this does the trick to keep it in sync.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If we need to check who deleted a Virtual Machine from our vCenter. Looking this task in logs can be painful and spend lot of time, so the best way to check this is in the vCenter DB. Just connect to vCenter DB(default DB should be VCDB and using…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question