Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-4119

Onboarding without keyboard or monitor attached

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open
    • Priority: (None)
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Story Points:
      13
    • Backlog:
      yes
    • Days in progress:
      0

      Description

      Step 2 (SSH into..) of our "Prepare a Raspberry Pi device" during onboarding looks quick and easy.

      However it has shown to cause significant friction because you need to attach a keyboard and monitor in order to set up the networking (at least if wireless) and SSH. This entails physical connections as well as reading docs on what commands to run and make sure they work (on a separate system from what you are configuring).

      It is possible to pre-configure networking (wifi) and SSH in the image itself, and this ticket is about making this improvement. The steps are fairly simple and described here: https://hub.mender.io/t/configuring-ssh-uart-and-wifi-access-on-mender-enabled-raspbian-images/2707

      These steps will be further simplified after supporting headless setup (MEN-4117), as we can use the Raspberry Pi official instructions:

      • Enable wifi
      • Enable ssh (see 3. Enable SSH on a headless Raspberry Pi)

      In order to make the steps even easier, portable and error-proof during onboarding we can put them in a script and reference how to run it. The on-boarding workflow would be 1) Flash (converted) image 2) Re-insert SD card in laptop 3) Run script, which will change these configurations on the SD card.

      Acceptance criteria

      • A script that configures a (converted) RPi image to enable SSH and sets wifi configuration (optionally - some cases may want wired)
      • The script has a "bootstrap" mode to create an overlay with the necessary files
        • It can be used if running mender-convert locally
        • Asks for wifi credentials interactively (for simplicity and hiding password from CLI history)
        • It is tested with an acceptance test in mender-convert (for Linux only)
      • The script has a "deploy" mode to call the previous one, and then move the generated files to the rootfs of a mounted SD card
        • It will be used on pre-converted images (for example while on-boarding)
        • Tested only manually during our on-boarding weekly testing.
      • Script is hosted somewhere for download so it can easily be download and run in one command invocation
      • Script supports running on Linux (minimum: Ubuntu) distributions and (ideally) Macintosh (the workstation/laptop used for the SD card flashing)
      • Onboarding documentation Step 2, referenced in the beginning is updated to use the script

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              a10003 Eystein Maloy Stenberg
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:

                  Zendesk Support