Time sync problems with Vagrant and VirtualBox

Zeneixe
Carwow Product, Design & Engineering

--

Daily, my guest vagrant’s machine clock (assume you’re using VirtualBox) would go off-sync with its OSX host machine forcing me to run the command:

sudo ntpdate ntp.ubuntu.com

Because I edit code from the host machine on NFS shared folders Rails wouldn’t reload the code in development mode when this sync issue happened.

Want the solution? Edit your vagrant file and add this setting:

vb.customize [ “guestproperty”, “set”, :id, “/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold”, 10000 ]

Interested in making an Impact? Join the carwow-team!
Feeling social? Connect with us on Twitter and LinkedIn :-)

--

--