[go: nahoru, domu]

Skip to content
This repository has been archived by the owner on Jan 1, 2021. It is now read-only.

VirtualBox time not synchronizing #1143

Open
andrewcurioso opened this issue Feb 25, 2016 · 1 comment
Open

VirtualBox time not synchronizing #1143

andrewcurioso opened this issue Feb 25, 2016 · 1 comment
Labels

Comments

@andrewcurioso
Copy link

The time in VirtualBox for constantly drifts on OS X. Within minutes the time is wrong.

I tried running sudo VBoxService -f -vvv --enable-timesync --timesync-interval 1000 and this is what I get:

00:00:01.015271 timesync vgsvcTimeSyncWorker: Host:    2016-02-25T23:36:22.595000000Z    (MinAdjust: 100 ms)
00:00:01.016484 timesync vgsvcTimeSyncWorker: Guest: - 2016-02-25T23:29:17.996582000Z => 424 598 418 000 ns drift
00:00:01.017296 timesync vgsvcTimeSyncAdjust: adjtime by 424 598 418 000 ns

Note that the adjtime amount increases constantly. It is never actually brought back up to speed with the host system time.

If I manually run sudo ntpclient -s -h 0.boot2docker.pool.ntp.org it fixes the time momentarily but it drifts fairly quickly and VBoxService still shows the offset.

This is not the issue with the machine going to sleep. This happens on a fresh uninterrupted VM.

Update:
If I use the --timesync-set-threshold 1 it will set the time explicitly every time and that at least keeps the clock in sync but it is a terrible solution.

@servel333
Copy link

Workaround works

@wglambert wglambert added question Usability question, not directly related to an error with Boot2Docker Issue and removed question Usability question, not directly related to an error with Boot2Docker labels Jul 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants