From: Silvio Rhatto Date: Sun, 2 Apr 2017 12:03:23 +0000 (-0300) Subject: Wait before starting new machines X-Git-Tag: 0.1.0~474 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=03f94939b1405c9fffd690d764fc08106d88d8ca;p=kvmx.git Wait before starting new machines --- diff --git a/kvmx b/kvmx index a723a2d..9fe1288 100755 --- a/kvmx +++ b/kvmx @@ -256,10 +256,18 @@ function kvmx_up { # Re-evaluate this if there's a custom SSH key. __kvmx_ssh_command $basekey fi + + local wait="y" fi else + local wait="y" kvmx-create $GLOBAL_USER_CONFIG_FOLDER/$VM fi + + if [ "$wait" == "y" ]; then + echo "Waiting before starting the new guest..." + sleep 5 + fi fi if [ -z "$graphics" ]; then