I have several virtual machines that reset the time after a restart. I have verified the correct time in the BIOS and the time zone. I can manually correct the time, but after every restart, the time is off by 5 hours.
Are you in the (-5 GMT) timezone? Is there something that makes sense to the 5 hour number? I seem to remember a checkbox to use UTC or change the clock to your timezone.
Check out KB "Adjusting ESX host Time Zone" : http://kb.vmware.com/kb/1436
Also look at your VMware Tools settings, your time could be getting messed up if the VMs are set to sync time with the host and the host time is wrong or set to use UTC.
EDIT: Just saw this. It'll probably be helpful. Timekeeping Best Practices: http://kb.vmware.com/kb/1318
I didn’t have the box checked in VMware Tools to sync, but that did not resolve the issue. I’m looking at the KB article now and will update as soon as possible. Thank for the suggestions thus far.
Just in case this helps jog a memory. If this is ESXi it only uses UTC time. There is no timezone setting on the ESXi host. On startup a VM hardware clock will have UTC time until the OS adjusts for timezone.
But there is NTP option in the ESXi, so what is that for then ?
Using NTP doesn't have anything to do with timezone. In Linux or Windows you may point to a time server but you also must set a timezone. The timezone allows the clock to be set to a local time relative to UTC (plus or minus some value). ESXi logs etc are UTC.
I finally figured the time issue out. Within the vSphere Client, on the configuration tab, under the Software section…no NTP server were listed and the time was off by 5 hours. Once I added the ntp server information and restarted the service, all is well.
Thank you to each you for helping me connect the dots.
I am lucky to have found this thread and all your posts. I got the same problem before and was wondering if it is due to my OS' date and time configuration. I have been changing it almost everytime thinking it was the source. Anyway, everything has been answered. :smileygrin: