# Miscellaneous

# vbox to timesync

useful if you want to have enough time to syncronize with target before virtualbox resynchronizes the time.

# Synchronize the time with the host every 60 seconds (Default 10 seconds)
VBoxManage guestproperty set "{VM UUID GOES HERE}" "/VirtualBox/GuestAdd/VBoxService/--timesync-interval" 60000
# Adjust in drift increments of 1 second (Default 100 milliseconds)
VBoxManage guestproperty set "{VM UUID GOES HERE}" "/VirtualBox/GuestAdd/VBoxService/--timesync-min-adjust" 1000
# Adjust if out of sync by more than 30 seconds (Default 20 minutes!)
VBoxManage guestproperty set "{VM UUID GOES HERE}" "/VirtualBox/GuestAdd/VBoxService/--timesync-set-threshold" 30000

# matching time on target

apt-get install chrony
timedatectl set-ntp true
ntpdate 10.10.10.10