microsoft / packer-hyperv

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

Packer build fails with reference of external .ps1 file #1

Closed umavinoth closed 10 years ago

umavinoth commented 10 years ago

Repo Steps:

  1. Create template.json with mandatory builder parameters.
  2. Include provisioners as shown below image
  3. execute packer validate template.json. This is successful
  4. execute packer build template.json

Expected Result:

  1. Build should get successful and the build artifacts should get created.

Actual Result:

  1. Executin packer build template.json mounts a new vm in hyper-v, installs the OS, Enables the guest services, fetches the ip, executes inline provisioning commands.
  2. Prompts for a message to execute external .ps1 “Do you want to run ‘C:...\probe.ps1’? With option [Do not run]D, [Run Once]R, [Suspend]S [?]Help (default is “D”): “
  3. For any input D/R/S, the execution stops and doesn’t show any message.

image

vladimir-shcherbakov commented 10 years ago

fixed

umavinoth commented 10 years ago

Closed