Setting the right time in Guest OS
Time measurements within a virtual machine can sometimes be inaccurate due to difficulties with the guest operating system keeping the exact time.
Because virtual machines work by time-sharing host physical hardware, virtual machines cannot exactly duplicate the timing activity of physical machines. Virtual machines use several techniques to minimize and conceal differences in timing performance. However, the differences can still sometimes cause timekeeping inaccuracies and other problems in software running in a virtual machine.
Several things can be done to reduce the problem of timing inaccuracies:
You should always try to use guest operating systems that require fewer timer interrupts
Different operating systems and versions have different timer interrupts. For example:
Windows systems typically use a base timer interrupt rate of 64 Hz or 100 Hz, which means 100 interrupts per second
2.6 Linux kernels have used a variety of timer interrupt rates (100 Hz...