Hi, I have found that different operating systems have an impact on custom settings, so you can't simply set the static IP with CustomizationSpec and CustomizeVM_Task. In the newer ESX version, ...
See more...
Hi, I have found that different operating systems have an impact on custom settings, so you can't simply set the static IP with CustomizationSpec and CustomizeVM_Task. In the newer ESX version, the Liunx system is generally ok, but windows will have problems. The solution is to use the machine.id to store the ip related information. This information will be written to the .vmx file of the virtual machine.And it can be retrieved with vmware tools inside the virtual machine, so the virtual machine can set Up the ip, netmask, geteway, dns, etc. according to the information. The reference links are as follows: https://communities.vmware.com/thread/443727?start=0&tstart=0 http://tech.lazyllama.com/2010/06/22/passing-info-from-powercli-into-your-vm-using-guestinfo-variables/ yavijava-samples/VmNetworkUtil.java at gradle · yavijava/yavijava-samples · GitHub