microsoft / packer-hyperv

Hyperv plugin for Packer.io
Other
82 stars 33 forks source link

packer build fails to create box file due to unhandled exception occured due to provision error #9

Closed babumuralidharan closed 10 years ago

babumuralidharan commented 10 years ago

Packer build fails to create box file due to an exception occured while trying to provision ps1 file. In this case, ps1 was blocked due to file copy as shown in the screenshot and due to this an exception occured.

image

Unblocking this file would fix the problem. But irrespective of this provisioning step failures, plugin should still create box file but in this case it did not create box file and command execution stopped with below exception skipping the box file preparation step.

image

vladimir-shcherbakov commented 10 years ago

I've fixed a bug related to execution policy https://github.com/MSOpenTech/packer-hyperv/issues/1

Are you sure you are using the latest builder-hyperv-iso.exe?

And could please provide detailed steps to reproduce?

Is it possible to run the file on your devbox without Packer?

babumuralidharan commented 10 years ago

We should include this step in readme and mention the unblock dll step to user. Closing this issue for now.