Azure windows virtual image provision Packer- winrm timeout issue

72 views
Skip to first unread message

Priya

unread,
Jan 8, 2020, 7:32:07 AM1/8/20
to Packer
Hi,

I am trying to provision windows image in Azure using packer.
When it comes to connecting winrm its getting timeout. I have mentioned the winrm settings in a file and provided the path to this file in custom_data_file which is mentioned in builder part.
I am not able to find any sample for windows image provisioning with winrm setting.
Could you confirm the link of sample code if any or am I mentioning it wrong?


Thanks in advance.

dragon788

unread,
Jan 9, 2020, 8:39:49 AM1/9/20
to Packer
Check out the boxstarter.org templates for bootstrapping Windows with WinRM or look at the chef/bento repo on GitHub in the Windows folder to find great examples.

mohanapriya k1990

unread,
Jan 16, 2020, 5:30:01 AM1/16/20
to Packer
Hi, Thanks for you reply. could you please mention where should i mention the winrm settings file in packer script for Azure.

Alvaro Miranda Aguilera

unread,
Jan 17, 2020, 12:53:32 PM1/17/20
to packe...@googlegroups.com

--
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/8b577d8e-bdfb-4e3a-a2cd-ade57a19a8d6%40googlegroups.com.


--
Alvaro

mohanapriya k1990

unread,
Jan 19, 2020, 11:01:10 PM1/19/20
to Packer
I have tried the same. WinRM timeout is the issue when it is trying to connect to the VM provisioned. i have tried different images and increased timeout as well. It didn't help. Tried to login manually into the packer provisioned machine, WinRM is disabled. How can we enable the WinRM in Azure machines using packer?
For AWS, we are enabling the WinRM settings in user_data_file. Similarly for Azure do we have any option? 


On Friday, January 17, 2020 at 11:23:32 PM UTC+5:30, Alvaro Miranda Aguilera wrote:
On Thu, Jan 16, 2020 at 11:30 AM mohanapriya k1990 <mohanap...@gmail.com> wrote:
Hi, Thanks for you reply. could you please mention where should i mention the winrm settings file in packer script for Azure.

On Thursday, January 9, 2020 at 7:09:49 PM UTC+5:30, dragon788 wrote:
Check out the boxstarter.org templates for bootstrapping Windows with WinRM or look at the chef/bento repo on GitHub in the Windows folder to find great examples.

--
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 packe...@googlegroups.com.


--
Alvaro

dragon788

unread,
Jan 23, 2020, 7:31:08 AM1/23/20
to Packer
Have you tried using the https://github.com/chef/bento repo and the Windows 10 templates? There was a WinRM fix a month or two back for Windows 10 that fixed an issue with WinRM not getting properly enabled, I haven't tested with the server versions to see if the same fix would be required there.
Reply all
Reply to author
Forward
0 new messages