After a VM is rebooted, it sometimes does not get a correct IP from the DHCP server
There can be multiple different causes of these symptoms, including:
To either rule the ESXi hypervisor in or out regarding a possible root cause, the easiest way would be to use techniques in Packet capture on ESXi using the pktcap-uw tool
When a VM is rebooted, the hypervisor will select one of the physical uplinks that are associated with the network (port group, or distributed virtual port group) to carry the VM's TCP/IP packets.
A TCP/IP packet containing the request to obtain an DHCP IP address for the VM will be sent along that data path (from the virtual interface of the VM to the physical interface of the uplink), and then that packet will be sent to the physical infrastructure for forwarding to the DHCP server.
net-stats -l | grep <VM name> esxtop (and then select n for "network", observe the line in the column headed PORT-ID whose number matches the PortNum obtained in step 3, and note the vmnic (uplink) being used to carry the traffic for the VM)--switchport ######### --capture VnicTx,VnicRx (where ######### is the PortNum obtained in step 3)--uplink vmnic# --capture UplinkSndKernel,UplinkRcvKernel (where # is the number of the vmnic; i.e. vmnic1, vmnic2, etc.)The KB Packet capture on ESXi using the pktcap-uw tool explains how to direct those captures to files that can then be reviewed using a tool like Wireshark.
CONCLUSIONS: