VMware Cloud Community
kryichek
Enthusiast
Enthusiast

Guest OS time advances after VMotion then retreats

Today one of my physical hosts failed. HA restarted the guests on another Node in my HA cluster. I noticed that one of my guests advanced its time 1 hour then after a few minutes of running it retreated back to the correct time. What caused this?

The VMtools are NOT set to sync time with local hardware.

Charles Mielak VCP, vExpert
Reply
0 Kudos
5 Replies
dominic7
Virtuoso
Virtuoso

Today one of my physical hosts failed. HA restarted the guests on another Node in my HA cluster. I noticed that one of my guests advanced its time 1 hour then after a few minutes of running it retreated back to the correct time. What caused this?

The VMtools are NOT set to sync time with local hardware.

So, how do they sync with time then?

When the system boots up it has to get time from the virtual BIOS, so even though you don't sync the time on the host system with the guests it's important to keep the host time right. After that I assume that your VM updated its time from another source like NTP or the domain.

kryichek
Enthusiast
Enthusiast

They sync time from from the domain controller. Both the domain controllers and the VMware hosts sync their time to one of our two time servers.

I verified that the host that booted the VM had the time synced properly.

Charles Mielak VCP, vExpert
Reply
0 Kudos
dominic7
Virtuoso
Virtuoso

If you had a physical system, it would get it's time ( initially ) from the BIOS clock, it's important to remember that ESX virtualizes the BIOS and the BIOS clock time is passed from the host system time.

Is the host system's time off?

Reply
0 Kudos
Chamon
Commander
Commander

If you run this on the host it will sync the system clock to the NTP time

hwclock --systohc

Find more info here

http://cmsjustin.blogspot.com/2007/09/ntp-time-synchronization-for-windows.html

Reply
0 Kudos
kryichek
Enthusiast
Enthusiast

If you had a physical system, it would get it's time ( initially ) from the BIOS clock, it's important to remember that ESX virtualizes the BIOS and the BIOS clock time is passed from the host system time.

Is the host system's time off?

That information is good to know.

All of my Hosts in the cluster have the correct time. I havent had to re-sync any time on the phyisical hosts.

Charles Mielak VCP, vExpert
Reply
0 Kudos