Hi Team, 

I am using packer to build images for versions like Windows 2012 RTM, 
Windows 2012 R2 and Windows 2016. Out of three, windows 2012 RTM getting 
Invalid credentials - 401 HTTP Error while trying to run scripts through 
ansible. Can someone help with this? 


The full traceback is: 
884
amazon-ebs: Traceback (most recent call last): 
885
amazon-ebs: File 
"/root/.pyenv/versions/3.7.10/lib/python3.7/site-packages/winrm/transport.py", 
line 329, in _send_message_request 
886
amazon-ebs: response.raise_for_status() 
887
amazon-ebs: File 
"/root/.pyenv/versions/3.7.10/lib/python3.7/site-packages/requests/models.py", 
line 941, in raise_for_status 
888
amazon-ebs: raise HTTPError(http_error_msg, response=self) 
889
amazon-ebs: requests.exceptions.HTTPError: 401 Client Error: for url: 
https://host:5986/wsman

Packer Version : 1.7.0
OS : Windows Server 2012 RTM - Base ( released on 2021 - March )
Ansible 
Winrm config is done through user data script and same is used for all 
flavours of Windows. 


Regards,
Varada Nair

-- 
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/hashicorp/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/ad6431ac-95c5-4954-804d-9442d6faa56bn%40googlegroups.com.

Reply via email to