xci: scripts: start-new-vm.sh: Do not break on idle SSH connections 67/44067/2
authorMarkos Chandras <mchandras@suse.de>
Tue, 3 Oct 2017 12:21:03 +0000 (13:21 +0100)
committerMarkos Chandras <mchandras@suse.de>
Tue, 3 Oct 2017 12:26:22 +0000 (13:26 +0100)
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>
xci/scripts/vm/start-new-vm.sh

index 1019ce8..faadb87 100755 (executable)
@@ -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