From 5d23ad41ed3db5b82315d1de35a748ab4506d431 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 24 Mar 2017 15:26:02 -0300 Subject: Check for ssh support --- kvmx | 5 +++++ kvmxfile | 2 ++ 2 files changed, 7 insertions(+) diff --git a/kvmx b/kvmx index b9523aa..4d94cfb 100755 --- a/kvmx +++ b/kvmx @@ -333,6 +333,11 @@ function kvmx_ssh { exit 1 fi + if [ "$ssh_support" != "y" ]; then + echo "$BASENAME: SSH support for $VM is disabled" + exit 1 + fi + # Shift params according to how the program was called: # either "kvmx ssh" or "kvmx ssh guest". if [ "$ACTION" == "ssh" ]; then diff --git a/kvmxfile b/kvmxfile index 631678d..4d1c502 100644 --- a/kvmxfile +++ b/kvmxfile @@ -61,4 +61,6 @@ ssh_support="y" # Please note that this setting won't take effect if you're using a basebox. # In that case the basebox keypair will be used if it exists, otherwise kvmx # fallsback to the default insecure keypair. +# +# This setting is used during virtual machine bootstrapping by kvmx-create. ssh_custom="y" -- cgit v1.2.3