VMware Cloud Community
KeithArmstead01
Contributor
Contributor
Jump to solution

Multiple VM's showing 7 hours ahead of the hosts

I have a lab environment with 3 esxi hosts.  I have multiple vm's that have their time incorrect.  The hosts are set to PST for the Time Zone and the time on them is correct.  On the vm's that are incorrect, they have the correct Time Zone, but the time is 7 hours ahead.  ie: Time on host is 12:00 pm, then the vm is showing as 7:00 pm.  It is not happening on all vm's just some of them. 

The hosts are running 6.5.0, 10719125

The vm's are a combination of Windows 2016 and 2019

Keith

1 Solution

Accepted Solutions
sjesse
Leadership
Leadership
Jump to solution

The time is only set on vm creation unless you check the box in the vm options to sync with the host, and thats only if vmtools is installed. Set the DCs time correctly manually, and either have ad in windows sync to an ntp sources, or have the DCs sync with the host. Then any vm thats joined to the domain will sync. You need to change the dcs manually, if the off my a lot ntp won't do big enough changes.

VMware Knowledge Base

View solution in original post

Reply
0 Kudos
7 Replies
sjesse
Leadership
Leadership
Jump to solution

Do you have more than one domain controller , I've seem this occur when one domain  controller time was off.

Reply
0 Kudos
KeithArmstead01
Contributor
Contributor
Jump to solution

I have setup 2 domain controllers and one of them is showing correct and one is showing incorrect time.

EDIT:  Actually, just looked at the DC that I thought was correct and it is also incorrect.  So both DC are showing the incorrect time.

Reply
0 Kudos
sjesse
Leadership
Leadership
Jump to solution

That seems like the problem, fix it on the incorrect one, and the vms should catch up. If therey are clones just delete them, when they join the domain they should update.

Reply
0 Kudos
KeithArmstead01
Contributor
Contributor
Jump to solution

Just went thru all of the Windows VM's and they are all showing the incorrect time.

Reply
0 Kudos
sjesse
Leadership
Leadership
Jump to solution

The time is only set on vm creation unless you check the box in the vm options to sync with the host, and thats only if vmtools is installed. Set the DCs time correctly manually, and either have ad in windows sync to an ntp sources, or have the DCs sync with the host. Then any vm thats joined to the domain will sync. You need to change the dcs manually, if the off my a lot ntp won't do big enough changes.

VMware Knowledge Base

Reply
0 Kudos
KeithArmstead01
Contributor
Contributor
Jump to solution

I have checked all of the linux systems running and they are all showing correctly. 

I have tired to change the windows systems manually and it reverts back to the 7 hours off time.  When I open the Date & Time window it shows: *Some settings are hidden or managed by your organization.  This is a Lab Environment and I have no GPO's set.  I have changed it in command prompt and changed it thru powershell and it does not hold.

Reply
0 Kudos
KeithArmstead01
Contributor
Contributor
Jump to solution

I went into VM Options for both of the DC and had them sync time with the hosts and they changed immediately.  The others I did a w32tm /resync and they changed their time correctly