2017/09/01 18:18:19 packer: 2017/09/01 18:18:19 [ERROR] connection error: http response error: 503 - invalid content type
2017/09/01 18:18:19 packer: 2017/09/01 18:18:19 [ERROR] WinRM connection err: http response error: 503 - invalid content type--
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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/dc92c327-457f-43f3-bcd1-c56a0d215c39%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<powershell>
# turn off PowerShell execution policy restrictions
Set-ExecutionPolicy -ExecutionPolicy Bypass -Scope LocalMachine
write-output "Running AWS User Data Script"
write-host "(host) Running AWS User Data Script"
# Configure WinRM
# First, remove HTTP listener
Remove-Item -Path WSMan:\Localhost\listener\listener* -Recurse
cmd.exe /c winrm quickconfig -q
write-output "Setting http transport..."
cmd.exe /c winrm quickconfig '-transport:http'
write-output "setting remainder of winrm configs..."
cmd.exe /c winrm set "winrm/config/winrs" '@{MaxMemoryPerShellMB="1024"}'
cmd.exe /c winrm set "winrm/config" '@{MaxTimeoutms="7200000"}'
cmd.exe /c winrm set "winrm/config/service" '@{AllowUnencrypted="true"}'
cmd.exe /c winrm set "winrm/config/client" '@{AllowUnencrypted="true"}'
cmd.exe /c winrm set "winrm/config/service/auth" '@{Basic="true"}'
cmd.exe /c winrm set "winrm/config/client/auth" '@{Basic="true"}'
cmd.exe /c winrm set "winrm/config/service/auth" '@{CredSSP="true"}'
cmd.exe /c winrm set "winrm/config/listener?Address=*+Transport=HTTP" '@{Port="5985"}'
write-output "Done with WinRM settings"
cmd.exe /c netsh advfirewall firewall add rule name="WinRM 5985" protocol=TCP dir=in localport=5985 action=allow
cmd.exe /c net stop winrm
cmd.exe /c sc config winrm start= auto
cmd.exe /c net start winrm
# Set temporary Administrator password only for Packer building
net user Administrator 'terriblepw'
wmic useraccount where "name='Administrator'" set PasswordExpires=FALSE
</powershell>
Anyone out there successfully using WinRM to provision Windows 2012 or Win 2016 Server?
--
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 packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/87b7333a-f9df-46db-a37e-0c43bb68ec45%40googlegroups.com.
What builder are you using?
On Sep 12, 2017 19:35, "Khalid Hosein" <kjho...@gmail.com> wrote:
Anyone out there successfully using WinRM to provision Windows 2012 or Win 2016 Server?--
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 packer-tool...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/8331bed2-68a6-40b1-90ef-49d638dd5f91%40googlegroups.com.
printf -v no_proxy '%s,' 192.168.42.{1..255};
export no_proxy="169.254.169.254,$no_proxy"
export NO_PROXY=$no_proxyPACKER_LOG=1 PACKER_LOG_PATH=/tmp/packer.log packer build.json--
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 packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/14a99653-07f7-465d-9416-486e4bba2b7e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.