Problem

The time on the virtual machine is always wrong of a number of hours

Solution

This is actually a problem that was occurring long time ago, with very old versions of VmWare and RedHat Linux.

I have not seen this problem since years.

But, just in case it come up again:

  • use the vmware-toolbox option "synchronize with host system"
    This should work really in all cases with recent VmWare versions.
  • On Linux RH 6.1 and 6.2 the clock is set in /etc/rc.d/rc.sysinit.
    The default configuration prevents setting the clock and BIOS time. Comment out the lines:
         $CLOCK $CLOCKFLAGS
         action "Setting clock $CLOCKDEF: `date`" date


-- GianlucaChiozzi - 26 Jul 2005