Open gstorme opened 6 years ago
Please make sure that the VM has a NIC before starting the customization. This can be easily checked in the VM settings.
This is a deploy from a vm template, which as a nic. So yes, the deployed vm from the template always has a NIC, before the customization starts
I would like to help you debug this. Would you be able to upload content of this directory of the VM after the customization failed ?
/var/log/vmware-imc/
Looking at the existing log, the customization has trouble creating file /etc/dhcp3/dhclient.conf. Not sure what is causing it though, since it is happening only in some runs.
ERROR: Fatal error occoured during customization !! Customization halted. ERROR: Error : Could not create file /etc/dhcp3/dhclient.conf! at /tmp/.vmware-imgcust-dlQhBL3/scripts/Utils.pm line 546.
INFO: Return code is 252. Exiting
Referencing #86
Hi,
We deploy Debian 9 from a template on vCenter 6.0 The open-vm-tools package version is 10.1.5-5055683-4+deb9u1 The NIC is a VMXNET3 adapter
About 1 out of 10 deploys from the same template end up with a disconnected NIC after guest customization has completed. An extract from /var/log/vmware-imc/toolsDeployPkg.log on such a failed deploy:
This full log is available on https://gist.github.com/gstorme/97b6604251b75c37a45ee0fa2841b074
On a successful deploy:
The vCenter event log is the same for both deployments: