1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2026-05-22 10:15:16 +02:00

Try tweaking time sync settings to prevent clock drift rather than restarting VBoxService on every test run.

This commit is contained in:
David Steele
2018-04-18 18:47:43 -04:00
parent b3e668421b
commit ea4046a607
3 changed files with 9 additions and 13 deletions
+5 -3
View File
@@ -40,10 +40,12 @@ Vagrant.configure(2) do |config|
echo 'supersede domain-name-servers 8.8.8.8;' >> /etc/dhcp/dhclient.conf
/etc/init.d/networking restart
# If builds fail with 'modification time in the future', the following command will sync the vm clock with the host
# Set time sync settings so builds don't fail with clock drift errors
#---------------------------------------------------------------------------------------------------------------------------
echo 'Start Time Sync Service' && date
sudo /usr/sbin/VBoxService --timesync-set-start
echo 'Time Sync Settings' && date
/etc/init.d/virtualbox-guest-utils stop
/usr/sbin/VBoxService --timesync-set-on-restore 1 --timesync-interval 5000 --timesync-set-threshold 1
/etc/init.d/virtualbox-guest-utils start
#---------------------------------------------------------------------------------------------------------------------------
echo 'Install Perl Modules' && date