From 69a0e27eddcf68d995d6091cbddc3cb0cb9814a7 Mon Sep 17 00:00:00 2001 From: mweimerskirch <362092+mweimerskirch@users.noreply.github.com> Date: Thu, 17 Jun 2021 18:36:02 +0200 Subject: [PATCH] Disable the SSH server during the installer (#2) This removes the need to keep trying SSH handshake, which makes the intention clearer as to what we're trying to do during the VM build process. --- http/user-data | 2 ++ ubuntu-2004.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/http/user-data b/http/user-data index 0fe64ab..7621b81 100644 --- a/http/user-data +++ b/http/user-data @@ -1,6 +1,8 @@ #cloud-config autoinstall: version: 1 + early-commands: + - systemctl stop ssh identity: hostname: ubuntu-server password: '$6$wdAcoXrU039hKYPd$508Qvbe7ObUnxoj15DRCkzC3qO7edjH0VV7BPNRDYK4QR8ofJaEEF2heacn0QgD.f8pO8SNp83XNdWG6tocBM1' diff --git a/ubuntu-2004.json b/ubuntu-2004.json index 7430cbd..ddd6daa 100644 --- a/ubuntu-2004.json +++ b/ubuntu-2004.json @@ -11,7 +11,7 @@ "ssh_username": "ubuntu", "ssh_password": "ubuntu", - "ssh_handshake_attempts": "20", + "ssh_timeout": "30m", "http_directory": "http",