]> gitweb.fluxo.info Git - kvmx.git/commitdiff
You asked to ssh into the box, so lets ensure it is up
authorSilvio Rhatto <rhatto@riseup.net>
Tue, 21 Nov 2017 10:23:42 +0000 (08:23 -0200)
committerSilvio Rhatto <rhatto@riseup.net>
Tue, 21 Nov 2017 10:23:42 +0000 (08:23 -0200)
kvmx

diff --git a/kvmx b/kvmx
index f2c73a0f3957b48eebf91ceb5a16082abe7e2a8f..0ce65507f6af924c7e89669864f8066f191e3fa6 100755 (executable)
--- 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