I have a VM (server 2008 R2) that is running on an ESXi 5.0 host. The time/date is wrong on the host. Everytime I reboot the virtual machine, the time/date on it sync with the host, even though I do not have that option enabled (in vsphere or vmware tools, see screenshot).
I adjusted the time/date on the host so the time is accurate when I reboot the VM now, but how do make sure that the VM does not sync the time/date with the host when it is rebooted?
Thanks, I can provide any other details you need.
In which case, follow this KB article;
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1189
Open a Command Prompt.
Type the following command and then press ENTER:
w32tm /config /syncfromflags:domhier /update
Type the following command and then press ENTER:
net stop w32time
Type the following command and then press ENTER:
net start w32time
Did you check the VM's settings, Options Tab, VMware tools for the same?
It is already set to use the domain hierarchy:
reg query HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters
jdptechnc wrote:
Did you check the VM's settings, Options Tab, VMware tools for the same?
Yes I did. I posted that in the question and attached a screenshot of it
In which case, follow this KB article;
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1189
Thanks
It seems odd that I would have to do that for every virtual machine to ensure that it doesn't sync time with the host. The article says the VM will sync with the host "after a few specific events that are likely to leave the time incorrect".
I wish I knew what those events were so I could resolve the root issue.
Do you use NTP time sources? Why don't you point the hosts at the time servers that your domain controllers use so that they are both in sync?
Here is another useful link;
http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1318
I wish I knew what those events were so I could resolve the root issue.
See this information here;
When you turn on periodic time synchronization, VMware Tools sets the time of the guest operating system to be the same as the time of the host.
After time synchronization occurs, VMware Tools checks once every minute to determine whether the clocks on the guest and host operating systems still match. If not, the clock on the guest operating system is synchronized to match the clock on the host.
If the clock on the guest operating system falls behind the clock on the host, VMware Tools moves the clock on the guest forward to match the clock on the host. If the clock on the guest operating system is ahead of that on the host, VMware Tools causes the clock on the guest to run more slowly until the clocks are synchronized.
Native time synchronization software, such as Network Time Protocol (NTP) for Linux and the Mac OS X, or Microsoft Windows Time Service (Win32Time) for Windows, is typically more accurate than VMware Tools periodic timesynchronization and is therefore preferred. Use only one form of periodic time synchronization in your guests. If you are using native time synchronization software, turn off VMware Tools periodic time synchronization.
Regardless of whether you turn on VMware Tools periodic time synchronization, time synchronization occurs after certain operations:
■ | When the VMware Tools daemon is started (such as during a reboot or power on operation) |
■ | When resuming a virtual machine from a suspend operation |
■ | After reverting to a snapshot |
■ | After shrinking a disk |
When the operating system starts or reboots, and when you first turn on periodic time synchronization, synchronization can be either forward or backward in time. For other events, synchronization is forward in time.
To disable time synchronization completely, you must edit the configuration file (.vmx file) of the virtual machine and set several synchronization properties to FALSE.