summaryrefslogtreecommitdiffstats
path: root/xci/scripts/vm
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2017-10-03 13:21:03 +0100
committerMarkos Chandras <mchandras@suse.de>2017-10-03 13:26:22 +0100
commit570d4a19670360b7428f7760b096b48f829b6d61 (patch)
tree35b25e1204e56c68f81c1568c736c73a84a0bc89 /xci/scripts/vm
parent4afd6172bd42b5dd279d54e863d77e412654435b (diff)
xci: scripts: start-new-vm.sh: Do not break on idle SSH connections
Add ServerAliveInterval and ServerAliveCountMax directives in order to try and keep SSH connections alive. This aims to solve ssh timeouts like the following one on busy hypervisors: packet_write_wait: Connection to UNKNOWN port 0: Broken pipe Change-Id: I58029b41226098d6a44181434ad8653f72384e9d Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci/scripts/vm')
-rwxr-xr-xxci/scripts/vm/start-new-vm.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/xci/scripts/vm/start-new-vm.sh b/xci/scripts/vm/start-new-vm.sh
index 1019ce88..faadb87d 100755
--- a/xci/scripts/vm/start-new-vm.sh
+++ b/xci/scripts/vm/start-new-vm.sh
@@ -187,6 +187,8 @@ echo "Dropping a minimal .ssh/config file"
cat > $HOME/.ssh/config<<EOF
Host *
StrictHostKeyChecking no
+ServerAliveInterval 60
+ServerAliveCountMax 5
IdentityFile ${BASE_PATH}/xci/scripts/vm/id_rsa_for_dib
Host *_xci_vm