Hello:

On Thu, Jul 4, 2019 at 1:40 PM 'Brian Walker' via Packer <
[email protected]> wrote:

> I have seen a lot of people with the same issue when trying to build a
> windows image with Packer. I have yet to find an answer on how to resolve.
> I have tried several things which have not resolved the issue.
>
> Does anyone have ideas on how to resolve this issue? The VM gets created
> in vCenter fine.  I can do a web console after the VM comes up and show
> that WinRM is installed and available. My assumption is that it has to do
> with Authentication. I even tried upping the timeout to 30 minutes but that
> does not help.
>
>
> Tried these WinRM settings as well...HELP!
>
> # Required for WinRM firewall rules
> $profile = Get-NetConnectionProfile
> Set-NetConnectionProfile -Name $profile.Name -NetworkCategory Private
> Set-NetFirewallProfile -Profile Domain,Public,Private -Enabled False
>
>
> # Enable WinRM service
> winrm quickconfig -quiet
> winrm set winrm/config/service '@{AllowUnencrypted="true"}'
> winrm set winrm/config/service/auth '@{Basic="true"}'
> winrm set winrm/config/client
> '@{TrustedHosts="192.168.1.100,192.168.1.123"}'
>
> I don't see you're enabling WinRM SSL. Have you already enabled it? If you
didn't, then you should not use WinRM SSL in your packer config file.

While waiting for WinRM to connect, try connectivity to port 5986 (SSL) or
5985 (no SSL). See which of those ports work.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAA3McK_64GrMjXC19uJ1MXjhSjDW-KEThdOV_0n5NV_v7k%3DO%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to