Skip to content

Instantly share code, notes, and snippets.

@voidius
Created December 8, 2015 09:53
Show Gist options
  • Save voidius/aae110d490cda82a3275 to your computer and use it in GitHub Desktop.
Save voidius/aae110d490cda82a3275 to your computer and use it in GitHub Desktop.
Virtualbox host-to-guest time synchronisation
# Time sync for Vagrantboxes
vb.customize ["setextradata", :id, "VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled", 0]
vb.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold", 1000]
vb.customize ["guestproperty", "set", :id, "/VirtualBox/GuestAdd/VBoxService/--timesync-set-start", 1 ]
...
config.vm.provision :shell, inline: 'timedatectl set-timezone Europe/Riga'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment