From: Silvio Rhatto Date: Wed, 13 Jun 2018 16:37:51 +0000 (-0300) Subject: SSH: bring machine up also if it is suspended X-Git-Tag: 0.1.0~244 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=22abfb337600493660cf6b497d2f1bbd0f7ad7f3;p=kvmx.git SSH: bring machine up also if it is suspended --- diff --git a/kvmx b/kvmx index 826c223..74cc169 100755 --- a/kvmx +++ b/kvmx @@ -620,7 +620,8 @@ function kvmx_usage { # Log into the guest using SSH function kvmx_ssh { - if ! kvmx_running; then + if ! kvmx_running || kvmx_suspended; then + echo "$BASENAME: $VM was not running, trying to start it..." kvmx up $VM || exit 1 #kvmx_up || exit 1 #echo "$BASENAME: guest $VM is not running"