# how community\_vmware\_vmware\_vguest communicate the guest

**URL:** <https://forum.ansible.com/t/how-community-vmware-vmware-vguest-communicate-the-guest/34664>\
**Category:** Ansible Project\
**Created:** [February 22, 2021, 8:15am UTC](https://forum.ansible.com/t/how-community-vmware-vmware-vguest-communicate-the-guest/34664 "2021-02-22T08:15:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gajendra\_Gaikwad1](https://avatars.discourse-cdn.com/v4/letter/g/9de053/32.png) [@Gajendra\_Gaikwad1](https://forum.ansible.com/u/Gajendra_Gaikwad1)\
**Post date:** [February 22, 2021, 8:15am UTC](https://forum.ansible.com/t/how-community-vmware-vmware-vguest-communicate-the-guest/34664/1 "2021-02-22T08:15:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Akasurde](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/akasurde/32/230_2.png) [@Akasurde](https://forum.ansible.com/u/Akasurde)\
**Post date:** [February 22, 2021, 8:31am UTC](https://forum.ansible.com/t/how-community-vmware-vmware-vguest-communicate-the-guest/34664/2 "2021-02-22T08:31:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Gajendra\_Gaikwad1](https://avatars.discourse-cdn.com/v4/letter/g/9de053/32.png) [@Gajendra\_Gaikwad1](https://forum.ansible.com/u/Gajendra_Gaikwad1)\
**Post date:** [February 22, 2021, 8:38am UTC](https://forum.ansible.com/t/how-community-vmware-vmware-vguest-communicate-the-guest/34664/3 "2021-02-22T08:38:40Z")

</div>

@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

---

<div class="post-metadata">

**Author:** ![Gajendra\_Gaikwad1](https://avatars.discourse-cdn.com/v4/letter/g/9de053/32.png) [@Gajendra\_Gaikwad1](https://forum.ansible.com/u/Gajendra_Gaikwad1)\
**Post date:** [February 22, 2021, 2:48pm UTC](https://forum.ansible.com/t/how-community-vmware-vmware-vguest-communicate-the-guest/34664/4 "2021-02-22T14:48:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Akasurde](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/akasurde/32/230_2.png) [@Akasurde](https://forum.ansible.com/u/Akasurde)\
**Post date:** [February 22, 2021, 2:56pm UTC](https://forum.ansible.com/t/how-community-vmware-vmware-vguest-communicate-the-guest/34664/5 "2021-02-22T14:56:13Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Gajendra\_Gaikwad1](https://avatars.discourse-cdn.com/v4/letter/g/9de053/32.png) [@Gajendra\_Gaikwad1](https://forum.ansible.com/u/Gajendra_Gaikwad1)\
**Post date:** [March 1, 2021, 6:48pm UTC](https://forum.ansible.com/t/how-community-vmware-vmware-vguest-communicate-the-guest/34664/6 "2021-03-01T18:48:57Z")

</div>

Hello Abhi,

thank a lot, its worked perfectly.
