aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-12-31 13:53:14 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-12-31 13:53:14 -0200
commit559d38de251d531898ed484d9d3fb59e906e4b3a (patch)
tree2d1722ab2086e20cb8d0fd337c310e48be838ee2
parent41176f764cf5d1c3140a9fdf21de7cfa41c6d99c (diff)
downloadkvmx-559d38de251d531898ed484d9d3fb59e906e4b3a.tar.gz
kvmx-559d38de251d531898ed484d9d3fb59e906e4b3a.tar.bz2
Powering off guest instead of stopping when all ssh_attemps were made
-rwxr-xr-xkvmx3
1 files changed, 2 insertions, 1 deletions
diff --git a/kvmx b/kvmx
index 3db4844..e4887e0 100755
--- 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