Customization uses Perl and vmware_tools. Please check if those packages
are available and installed to the latest version.
Also, check if VMware tools version is compatible with your OS version and
Vcenter version.
Try openvm tools as well if native VMware tools do not work.
There is one log file that logs the customization process log (I forgot the
name of that file but you can search find it in Vmware docs). you can check
that file for the possible error.
Try recreating the template.


On Mon, Feb 22, 2021 at 8:19 PM [email protected] <
[email protected]> wrote:

> Hello Abhi,
>
> From template vm is created but customization is not happening
> like hostname, ip address.
> so does it required any user to present in template or how its module is
> connected to vm machine.
> how to debug the customization part.
>
>
> On Monday, February 22, 2021 at 2:08:40 PM UTC+5:30 [email protected]
> wrote:
>
>> @Abhi,
>>
>> thank you for your reply.
>>
>> I am using below playbook format (check network configuration)
>>
>> - name:  Clone a virtual machine from Linux template and customize
>>   community.vmware.vmware_guest:
>>     hostname: "{{ vcenter_hostname }}"
>>     username: "{{ vcenter_username }}"
>>     password: "{{ vcenter_password }}"
>>     datacenter: "{{ datacenter }}"
>>     state: present
>>     folder: /DC1/vm
>>     template: "{{ template }}"
>>     name: "{{ vm_name }}"
>>     cluster: DC1_C1
>>     networks:
>>       - name: VM Network
>>         ip: 192.168.10.11
>>         netmask: 255.255.255.0
>>     wait_for_ip_address: True
>>
>>
>> On Monday, February 22, 2021 at 2:02:03 PM UTC+5:30 Abhijeet Kasurde
>> wrote:
>>
>>> vmware_guest does not talk directly to vmware guest while customization.
>>> We specify `customization` or `customization_spec` in vmware_guest which
>>> tells vCenter to do the customization with networking.
>>>
>>> You can either use `vmware_guest_network` or `vmware_vm_shell` to the
>>> network customization.
>>>
>>> On Mon, Feb 22, 2021 at 1:45 PM [email protected] <
>>> [email protected]> wrote:
>>>
>>>> Hello Team
>>>>
>>>> 1. Can anyone brief me how does vmware_guest communicate with linux
>>>> guest machine while assigning the new ipadddress?
>>>> 2. what authentication method its used.?
>>>>
>>>> Note: This is new machine deployment query
>>>>
>>>> Thanks in advance
>>>>
>>>> Regards,
>>>> GG
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Ansible Project" 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/ansible-project/a8ad6a72-1f1b-40e1-8ac6-93576f86c94an%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/ansible-project/a8ad6a72-1f1b-40e1-8ac6-93576f86c94an%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>
>>>
>>> --
>>> Thanks,
>>> Abhijeet Kasurde
>>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" 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/ansible-project/19766922-d9f3-4fe8-8b66-5e72b956d491n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/19766922-d9f3-4fe8-8b66-5e72b956d491n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Thanks,
Abhijeet Kasurde

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" 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/ansible-project/CAFwWkHoh-QY_7a1rZdkvJMWxxwf_nBc1ft-H-hRwq3JaoAdyjQ%40mail.gmail.com.

Reply via email to