mkaczanowski / packer-builder-arm

Packer plugin to build ARM images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Building image through pre-made docker image is hanging

vincentracine opened this issue · comments

I am trying to build a raspbian image using the pre-made docker image mkaczanowski/packer-builder-arm on MacOS Big Sur. The command used is below. It seems to hang for 10 seconds and then the container exists. I would expect it to build and weirdly enough, if I remove some provisioners from the provisioners array, then it will build fine but as soon as I try to add too many provisioners, it stops working. I enabled packer logging and it appears that it gets stuck in a loop and then exits. Assuming this is correct and that packer does timeout, I tried to find a way to increase packer timeout but could not find an option to do so - probably my assumption was wrong.

build.sh:

docker run \
  --rm \
  --privileged \
  -v /dev:/dev \
  -v ${PWD}:/build \
  -e PACKER_LOG=1 \
  mkaczanowski/packer-builder-arm build -debug boards/raspbian-example.json

boards/raspbian-example.json:

{
  "variables": {
    "release_version": "2021.1.8",
    "wifi_name": "REMOVED",
    "wifi_password": "REMOVED",
    "hostname": "automify-sentry",
    "default_user": "REMOVED",
    "default_user_pass": "REMOVED",
    "default_user_home": "/home/pi"
  },
  "builders": [{
    "type": "arm",
    "file_urls" : ["https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2020-02-14/2020-02-13-raspbian-buster-lite.zip"],
    "file_checksum_url": "https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2020-02-14/2020-02-13-raspbian-buster-lite.zip.sha256",
    "file_checksum_type": "sha256",
    "file_target_extension": "zip",
    "image_build_method": "resize",
    "image_path": "/build/release/automifyOS-{{user `release_version`}}.img",
    "image_size": "4G",
    "image_type": "dos",
    "image_partitions": [
      {
        "name": "boot",
        "type": "c",
        "start_sector": "8192",
        "filesystem": "vfat",
        "size": "256M",
        "mountpoint": "/boot"
      },
      {
        "name": "root",
        "type": "83",
        "start_sector": "532480",
        "filesystem": "ext4",
        "size": "0",
        "mountpoint": "/"
      }
    ],
    "image_chroot_env": ["PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin"],
    "qemu_binary_source_path": "/usr/bin/qemu-arm-static",
    "qemu_binary_destination_path": "/usr/bin/qemu-arm-static"
  }],
  "provisioners": [
    {
      "type": "shell",
      "inline": [
        "mkdir -p /usr/local/automify/init",
        "mkdir -p /usr/local/automify/postgres-data",
        "mkdir -p /usr/local/automify/sentry-data",
        "mkdir -p /usr/local/automify/backups",
        "mkdir -p /usr/local/automify/envs",
        "mkdir -p /usr/local/automify/logs",
        "mkdir -p /usr/local/automify/updates",
        "mkdir -p {{user `default_user_home`}}/.docker",
        "touch /boot/ssh",
        "mkdir {{user `default_user_home`}}/.ssh",
        "mkdir -p /etc/lightdm",
        "mkdir -p /etc/chrony"
      ]
    },
    {
      "type": "file",
      "source": "/build/services/supervisor/bin/automify-supervisor",
      "destination": "/usr/local/automify/automify-supervisor"
    },
    {
      "type": "file",
      "source": "/build/files/automify-splash.mp4",
      "destination": "/usr/local/automify/automify-splash.mp4"
    },
    {
      "type": "file",
      "source": "/build/files/start_chromium.sh",
      "destination": "/usr/local/automify/start_chromium.sh"
    },
    {
      "type": "shell",
      "inline": [
        "chmod +x /usr/local/automify/automify-supervisor"
      ]
    },
    {
      "type": "shell",
      "inline": [
        "chmod +x /usr/local/automify/start_chromium.sh"
      ]
    },
    {
      "type": "file",
      "source": "/build/files/lightdm.conf",
      "destination": "/etc/lightdm/lightdm.conf"
    },
    {
      "type": "file",
      "source": "/build/files/chrony.conf",
      "destination": "/etc/chrony/chrony.conf"
    },
    {
      "type": "file",
      "source": "/build/files/ssh/id_rsa.pub",
      "destination": "{{user `default_user_home`}}/.ssh/authorized_keys"
    },
    {
      "type": "shell",
      "inline": [
        "chown -R {{user `default_user`}}:{{user `default_user`}} {{user `default_user_home`}}/.ssh",
        "chmod 644 {{user `default_user_home`}}/.ssh/authorized_keys"
      ]
    },
    {
      "type": "file",
      "source": "/build/files/dhcpcd.conf",
      "destination": "/etc/dhcpcd.conf"
    },
    {
      "type": "file",
      "source": "/build/files/wpa_supplicant.conf",
      "destination": "/etc/wpa_supplicant/wpa_supplicant.conf"
    },
    {
      "type": "file",
      "source": "/build/files/rc.bootscript",
      "destination": "/etc/rc.local"
    },
    {
      "type": "shell",
      "inline": [
        "chmod 755 /etc/rc.local"
      ]
    },
    {
      "type": "shell",
      "inline": [
        "echo {{user `hostname`}} > /etc/hostname",
        "sed -i 's/^127.0.1.1.*/127.0.1.1 {{user `hostname`}}/g' /etc/hosts"
      ]
    }
  ]
}
vincent@VR-Macbook automifyOS % sh build.sh
running /bin/packer build -debug boards/raspbian-example.json
2021/06/20 11:52:45 [INFO] Packer version: 1.7.2 [go1.16.3 linux amd64]
2021/06/20 11:52:45 [TRACE] discovering plugins in /usr/bin
2021/06/20 11:52:45 [DEBUG] Discovered plugin: arm = /usr/bin/packer-builder-arm
2021/06/20 11:52:45 [INFO] using external builders: [arm]
2021/06/20 11:52:45 [TRACE] discovering plugins in /root/.packer.d/plugins
2021/06/20 11:52:45 [TRACE] discovering plugins in .
2021/06/20 11:52:45 [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/06/20 11:52:45 [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2021/06/20 11:52:45 [WARN] Config file doesn't exist: /root/.packerconfig
2021/06/20 11:52:45 [INFO] Setting cache directory: /build/packer_cache
e: Running in background, not using a TTY
2021/06/20 11:52:45 [TRACE] Starting external plugin /usr/bin/packer-builder-arm 
2021/06/20 11:52:45 Starting plugin: /usr/bin/packer-builder-arm []string{"/usr/bin/packer-builder-arm"}
2021/06/20 11:52:45 Waiting for RPC address for: /usr/bin/packer-builder-arm
2021/06/20 11:52:45 Received unix RPC address for /usr/bin/packer-builder-arm: addr is /tmp/packer-plugin638944266
2021/06/20 11:52:45 packer-builder-arm plugin: 2021/06/20 11:52:45 Plugin address: unix /tmp/packer-plugin638944266
2021/06/20 11:52:45 packer-builder-arm plugin: 2021/06/20 11:52:45 Waiting for connection...
2021/06/20 11:52:45 packer-builder-arm plugin: 2021/06/20 11:52:45 Serving a plugin connection...
2021/06/20 11:52:45 [TRACE] Starting internal plugin packer-provisioner-shell
2021/06/20 11:52:45 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-shell"}
2021/06/20 11:52:45 Waiting for RPC address for: /usr/bin/packer
2021/06/20 11:52:47 packer-provisioner-shell plugin: [INFO] Packer version: 1.7.2 [go1.16.3 linux amd64]
2021/06/20 11:52:47 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/06/20 11:52:47 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2021/06/20 11:52:47 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /root/.packerconfig
2021/06/20 11:52:47 packer-provisioner-shell plugin: [INFO] Setting cache directory: /build/packer_cache
2021/06/20 11:52:47 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"}
2021/06/20 11:52:47 packer-provisioner-shell plugin: Plugin address: unix /tmp/packer-plugin376208873
2021/06/20 11:52:47 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin376208873
2021/06/20 11:52:47 packer-provisioner-shell plugin: Waiting for connection...
2021/06/20 11:52:47 packer-provisioner-shell plugin: Serving a plugin connection...
2021/06/20 11:52:47 [TRACE] Starting internal plugin packer-provisioner-file
2021/06/20 11:52:47 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-file"}
2021/06/20 11:52:47 Waiting for RPC address for: /usr/bin/packer
2021/06/20 11:52:49 packer-provisioner-file plugin: [INFO] Packer version: 1.7.2 [go1.16.3 linux amd64]
2021/06/20 11:52:49 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/06/20 11:52:49 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2021/06/20 11:52:49 packer-provisioner-file plugin: [WARN] Config file doesn't exist: /root/.packerconfig
2021/06/20 11:52:49 packer-provisioner-file plugin: [INFO] Setting cache directory: /build/packer_cache
2021/06/20 11:52:49 packer-provisioner-file plugin: args: []string{"packer-provisioner-file"}
2021/06/20 11:52:49 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin184495722
2021/06/20 11:52:49 packer-provisioner-file plugin: Plugin address: unix /tmp/packer-plugin184495722
2021/06/20 11:52:49 packer-provisioner-file plugin: Waiting for connection...
2021/06/20 11:52:49 packer-provisioner-file plugin: Serving a plugin connection...
2021/06/20 11:52:49 [TRACE] Starting internal plugin packer-provisioner-file
2021/06/20 11:52:49 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-file"}
2021/06/20 11:52:49 Waiting for RPC address for: /usr/bin/packer
2021/06/20 11:52:50 packer-provisioner-file plugin: [INFO] Packer version: 1.7.2 [go1.16.3 linux amd64]
2021/06/20 11:52:50 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/06/20 11:52:50 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2021/06/20 11:52:50 packer-provisioner-file plugin: [WARN] Config file doesn't exist: /root/.packerconfig
2021/06/20 11:52:50 packer-provisioner-file plugin: [INFO] Setting cache directory: /build/packer_cache
2021/06/20 11:52:50 packer-provisioner-file plugin: args: []string{"packer-provisioner-file"}
2021/06/20 11:52:50 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin529554443
2021/06/20 11:52:50 packer-provisioner-file plugin: Plugin address: unix /tmp/packer-plugin529554443
2021/06/20 11:52:50 packer-provisioner-file plugin: Waiting for connection...
2021/06/20 11:52:50 packer-provisioner-file plugin: Serving a plugin connection...
2021/06/20 11:52:50 [TRACE] Starting internal plugin packer-provisioner-file
2021/06/20 11:52:50 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-file"}
2021/06/20 11:52:50 Waiting for RPC address for: /usr/bin/packer
2021/06/20 11:52:52 packer-provisioner-file plugin: [INFO] Packer version: 1.7.2 [go1.16.3 linux amd64]
2021/06/20 11:52:52 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/06/20 11:52:52 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2021/06/20 11:52:52 packer-provisioner-file plugin: [WARN] Config file doesn't exist: /root/.packerconfig
2021/06/20 11:52:52 packer-provisioner-file plugin: [INFO] Setting cache directory: /build/packer_cache
2021/06/20 11:52:52 packer-provisioner-file plugin: args: []string{"packer-provisioner-file"}
2021/06/20 11:52:52 packer-provisioner-file plugin: Plugin address: unix /tmp/packer-plugin347049336
2021/06/20 11:52:52 packer-provisioner-file plugin: Waiting for connection...
2021/06/20 11:52:52 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin347049336
2021/06/20 11:52:52 packer-provisioner-file plugin: Serving a plugin connection...
2021/06/20 11:52:52 [TRACE] Starting internal plugin packer-provisioner-shell
2021/06/20 11:52:52 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-shell"}
2021/06/20 11:52:52 Waiting for RPC address for: /usr/bin/packer
2021/06/20 11:52:54 packer-provisioner-shell plugin: [INFO] Packer version: 1.7.2 [go1.16.3 linux amd64]
2021/06/20 11:52:54 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/06/20 11:52:54 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2021/06/20 11:52:54 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /root/.packerconfig
2021/06/20 11:52:54 packer-provisioner-shell plugin: [INFO] Setting cache directory: /build/packer_cache
2021/06/20 11:52:54 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"}
2021/06/20 11:52:54 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin450786415
2021/06/20 11:52:54 packer-provisioner-shell plugin: Plugin address: unix /tmp/packer-plugin450786415
2021/06/20 11:52:54 packer-provisioner-shell plugin: Waiting for connection...
2021/06/20 11:52:54 packer-provisioner-shell plugin: Serving a plugin connection...
2021/06/20 11:52:54 [TRACE] Starting internal plugin packer-provisioner-shell
2021/06/20 11:52:54 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-shell"}
2021/06/20 11:52:54 Waiting for RPC address for: /usr/bin/packer
2021/06/20 11:52:56 packer-provisioner-shell plugin: [INFO] Packer version: 1.7.2 [go1.16.3 linux amd64]
2021/06/20 11:52:56 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/06/20 11:52:56 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2021/06/20 11:52:56 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /root/.packerconfig
2021/06/20 11:52:56 packer-provisioner-shell plugin: [INFO] Setting cache directory: /build/packer_cache
2021/06/20 11:52:56 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"}
2021/06/20 11:52:56 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin192243538
2021/06/20 11:52:56 packer-provisioner-shell plugin: Plugin address: unix /tmp/packer-plugin192243538
2021/06/20 11:52:56 packer-provisioner-shell plugin: Waiting for connection...
2021/06/20 11:52:56 packer-provisioner-shell plugin: Serving a plugin connection...
2021/06/20 11:52:56 [TRACE] Starting internal plugin packer-provisioner-file
2021/06/20 11:52:56 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-file"}
2021/06/20 11:52:56 Waiting for RPC address for: /usr/bin/packer
2021/06/20 11:52:58 packer-provisioner-file plugin: [INFO] Packer version: 1.7.2 [go1.16.3 linux amd64]
2021/06/20 11:52:58 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/06/20 11:52:58 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2021/06/20 11:52:58 packer-provisioner-file plugin: [WARN] Config file doesn't exist: /root/.packerconfig
2021/06/20 11:52:58 packer-provisioner-file plugin: [INFO] Setting cache directory: /build/packer_cache
2021/06/20 11:52:58 packer-provisioner-file plugin: args: []string{"packer-provisioner-file"}
2021/06/20 11:52:58 packer-provisioner-file plugin: Plugin address: unix /tmp/packer-plugin446852732
2021/06/20 11:52:58 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin446852732
2021/06/20 11:52:58 packer-provisioner-file plugin: Waiting for connection...
2021/06/20 11:52:58 packer-provisioner-file plugin: Serving a plugin connection...
2021/06/20 11:52:58 [TRACE] Starting internal plugin packer-provisioner-file
2021/06/20 11:52:58 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-file"}
2021/06/20 11:52:58 Waiting for RPC address for: /usr/bin/packer
2021/06/20 11:53:00 packer-provisioner-file plugin: [INFO] Packer version: 1.7.2 [go1.16.3 linux amd64]
2021/06/20 11:53:00 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/06/20 11:53:00 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2021/06/20 11:53:00 packer-provisioner-file plugin: [WARN] Config file doesn't exist: /root/.packerconfig
2021/06/20 11:53:00 packer-provisioner-file plugin: [INFO] Setting cache directory: /build/packer_cache
2021/06/20 11:53:00 packer-provisioner-file plugin: args: []string{"packer-provisioner-file"}
2021/06/20 11:53:00 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin889737020
2021/06/20 11:53:00 packer-provisioner-file plugin: Plugin address: unix /tmp/packer-plugin889737020
2021/06/20 11:53:00 packer-provisioner-file plugin: Waiting for connection...
2021/06/20 11:53:00 [TRACE] Starting internal plugin packer-provisioner-file
2021/06/20 11:53:00 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-file"}
2021/06/20 11:53:00 packer-provisioner-file plugin: Serving a plugin connection...
2021/06/20 11:53:00 Waiting for RPC address for: /usr/bin/packer
2021/06/20 11:53:02 packer-provisioner-file plugin: [INFO] Packer version: 1.7.2 [go1.16.3 linux amd64]
2021/06/20 11:53:02 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/06/20 11:53:02 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2021/06/20 11:53:02 packer-provisioner-file plugin: [WARN] Config file doesn't exist: /root/.packerconfig
2021/06/20 11:53:02 packer-provisioner-file plugin: [INFO] Setting cache directory: /build/packer_cache
2021/06/20 11:53:02 packer-provisioner-file plugin: args: []string{"packer-provisioner-file"}
2021/06/20 11:53:02 packer-provisioner-file plugin: Plugin address: unix /tmp/packer-plugin094746838
2021/06/20 11:53:02 packer-provisioner-file plugin: Waiting for connection...
2021/06/20 11:53:02 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin094746838
2021/06/20 11:53:02 packer-provisioner-file plugin: Serving a plugin connection...
2021/06/20 11:53:02 [TRACE] Starting internal plugin packer-provisioner-shell
2021/06/20 11:53:02 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-shell"}
2021/06/20 11:53:02 Waiting for RPC address for: /usr/bin/packer
2021/06/20 11:53:04 packer-provisioner-shell plugin: [INFO] Packer version: 1.7.2 [go1.16.3 linux amd64]
2021/06/20 11:53:04 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/06/20 11:53:04 packer-provisioner-shell plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2021/06/20 11:53:04 packer-provisioner-shell plugin: [WARN] Config file doesn't exist: /root/.packerconfig
2021/06/20 11:53:04 packer-provisioner-shell plugin: [INFO] Setting cache directory: /build/packer_cache
2021/06/20 11:53:04 packer-provisioner-shell plugin: args: []string{"packer-provisioner-shell"}
2021/06/20 11:53:04 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin200931255
2021/06/20 11:53:04 packer-provisioner-shell plugin: Plugin address: unix /tmp/packer-plugin200931255
2021/06/20 11:53:04 packer-provisioner-shell plugin: Waiting for connection...
2021/06/20 11:53:04 packer-provisioner-shell plugin: Serving a plugin connection...
2021/06/20 11:53:04 [TRACE] Starting internal plugin packer-provisioner-file
2021/06/20 11:53:04 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-file"}
2021/06/20 11:53:04 Waiting for RPC address for: /usr/bin/packer
2021/06/20 11:53:06 packer-provisioner-file plugin: [INFO] Packer version: 1.7.2 [go1.16.3 linux amd64]
2021/06/20 11:53:06 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/06/20 11:53:06 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2021/06/20 11:53:06 packer-provisioner-file plugin: [WARN] Config file doesn't exist: /root/.packerconfig
2021/06/20 11:53:06 packer-provisioner-file plugin: [INFO] Setting cache directory: /build/packer_cache
2021/06/20 11:53:06 packer-provisioner-file plugin: args: []string{"packer-provisioner-file"}
2021/06/20 11:53:06 packer-provisioner-file plugin: Plugin address: unix /tmp/packer-plugin406249561
2021/06/20 11:53:06 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin406249561
2021/06/20 11:53:06 packer-provisioner-file plugin: Waiting for connection...
2021/06/20 11:53:06 packer-provisioner-file plugin: Serving a plugin connection...
2021/06/20 11:53:06 [TRACE] Starting internal plugin packer-provisioner-file
2021/06/20 11:53:06 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-file"}
2021/06/20 11:53:06 Waiting for RPC address for: /usr/bin/packer
2021/06/20 11:53:08 packer-provisioner-file plugin: [INFO] Packer version: 1.7.2 [go1.16.3 linux amd64]
2021/06/20 11:53:08 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
2021/06/20 11:53:08 packer-provisioner-file plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /root/.packerconfig
2021/06/20 11:53:08 packer-provisioner-file plugin: [WARN] Config file doesn't exist: /root/.packerconfig
2021/06/20 11:53:08 packer-provisioner-file plugin: [INFO] Setting cache directory: /build/packer_cache
2021/06/20 11:53:08 packer-provisioner-file plugin: args: []string{"packer-provisioner-file"}
2021/06/20 11:53:08 packer-provisioner-file plugin: Plugin address: unix /tmp/packer-plugin534284634
2021/06/20 11:53:08 packer-provisioner-file plugin: Waiting for connection...
2021/06/20 11:53:08 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin534284634
2021/06/20 11:53:08 packer-provisioner-file plugin: Serving a plugin connection...
2021/06/20 11:53:08 [TRACE] Starting internal plugin packer-provisioner-file
2021/06/20 11:53:08 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-file"}
2021/06/20 11:53:08 Waiting for RPC address for: /usr/bin/packer
vincent@VR-Macbook automifyOS % 

Can you repro this on the vagrant / Virtualbox setup?:
https://github.com/mkaczanowski/packer-builder-arm#troubleshooting

no response, no repro. Closing :)