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

VM / wrong date time #69

Closed
aheissenberger opened this issue Jan 10, 2014 · 12 comments
Closed

VM / wrong date time #69

aheissenberger opened this issue Jan 10, 2014 · 12 comments

Comments

@aheissenberger
Copy link
Contributor

Host System is OSX:
OSX (Host): Fr 10 Jan 2014 04:42:26 CET
VM (Tiny Core Linux): Fri Jan 10 04:41:13 UTC 2014

to fix this you need to set this FLAG for virtual box:
--rtcuseutc on // This option lets the real-time clock (RTC) operate in UTC time

@steeve
Copy link
Contributor

steeve commented Jan 10, 2014

Can you open a PR? This way we'll know you're the author of the fix :)
Thanks!

@mtscout6
Copy link

mtscout6 commented Oct 8, 2014

How do I apply this update to my boot2docker install?

@SvenDowideit
Copy link
Contributor

so long as you're using the boot2docker tool to create the virtual machine, it already has been applied - the code is in the boot2docker-cli repository.

@mtscout6
Copy link

mtscout6 commented Oct 9, 2014

I followed the installation instructions from docker.io here just this week. So, I should have the latest if this was there in January. Yet all the time keeps saying it's two days in the past.

@mtscout6
Copy link

mtscout6 commented Oct 9, 2014

Ok, I figured out my problem when I sleep my mac then wake it up the next morning the boot2docker clock is not updating. When I bring down boot2docker then restart it works fine.

@freiit
Copy link

freiit commented Dec 2, 2014

This is not fixed.

@brdloush
Copy link

+1

It's still an issue. I've done a "boot2docker up" today and realized that date is "Tue Dec 9 17:59:11 UTC 2014". But in reality it's 10th December 2014, 10:14AM.

@erikprice
Copy link

@brdloush Does #661 fix this for you?

@aral
Copy link

aral commented Jan 23, 2015

Hi @erikprice, I can confirm that #661 does not fix this for me. Current time on OS X 23 Jan, 9:08 AM. In the container 23 Jan, 6:22 AM. Running with release 1.4.1.

The workaround, as provided by Eric Silverberg, is to run the following command periodically from OS X:

/usr/local/bin/boot2docker ssh sudo ntpclient -s -h pool.ntp.org

@erikprice
Copy link

Same here @aral. In the meantime I've been using this convenience wrapper: https://github.com/beechnut/boot2docker-ntp

@muneeb-ali
Copy link

+1 to @aral, having the same issue and need to run

/usr/local/bin/boot2docker ssh sudo ntpclient -s -h pool.ntp.org

@gregholland
Copy link

Same issue here, when I sleep my mac and wake it up the next morning the b2d clock does not update.

mberhault pushed a commit to cockroachdb/cockroach that referenced this issue Jul 8, 2015
This lets us continue in the face of clock skew, specifically
on boot2docker: boot2docker/boot2docker#69
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants