-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Cannot complete build due to error about chocolatey. #576
Comments
I'm having what appears to be an identical issue, only I am trying to use both VirtualBox and VMware Fusion Pro. Host System
Command OutputThe error is occurring with both variants of the command (VMware Fusion Pro and VirtualBox):
The error happens at the same place, after the second VM reboot. VirtualBox
VMware Fusion Pro
|
I get the same thing as well. This is the actual error when it tries to run vagrant.ssh and the chocolatey.ps1 script:
|
This is likely a duplicate from the same root cause as #575, please retest with the fix that landed recently and reopen if the issue persists. |
Issue Description
Please check the General Issues section in the wiki before you submit the issue.
If you didn't find your issue mentioned, please give a thorough description of the issue you're seeing.
Also, please be sure to include any troubleshooting steps that you've already attempted.
Host System
Command Output
Copy the relevant command output here.
If it's long, either post to a gist and add the link here, or isolate the error lines.
Command: packer build --only=qemu ./packer/templates/windows_2008_r2.json
OK until here:
==> qemu: Provisioning with shell script: /home/b84333/git/metasploitable3/packer/templates/../../scripts/installs/install_boxstarter.bat
==> qemu: 'chocolatey' is not recognized as an internal or external command,
==> qemu: operable program or batch file.
qemu:
==> qemu: 'choco' is not recognized as an internal or external command,
qemu: C:\Users\vagrant>chocolatey feature enable -n=allowGlobalConfirmation
qemu:
==> qemu: operable program or batch file.
==> qemu: 'chocolatey' is not recognized as an internal or external command,
qemu: C:\Users\vagrant>choco install BoxStarter
==> qemu: operable program or batch file.
qemu:
qemu: C:\Users\vagrant>chocolatey feature disable -n=allowGlobalConfirmation
==> qemu: Provisioning step had errors: Running the cleanup provisioner, if present...
==> qemu: Deleting output directory...
Build 'qemu' errored after 12 minutes 37 seconds: Script exited with non-zero exit status: 1.Allowed exit codes are: [0]
==> Wait completed after 12 minutes 37 seconds
==> Some builds didn't complete successfully and had errors:
--> qemu: Script exited with non-zero exit status: 1.Allowed exit codes are: [0]
==> Builds finished but no artifacts were created.
The text was updated successfully, but these errors were encountered: