Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error removing temporary script (During cleanup of StepDownloadGuestAdditions) #28

Open
spoorcc opened this issue Sep 27, 2017 · 1 comment

Comments

@spoorcc
Copy link

spoorcc commented Sep 27, 2017

Issue

When building 10.8 box using the command:
bin/box build macos108 ~/Downloads/Install\ OS\ X\ Mountain\ Lion.app/ 10.8 virtualbox

I consistently get:
Build 'virtualbox-iso' errored: Error removing temporary script at /tmp/script_9249.sh!

Building 10.7 or 10.9 with appropriate installers does not give issues.

Relevant parts of the Packer log - (available as Github Gist)

2017/09/27 15:04:53 [INFO] (telemetry) Starting builder virtualbox-iso
2017/09/27 15:04:53 packer: 2017/09/27 15:04:53 VBoxManage path: /usr/local/bin/VBoxManage
2017/09/27 15:04:53 packer: 2017/09/27 15:04:53 Not downloading guest additions since it is disabled.
2017/09/27 15:04:53 ui: ask: �[1;32m==> virtualbox-iso: Pausing after run of step 'StepDownloadGuestAdditions'. Press enter to continue.�[0m
...
2017/09/27 16:05:39 ui: ask: �[1;32m==> virtualbox-iso: Pausing before cleanup of step 'StepDownloadGuestAdditions'. Press enter to continue.�[0m
2017/09/27 16:05:45 [INFO] (telemetry) ending virtualbox-iso
2017/09/27 16:05:45 [INFO] (telemetry) found error: Error removing temporary script at /tmp/script_9249.sh!
2017/09/27 16:05:45 ui error: �[1;31mBuild 'virtualbox-iso' errored: Error removing temporary script at /tmp/script_9249.sh!�[0m
2017/09/27 16:05:45 Waiting on builds to complete...
2017/09/27 16:05:45 Builds completed. Waiting on interrupt barrier...
2017/09/27 16:05:45 machine readable: error-count []string{"1"}
2017/09/27 16:05:45 ui error: 
==> Some builds didn't complete successfully and had errors:
2017/09/27 16:05:45 machine readable: virtualbox-iso,error []string{"Error removing temporary script at /tmp/script_9249.sh!"}
2017/09/27 16:05:45 ui error: --> virtualbox-iso: Error removing temporary script at /tmp/script_9249.sh!

My environment

  • Packer version 1.0.4
  • Host: Mac OS 10.12.6 x64
@darkn3rd
Copy link

I am not sure if this is related, but only a certain version of Sierra works. At some point, Apple updated the installer image to block unsigned early stage scripts needed to make all this magic work. If you were lucky enough to download an earlier version of Sierra installer from App Store, you should use that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants