Skip to content

Commit 2fdeee4

Browse files
chiradeepchipchilders
authored andcommitted
CLOUDSTACK-2492: enable time sync on vmware if ntp is not installed
1 parent c7ebcb4 commit 2fdeee4

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎patches/systemvm/debian/config/etc/init.d/cloud-early-config‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,12 @@ setup_common() {
432432
ping -n -c 3 $MGMT_GW &
433433
sleep 3
434434
pkill ping
435+
436+
fi
437+
438+
local hyp=$(hypervisor)
439+
if [ "$hyp" == "vmware" ]; then
440+
ntpq -p &> /dev/null || vmware-toolbox-cmd timesync enable
435441
fi
436442
}
437443

0 commit comments

Comments
 (0)