I had some similar behavior with some powershell stuff I was working on. My 
solution was adding a pause before the next script was run. Not saying it will 
work for you, but it was throwing a weird negative exit code and I narrowed it 
down to that, worth a shot maybe.
"pause_before": "1m"


Sent from my Samsung Galaxy smartphone.
-------- Original message --------From: Henrry Salinas <[email protected]> 
Date: 2018-10-11  10:44 PM  (GMT-05:00) To: Packer 
<[email protected]> Subject: [packer] choco install WinRM 
I am using Packer to provision a VM (win7) with installed packages using 
chocolatey
One of these packages is mssqlserver2014express, see below:
"provisioners":{

    {
      "type":"powershell",
      "script":"./scripts/installChocolatey.ps1"
    },
    {
      "type":"powershell",
      "inline":[
          "choco install mssqlserver2014express -y"
      ]
    }
}  
The result of the execution stops with an error7
 Exit code was '-2068774911' Error Message: 
The install of mssqlserver2014express was NOT successful.
The  package is being installed via a Remote PS WinRM script.

Does anyone that had the same error was able to solve it?




-- 

This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

 

GitHub Issues: https://github.com/mitchellh/packer/issues

IRC: #packer-tool on Freenode

--- 

You received this message because you are subscribed to the Google Groups 
"Packer" group.

To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].

To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/ee7886f8-5245-4552-9c91-e5d6010f325a%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/5bc00ddc.1c69fb81.77759.3e71%40mx.google.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to