Waiting for WinRM simply means it doesn't see any activity on the IP at port 5985/5986 yet (depending if you set winrm_use_ssl to true or not).
Your problem most likely is that you haven't configured WinRM yet, as that's disabled by default in 2012R2. In your autounattend.xml you need to include something like: <FirstLogonCommands> <SynchronousCommand wcm:action="add"> <Order>1</Order> <!-- Enable WinRM service --> <CommandLine>powershell –NoProfile -File a:\Setup_WinRM.ps1</CommandLine> <RequiresUserInput>true</RequiresUserInput> </SynchronousCommand> </FirstLogonCommands> You can then include that powershell script in the same directory as your autounattend.xml so it gets added to the dynamic A: drive to ensure it runs. In that script you can setup WinRM with the correct port, transport, etc (or just do a /quickconfig if you prefer). On Tuesday, February 12, 2019 at 1:30:34 AM UTC-8, Shyam J wrote: > > Hi, > > Requesting help!! > I am trying to create vmware windows2012r2 template in ESXi machine. But > Packer stucks at Waiting WinRM. The VM is getting created but mentioned IP > is not getting assigned to the VM(attached screenshot) eventhough we can > see the network card is connected. PFA JSON and autounattend.xml file along > with logs ran in debug mode. > > If the method I am following in autounattend.xml is wrong for static IP > please mention the required one. > > ESXi version: VMware ESXi, 6.0.0, 7967664 > Packer version : 1.3.2 > > Thanks in advance > Shyam > -- 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/da01950f-2e49-4fb2-b08c-355c798d9337%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
