aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-11-21 08:23:42 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-11-21 08:23:42 -0200
commit816c1c1f5d02b6e54b73ee475c3884666f3c00b5 (patch)
tree9f04bd1ff2a9e2762491794d2e2d59d3ddeaf193
parente86c93ccf2d32861af4f6acec536acfbe955a752 (diff)
downloadkvmx-816c1c1f5d02b6e54b73ee475c3884666f3c00b5.tar.gz
kvmx-816c1c1f5d02b6e54b73ee475c3884666f3c00b5.tar.bz2
You asked to ssh into the box, so lets ensure it is up
-rwxr-xr-xkvmx6
1 files changed, 4 insertions, 2 deletions
diff --git a/kvmx b/kvmx
index f2c73a0..0ce6550 100755
--- a/kvmx
+++ b/kvmx
@@ -516,8 +516,10 @@ function kvmx_usage {
# Log into the guest using SSH
function kvmx_ssh {
if ! kvmx_running; then
- echo "$BASENAME: guest $VM is not running"
- exit 1
+ kvmx up $VM || exit 1
+ #kvmx_up || exit 1
+ #echo "$BASENAME: guest $VM is not running"
+ #exit 1
fi
if [ "$ssh_support" != "y" ]; then