Avoiding time drift in virtual machines

If you use a virtual machine, you might have noticed that its system time starts to lag after it has been in the ‘powered on’ state for some time. To address this, it is useful to run an NTP (Network Time Prococol) client within the VM to have its time synchronised regularly.

On Windows, this is enabled by default and uses time.windows.com.

On a Debian-based Linux distribution, you can install NTP with apt install ntp and start it with sudo systemctl start ntp.

Leave a comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.