Establish SSH Connection
It is possible to connect the system which is still in the installation stage launched by subiquity
. If the SSH connection could be established, then it is very easy to use the usual scp
to collect log files in the ephemeral system.
Change the Subiquity Shell
The key step is to change the default shell, subiquity shell
to be the other shell that supports ssh connection and scp manipulation.
If you are dropped to (subiquity) shell because of any issue or crash of subiquity during the installation, you can build a ssh connection via the following steps:
- Change the login password of the user
installer
. For example,echo "installer:ubuntu" | chpasswd
. - Change the default login shell,
subiquity
tobash
. For example,sed -i 's/subiquity-shell/bash/' /etc/passwd
. - Dump the IP information that will be used later. For example,
ip a
.
Subiquity supports SSH connection by default. That being said, you don't need to install ssh deb package via apt or something. This is very convenient for debugging!