The time keeps changing on server- ESXi

Tore Jacobsen
Tore Jacobsen used Ask the Experts™
on
Hi. Have a ESXi server with 2 Virtual 2008 servers on.
The time on the 2 servers keep changing.. First I found that the time and date was wrong in BIOS on host.
Chaged that and the date was correct on servers. But time was 2 hours fast.
We are at CET + 2 so I went back in to Bios and sat clock to 2 hours early (compensating for the CET+ 2 hours)
Nex day it had changed again, added 2 more hours...

So in bios it's set to 08.00 time here is 10.00 and servers are showing 12.00 ...

Any ideas?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
do you use an NTP server to sync the host server to?

do you have vmware tools installed, and sync time to thebhost?

have you also set the time zone correctly in the virtual machines?
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
what is the time on the servers console?
Hi,
If your server are note domain controller, i recommend that you synchronize with the domain hierarchy
You will have to set the following key with the value "NT5DS"
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\NTP

The just do a net time w32time && net start w32time && w32tm /resync

Every 15 minutes by default, your server will syncrhonize with the PDC master.

HTH,
Samuel LEFEBVRE
Success in ‘20 With a Profitable Pricing Strategy

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

Tore JacobsenSystem adminstrator

Author

Commented:
Have tried disableing windows time service with same result.
In vmware tool the "time sync between vm's and ESX server" is unchecked

Time zone is correct on vsphere clinet pc and vm's

No the time is 11.10 on vsphere clinet, 13.10 on servers and 09.10 in bois..
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
the time in vsphere cliient is automatically adjusted to the local time of the pc.

is this the time on the server checked if you login to the server by esxi?

what are the virtual machines?

normally you sync vm time with host time, if yhey are not dc.

User this "Windows Time Agent Control Panel Applet" its a freeware utility and let you setup the time you want on server and then you can sync other server with this server.
http://www.greyware.com/software/domaintime/instructions/misc/agent/agent-free.asp
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
how are you checking esxi time?

esxi time is always utc, or should be.
VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017
Commented:
Okay to try and explain a little more clearly I've screen grabbed my screens

 Time on ESXi
You can clearly see on the ESXi console the time is 09:38 UTC.

You can see the time has been adjusted to the local time zone of the Client PC using the vSphere Client to 10:38 BST (British Summer Time UTC+1)

and you can see on my client PC the time is also 10.38 BST (British Summer Time UTC+1), okay it's a bit out, because my notebook doesn't time sync to domain, so is runnign fast.

So I would set the time in the Server BIOS to UTC, check that this time gets saved correctly after a reboot, and the time is still running in UTC.

Then check the time on the ESXi server at the console, not via the vSphere client, it should also show UTC.

Then checking in vSphere Client should reflect the time zone of your PC which is UTC+2.

and then Sync the Virtual Machines, by ticking the box to sync with host, and altering the Time Zone in Virtual Machines to also UTC+2.

Also check there is no time zone adjustement in the BIOS.
Tore JacobsenSystem adminstrator

Author

Commented:
Checked time in windows on pc running vSphere. Correct time (CET + 1).
Checked time on virtual servers (sbs 2008 + win 2008 std)  incorrect time CET + 3
checked time in bios on host, have changed from I set it to CET-1 to CET + 1

So Now the BIOS on host are correct (CET+1) and the Virtual servers keep changing to CET+3
TNB!! hey are not changing time zone, just time
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
what is the time on the server at the console.

its possible that esxi thinks that the time from bios is utc, and then time zone changes on vms would be +3.

check time on esxi server. by logging in to the server and pasting here.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization Consultant
Fellow 2018
Expert of the Year 2017

Commented:
also check times in virtual machine bioses
Tore JacobsenSystem adminstrator

Author

Commented:
Found that in vsphere, under host and config that the time was set wrong.
Don't know where it got the time setting from or what it affects, but have now changed that, Bios on host and in windows on Virtual servers and on pc running vsphere.

Hope this solves it.
Thank u all for helping! Love this forum!
Tore JacobsenSystem adminstrator

Author

Commented:
a true genius

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial