I want to deploy a VMWare Linux VM from a template and then customize IP and hostname.
With vmware_guest module the deploy where finished, but I couldn’t set IP/hostname. So I changed to vsphere_guest module to give a try.
However, with vsphere module the deploy process doesn’t even finish. The message received is:
“Could not clone selected machine: [Task Error]: Insufficient disk space on datastore ‘’.”
When deploying from a template, this parameter will no be used.
Your VM will be deployed in the same datastore as the template.
This deployment is just a clone that will take by default all the parameters CPU / RAM / Disks of the template.
For my part, since I like complicated things, after the deployement, Ansible is launching a powercli script that will place the VM in a datastore based on categories and available space.
(The whole VM, not just the disk, in order not to have the vmx and log files in a datastore and the disk in another datastore)
I use vmware_guest to clone vms and it works fine. However I recall having problems with using VMXNET3 and wound up switching to e1000e. I think this is because VMXNET3 depends on vmware tools and so isn’t available during the early boot up process (I could be wrong about why, but I definitely could not get ip assigned when using VMXNET3) - things may be different for you - I most clone windows vms, but worth experimenting with available network adaptors.