I have a problem with packer provisioning windows EBS backed in AWS. It
seem for some reason when I get into having 10 or more provisioners that
the #11 or more always fails with the following error:
--> amazon-ebs: Error processing command: Error generating elevated runner:
Error preparing elevated shell script: Error uploading file to
$env:TEMP\winrmcp-745f72eb-b955-49e4-5b6b-799c6709af97.tmp: Couldn't create
shell: http response error: 401 - invalid content type
If i put that same provisioner as #1 it works so I know the content is fin
e.
Odd thing is I don't see this behavior with Linux EBS provisioners, so
starting to wonder is this a bug with packer winrm or winrm itself ?
Here is a current list of my winrm setting that are passed in through user
data.
net user SomeUser GoogleMuck /EXPIRES:NEVER /add
net localgroup administrators SomeUser /add
wmic useraccount where "name='somename'" set PasswordExpires=FALSE
Set-ExecutionPolicy -ExecutionPolicy bypass -Force
netsh advfirewall set allprofiles state off
winrm set winrm/config/winrs '@{MaxMemoryPerShellMB="0"}'
winrm set winrm/config '@{MaxTimeoutms="10800000"}'
winrm set winrm/config/service '@{AllowUnencrypted="true"}'
winrm set winrm/config/service/auth '@{Basic="true"}'
If any one can help truly identify the issue it would extremely helpfull. I
have a feeling it is a problem winrm or my above settings but not sure
where to start there.
--
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/70555fd6-bb25-4897-8048-8f2c89e588a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.