solo-io / packer-plugin-arm-image

Packer plugin for ARM images
Apache License 2.0
426 stars 104 forks source link

Docker on Mac - MBR: Bad Arm Image on first attempt #133

Closed 5t33 closed 2 years ago

5t33 commented 2 years ago

I get the following error:

==> arm-image: Growing partition to 4096 M (4294967296 bytes)
==> arm-image: Error retreiving mbr MBR: Bad signature
Build 'arm-image' errored after 1 minute 29 seconds: step canceled or halted

on first attempt of running:

docker build . -t packer-plugin-arm-image-local:04-17-22
docker run \
  --rm \
  --privileged \
  -v /dev:/dev \
  -v ${PWD}:/build:ro \
  -v ${PWD}/packer_cache:/build/packer_cache \
  -v ${PWD}/output-arm-image:/build/output-arm-image \
  -e PACKER_CACHE_DIR=/build/packer_cache \
  packer-plugin-arm-image-local:04-17-22 build samples/raspbian_golang.json

Second attempt seems to work, but runs into another error, which I'll post in a second issue.

Mac version is 10.15.7, docker version is 19.03.13