I am trying to create a windows image in Openstack cloud using Packer. The VM is getting created successfully but the packer build is getting hanged for quite long period(30 mins) and finally throws "ui error: Build 'openstack' errored: Timeout waiting for WinRM
". Please find the logs below and help me in getting this issue resolved. I have tried opening 5985 WinRM port as well but still it didn't worked.
[INFO] Attempting WinRM connection...
[DEBUG] connecting to remote shell using WinRM
[ERROR] connection error: unknown error Post http://{IP}:5985/wsman: dial tcp {IP}:5985: connection timed out
[ERROR] WinRM connection err: unknown error Post http://{IP}:5985/wsman: dial tcp {IP}:5985: connection timed out
==> openstack: Timeout waiting for WinRM.
ui error: Build 'openstack' errored: Timeout waiting for WinRM.