I tried build using winrm but I get response 401.
- Host OS: Windows 10 Pro v1709
- VM OS: Windos 10 Pro and Windows 7 Pro
- packer version: 1.2.2
- VirtualBox version: 5.2.8
Log, packer.json, Autounattend.xml is here.
My command is
> packer build -force -only=virtualbox-iso -var iso_url=xxxx -var iso_checksum=xxxx .\windows_10_x64.json
and packer started build but winrm response 401 content type
2018/03/30 09:40:42 packer.exe: 2018/03/30 09:40:42 [INFO] Attempting WinRM connection...
2018/03/30 09:40:42 packer.exe: 2018/03/30 09:40:42 [DEBUG] connecting to remote shell using WinRM
2018/03/30 09:40:42 packer.exe: 2018/03/30 09:40:42 [ERROR] connection error: http response error: 401 - invalid content type
2018/03/30 09:40:42 packer.exe: 2018/03/30 09:40:42 [ERROR] WinRM connection err: http response error: 401 - invalid content type
I also check following
- turn off windows firewall both Host and Client.
- connect via winrs command to winrm port automatically forwarding andresponse OK.(ex "winrs.exe -r:http://localhost:4249-u:vagrant -p:vagrant echo OK")
- increase winrm_timeout value
What is wrong my settings?