diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-06-13 13:37:51 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-06-13 13:37:51 -0300 |
commit | 22abfb337600493660cf6b497d2f1bbd0f7ad7f3 (patch) | |
tree | fa53ba8bc8357812310d3a00e5dd702a0c37b9e3 | |
parent | a428e7115bb66e58c8db1039cd9659491dd940a9 (diff) | |
download | kvmx-22abfb337600493660cf6b497d2f1bbd0f7ad7f3.tar.gz kvmx-22abfb337600493660cf6b497d2f1bbd0f7ad7f3.tar.bz2 |
SSH: bring machine up also if it is suspended
-rwxr-xr-x | kvmx | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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" |