VirtualBox

5 天 前 建立

18 時 前 更新

#22334 new defect

VM clock goes backwards

回報者: square 負責人:
元件: other 版本: VirtualBox-7.1.4
關鍵字: monotonic time erlang 副本: square
Guest type: Linux Host type: Windows

描述

We have been successfully running our Erlang/Elixir apps on different virtualization platforms (VMware Workstation 15 Pro, Proxmox) and we are now evaluating VirtualBox.

We are facing repetitive crashes of our apps with error OS monotonic time stepped backwards!:

[root@myserver:~]# journalctl -b -S 10:14:40 -U 10:14:50 | cat
Feb 24 10:14:44 myserver myapp[2680]: OS monotonic time stepped backwards!
Feb 24 10:14:44 myserver myapp[2680]: Previous time: 5730208658372
Feb 24 10:14:44 myserver myapp[2680]: Current time:  5730208647858
Feb 24 10:14:44 myserver systemd-coredump[4075]: Process 2680 (beam.smp) of user 399 terminated abnormally with signal 6/ABRT, processing...
Feb 24 10:14:44 myserver systemd[1]: Started Process Core Dump (PID 4075/UID 0).
Feb 24 10:14:44 myserver systemd-coredump[4076]: Removed old coredump core.beam\x2esmp.395.f5481f856fd04a718b5ca70219bc6f9d.2255.1740388064000000.zst.
Feb 24 10:14:49 myserver systemd-coredump[4076]: Process 2680 (beam.smp) of user 399 dumped core.

It seems that somehow the VirtualBox VM clock is going backwards, even with all of the following conditions combined:

  • Disabled the Guest Additions Time Synchronization
  • Disabled Guest Additions, for good measure
  • Disabled NTP synchronization

For reference, this issue is observed with:

Host

Guest

  • NixOS 24.11.20250116.3355599 (Vicuna)
  • Linux version 6.6.71

What causes the VM clock to go backwards? Is there a way to fix it?

First reported at:

附加檔案 (1)

fas.dev2.xxxxxxx-2025-02-27-12-31-41.log (84.2 KB ) - 5 天 前, 由 square 新增

下載所有附檔: .zip

更動歷史 (5)

5 天 前square 編輯

comment:1 3 天 前bird 編輯

Thanks for the report. Since it's an SMP guest, I suspect it's a bad case of TSC synchronization by the guest. We'll look into ways to assist the guest in getting a zero delta between the TSC of the CPUs.

comment:2 2 天 前square 編輯

For information, I tried setting a single CPU on the VM and the issue disappeared.

Of course, proof by example is a fallacy but it went from more than 50 errors per day with 2 CPU to exactly 0 per day with a single CPU.

comment:3 2 天 前bird 編輯

I've implemented a fix that should work on more recent windows versions (19H1 and later). Test builds with revision 167943 or later should include it (not sure when I get a chance to upload).

Another way to workaround the issue is to disable Hyper-V on the host (a little complicated). That worked here.

comment:4 18 時 前Klaus Espenlaub 編輯

Fix is available on the test builds page.

注意: 瀏覽 TracTickets 來幫助您使用待辦事項功能

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette