Opened 7 weeks ago
Closed 2 weeks ago
#22334 closed defect (fixed)
VM clock goes backwards => fixed in svn
Reported by: | square | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox-7.1.4 |
Keywords: | monotonic time erlang | Cc: | square |
Guest type: | Linux | Host type: | Windows |
Description
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
- Windows 11 Pro 24H2
- VirtualBox 7.1.4
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:
Attachments (1)
Change History (8)
by , 7 weeks ago
Attachment: | fas.dev2.xxxxxxx-2025-02-27-12-31-41.log added |
---|
comment:1 by , 7 weeks ago
comment:2 by , 7 weeks ago
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 by , 7 weeks ago
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:5 by , 6 weeks ago
After a bit over 24 hours of letting my 2-cores VM running with VirtualBox test build Version 7.1.7 revision 167943, I did not have a single occurrence of the issue. So, it seems like the fix is working.
comment:6 by , 6 weeks ago
Summary: | VM clock goes backwards → VM clock goes backwards => fixed in svn |
---|
comment:7 by , 2 weeks ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Hello,
We just released VirtualBox 7.1.8 which is available on the Downloads page. This issue should be fixed in this version.
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.