-
Notifications
You must be signed in to change notification settings - Fork 28
Clock unstable in KVM VMs
Jan Poctavek edited this page Oct 12, 2020
·
4 revisions
There's an issue in SmartOS kvm-clock
implementation that with some CPUs under (un)certain circumstances causes an OS clock to jump forward and then quickly backwards.
$ date
Thu Dec 19 16:03:58 UTC 2019
$ date
Thu Dec 19 16:18:43 UTC 2019
$ date
Thu Dec 19 16:03:59 UTC 2019
$ date
Thu Dec 19 16:04:00 UTC 2019
One workaround is to set OS clocksource inside VM to HPET
.
echo hpet > /sys/devices/system/clocksource/clocksource0/current_clocksource
sudo apt-get install sysfsutils
echo devices/system/clocksource/clocksource0/current_clocksource = hpet >> /etc/sysfs.d/clocksource.conf
sudo systemctl enable sysfsutils.service
sudo systemctl start sysfsutils.service
Homepage | User Guide | API Reference | Wiki