diff --git a/Vagrantfile.libvirt b/Vagrantfile.libvirt index 8f6a30b3af0d432db0c9ddc79398017f900942cd..39076c5073a7310c1b195df9c801a4ef559ab955 100644 --- a/Vagrantfile.libvirt +++ b/Vagrantfile.libvirt @@ -17,6 +17,21 @@ sed -i s/10.0.3/172.40.231/g /etc/default/lxc-net sed -i s/#LXC_DHCP_CONFILE/LXC_DHCP_CONFILE/g /etc/default/lxc-net service lxc-net restart +# enable NTP +# use network time to make sure we are synchronised +echo "Disabling timesyncd..." +timedatectl set-ntp no +until timedatectl | grep -m 1 "Network time on: no"; +do + echo "Waiting for timesyncd to turn off.." + sleep 1 +done +apt-get install ntp +echo "timesync set to ntpd" + +# set timezone to London +timedatectl set-timezone Europe/London + SCRIPT Vagrant.configure("2") do |config|