]> gitweb.fluxo.info Git - kvmx.git/commitdiff
Powering off guest instead of stopping when all ssh_attemps were made
authorSilvio Rhatto <rhatto@riseup.net>
Sun, 31 Dec 2017 15:53:14 +0000 (13:53 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Sun, 31 Dec 2017 15:53:14 +0000 (13:53 -0200)
kvmx

diff --git a/kvmx b/kvmx
index 3db48445e86ebddc0fe4e0244d28ae1414bd1c04..e4887e01de54ee75b3a45ec0f416e15da841e7fc 100755 (executable)
--- a/kvmx
+++ b/kvmx
@@ -456,7 +456,8 @@ function kvmx_up {
       if [ "$ssh_attempts" == "20" ]; then
         echo "$BASENAME: timeout or access denied when trying to SSH into $VM."
         echo "$BASENAME: please check if the image is in a good state and if it accepts passwordless ssh connections"
-        kvmx_stop
+        #kvmx_stop
+        kvmx_poweroff
         exit 1
       fi