Thanks for Checking Justin. I have the below settings in my
autounattend.xml file. Do you mean to say winrm still needs to be enabled?
I have turned firewall off.
<SynchronousCommand wcm:action="add">
<CommandLine>cmd.exe /c winrm quickconfig -q</CommandLine>
<Description>winrm quickconfig -q</Description>
<Order>3</Order>
<RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd.exe /c winrm quickconfig -transport:http</CommandLine>
<Description>winrm quickconfig -transport:http</Description>
<Order>4</Order>
<RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>
cmd.exe /c winrm set winrm/config @{MaxTimeoutms="1800000"}
</CommandLine>
<Description>Win RM MaxTimoutms</Description>
<Order>5</Order>
<RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>
cmd.exe /c winrm set winrm/config/winrs @{MaxMemoryPerShellMB="800"}
</CommandLine>
<Description>Win RM MaxMemoryPerShellMB</Description>
<Order>6</Order>
<RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>
cmd.exe /c winrm set winrm/config/service @{AllowUnencrypted="true"}
</CommandLine>
<Description>Win RM AllowUnencrypted</Description>
<Order>7</Order>
<RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>
cmd.exe /c winrm set winrm/config/service/auth @{Basic="true"}
</CommandLine>
<Description>Win RM auth Basic</Description>
<Order>8</Order>
<RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>
cmd.exe /c winrm set winrm/config/client/auth @{Basic="true"}
</CommandLine>
<Description>Win RM client auth Basic</Description>
<Order>9</Order>
<RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>
cmd.exe /c winrm set winrm/config/listener?Address=*+Transport=HTTP
@{Port="5985"}
</CommandLine>
<Description>Win RM listener Address/Port</Description>
<Order>10</Order>
<RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand>
Thanks
Shyam
On Thursday, 14 February 2019 03:17:37 UTC+5:30, Justin DynamicD wrote:
>
> 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/0ef7aea2-1abe-4767-a652-3bd3e4d69451%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.