Hello All,

Thanks for looking into it. I got it working, so thought to share with you 
if this is going to help for someone.
I was using wrong <Identifier> name, when used "Ethernet" I got the IP 
configured. But <NextHopAddress> didnt help with configuring gateway, i had 
to use a script added to the autounattend.xml like below

cmd.exe /c powershell -File a:\SetGateway.ps1

cat SetGateway.ps1
$nac = get-wmiobject Win32_NetworkAdapterConfiguration
$nac.SetGateways("gateway_IP",1)

This case can be archived.

Thanks
Shyam

On Wednesday, 27 February 2019 19:41:29 UTC+5:30, Shyam J wrote:
>
> I see. I tried configuring winrm_host but didnt help. The given IP is not 
> getting configured in windows VM (screenshot) so may be winrm_host is not 
> going to help. Please keep this case open, I will wait for somebody who has 
> worked on it the same way.
>
> Thanks
> Shyam
>
> On Tuesday, 26 February 2019 10:50:38 UTC+5:30, Rickard von Essen wrote:
>>
>> Whatever IP is in the autounattended.xml must also be in winrm_host. I 
>> can't say much more, haven't used Windows in nearly two decades. 
>>
>> On Tue, Feb 26, 2019, 05:59 Shyam J <[email protected]> wrote:
>>
>>> Did you get a chance to go through my below comments Rickard?
>>>
>>> Thanks
>>> Shyam
>>>
>>> On Tuesday, 19 February 2019 13:30:21 UTC+5:30, Shyam J wrote:
>>>>
>>>> Thanks Rickard for checking. 
>>>>
>>>> 1.IP is already mentioned in autounattednd.xml. 
>>>> 2. Didnt understand about much in details here. This is the explanation 
>>>> in packer website. winrm_host 
>>>> <https://www.packer.io/docs/templates/communicator.html#winrm_host> 
>>>> (string) 
>>>> - The address for WinRM to connect to. So here which will be the host and 
>>>> destination?
>>>> 3. Read in some vmware forums like VMX data cant be read by operating 
>>>> system getting installed in VM. Not sure whether its true. So do you know 
>>>> what parameters we can pass for the same?y
>>>>
>>>> Thanks
>>>> Shyam
>>>>
>>>> On Tuesday, 12 February 2019 16:36:04 UTC+5:30, Rickard von Essen wrote:
>>>>>
>>>>> If you use a static IP you have to set it in:
>>>>>
>>>>> 1) autounattended.xml so Windows is configured with it. 
>>>>> 2) winrm_host in the packer template 
>>>>> 3) Maybe somewhere in vmx data to ensure that vSphere doesn't assign 
>>>>> it some other IP. 
>>>>>
>>>>> On Tue, Feb 12, 2019, 10:30 Shyam J <[email protected] 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/9736f9e9-e4fc-4c15-a78e-d11fe6a1c556%40googlegroups.com
>>>>>>  
>>>>>> <https://groups.google.com/d/msgid/packer-tool/9736f9e9-e4fc-4c15-a78e-d11fe6a1c556%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>
>>>>> -- 
>>> 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/1b56bf2b-795f-4a95-9cba-1f9f9cc38185%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/packer-tool/1b56bf2b-795f-4a95-9cba-1f9f9cc38185%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
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/d1a22918-2e45-47a6-80f4-dafb0776624c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to