From 4e4a44f2c4a1bcd5c01c84537daf6718263704a2 Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Thu, 11 Aug 2011 10:57:05 -0700 Subject: [PATCH] Fix sometime system VM is up but mgmt server can't reach it --- patches/systemvm/debian/config/etc/init.d/cloud-early-config | 4 ++++ 1 file changed, 4 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 2df0569a974..7399de2db8e 100755 --- a/patches/systemvm/debian/config/etc/init.d/cloud-early-config +++ b/patches/systemvm/debian/config/etc/init.d/cloud-early-config @@ -250,6 +250,10 @@ setup_common() { # a hacking way to activate vSwitch under VMware ping -n -c 3 -w 5 $GW + if [ -n "$MGMTNET" -a -n "$LOCAL_GW" ] + then + ping -n -c 3 -w 5 $LOCAL_GW + fi } setup_dnsmasq() {