Skip to content

Instantly share code, notes, and snippets.

@drofmij
Created September 3, 2021 12:56
Show Gist options
  • Select an option

  • Save drofmij/9bb0c08c63a9a0b0e293eea5999da437 to your computer and use it in GitHub Desktop.

Select an option

Save drofmij/9bb0c08c63a9a0b0e293eea5999da437 to your computer and use it in GitHub Desktop.
from: https://forums.virtualbox.org/viewtopic.php?f=6&t=90233
probably not needed at all if you have extension pack installed on host but here it is.
VB_VM_NAME="YOUR_VM_NAME_HERE"
# Synchronize the time with the host every 60 seconds (Default 10 seconds)
VBoxManage guestproperty set "${VB_VM_NAME}" "/VirtualBox/GuestAdd/VBoxService/--timesync-interval" 60000
# Adjust in drift increments of 1 second (Default 100 milliseconds)
VBoxManage guestproperty set "${VB_VM_NAME}" "/VirtualBox/GuestAdd/VBoxService/--timesync-min-adjust" 1000
# Adjust if out of sync by more than 30 seconds (Default 20 minutes!)
VBoxManage guestproperty set "${VB_VM_NAME}" "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold" 30000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment