On Fri, Oct 18, 2024 at 06:37:00PM -0500, Brian Conway wrote: > On Fri, Oct 18, 2024, at 5:24 PM, All wrote: > > Hi, > > > > Alpine guest has a pretty bad time drift. I saw that a while back, > > 7.3(?) there were > > people facing similar issue with vmd guests. > > I did search for solution and saw some workarounds. > > Playing with kern time hardware under sysctl. > > No luck though. > > > > Does anyone faced this problem? How did you fix it? > > You are correct, there have been many threads on this topic over the years on > bugs@ and misc@. Here's one, but you can find others by searching for some > combination of 'clocksource' and 'tsc': > > https://marc.info/?t=169787365000001 > > I prefer the follow Linux kernel parameters, versus the installable kernel > module, on my Alpine guests to achieve reliable time: > > clocksource=tsc tsc=reliable > > I'm currently on Alpine 3.20 without any time skew, and no changes have been > made to the host system. Success *may* vary by host system, in this case that > guest lives on an Intel NUC8i5BEH. > > Brian Conway > Owner > RCE Software, LLC >
dv@ also maintains a pv clock driver for linux that I personally use on all my linux VMs: https://github.com/voutilad/vmm_clock https://github.com/voutilad/virtio_vmmci