Closed chocolatewheelchair closed 7 years ago
Try running with PACKER_LOG=1 packer -debug <args>
to see exactly where it is going wrong.
I increased the timeout on shrink to compensate for older/slower machines. It appears to be related to the speed that your computer perform the shrink operation, and whether that is faster than the default packer retry timeout:
https://github.com/boxcutter/macos/commit/44d66e94e5d94c28581432ad8d5ff9514dab473c
Host machine: OSX 10.10 Using the boxcutter templates, unadulterated.
Am consistently running into the following error for every OSX packer build:
Builds succeed if i comment out the minimize.sh script so the issue definitely seems to come from there, but I have no idea what´s up. Pointers anyone?
Edit: when running packer in headless_mode: "false", it seems packer tries to remove the temp script after having shutdown the machine, hence why it cannot remove the script or communicate with the vm at all