You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Packer
Hi all,
I am trying to build an AMI for bamboo elastic agents using packer. But it is stuck in "Waiting for WinRM to become available". I am using user data scripts and that works perfectly ok with other images.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to packe...@googlegroups.com
Hello:
> I am trying to build an AMI for bamboo elastic agents using packer. But it is stuck in "Waiting for WinRM to become available". I am using user data scripts and that works perfectly ok with other images.
>
> Kindly assist what is missing in my scripts.
>
Could you please share your packer json file?
Jordan Borean
unread,
Jun 19, 2019, 1:35:38 AM6/19/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Packer
When you say it works perfectly with other images can you share some more info. I see you are manually adding the WSMan listener but one step you are missing is to set the LocalAccountTokenFilterPolicy [1] setting. This must be set to not filter the token on network logons for WinRM to work as only Administrators can connect to a WinRM endpoint by default. It would be great if you could share the debug logs of a Packer run as that usually logs WinRM attemps and if it even attempted to connect.
Some other brief notes when looking at your user data;
You are setting AllowUnencrypted = $true even though you are running over HTTPS, this is not needed and really shouldn't be set unless you want to run over HTTP
You are setting TrustedHosts on the Client side, this isn't needed for Packer unless that's what you want done as part of your image build
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Packer
Hi Jordan,
Thanks for coming back to me on this, I have attached other image script which uses the same user data. When you said adding the WSMan listener, is that on line 8 or line 29 of my user data script which I attached previously?
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Packer
Hi Jason,
The packer json file is the one I attached yesterday (win2016-dotnet.json)
Regards
Kishore
Kishore Ponniah
unread,
Jun 19, 2019, 8:49:34 AM6/19/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Packer
Hi,
It is working now and that's because I changed the VPC, Subnet and Security Group which had the required ports open to create an AMI. Earlier it was set to default VPC.