From 2fdeee4de7aaca336d68010de9baa731e440cadb Mon Sep 17 00:00:00 2001 From: Chiradeep Vittal Date: Wed, 15 May 2013 15:00:19 -0700 Subject: [PATCH] CLOUDSTACK-2492: enable time sync on vmware if ntp is not installed --- .../systemvm/debian/config/etc/init.d/cloud-early-config | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/patches/systemvm/debian/config/etc/init.d/cloud-early-config b/patches/systemvm/debian/config/etc/init.d/cloud-early-config index 676a04aa3fb..ee3683fa54c 100755 --- a/patches/systemvm/debian/config/etc/init.d/cloud-early-config +++ b/patches/systemvm/debian/config/etc/init.d/cloud-early-config @@ -432,6 +432,12 @@ setup_common() { ping -n -c 3 $MGMT_GW & sleep 3 pkill ping + + fi + + local hyp=$(hypervisor) + if [ "$hyp" == "vmware" ]; then + ntpq -p &> /dev/null || vmware-toolbox-cmd timesync enable fi }