how community_vmware_vmware_vguest communicate the guest

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

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.

@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

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.

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.

Hello Abhi,

thank a lot, its worked perfectly.