Depending on the size and the scale of your VMware vSphere environment, you might consider having DHCP addresses assigned to an ESXi host. Larger scale installations will benefit from using the new scripted installation feature of vSphere 4.1 (see the ESXi installable setup guide). Regardless of whether DHCP is used, all installations will need to have a good handle on networking and, in particular, DNS.For non-scripted installations, you can easily check to see if a default installation will resolve its host name with the DNS configuration. Figure A shows an ESXi 4.1 host installed with defaults, yet the host name is resolved. Figure A
If the host is not resolved in the DNS server(s) that is assigned by DHCP, the ESXi host will display http://localhost entry on the loader screen (the yellow screen) instead of the DNS A record assigned to that IP address. The example in Figure A has two things in place to ensure seamless resolution and a DHCP addressed assignment: The DNS A record is already assigned for the vesxi3 host in the RWVDEV.INTRA domain, and the ESXi server's MAC address has a DHCP reservation for the IP address used in the DNS A record.
Note that the second IP address is listed as DHCP and displays only the IP address; this is because a valid host profile (or vSphere Client configuration) has not applied the second vmnic interface for the default vSwitch (vSwitch0) to establish redundancy for the vSwitch. This ESXi server actually has four network interfaces; the third and fourth vmnic interfaces are not on a DHCP segment and are not displayed on the ESXi loader screen.The planning phases of the vSphere installation should also include a standard for IP addressing and DNS nomenclature for the ESXi hosts. It's much simpler when there is only one DNS zone in use; if there are any additional DNS zones to be used, those zones will need to be configured in the DNS and Routing Configuration section of the vSphere Client. Figure B shows this with multiple DNS zones configured. Figure B
This can be configured via the scripted installation, the command line, the vSphere Client interface, or the vSphere host profiles features. DHCP cannot assign the DNS suffixes or search order for any operating system, so ensure that the host is configured correctly.
I use DHCP for my vCenter lab, which has four ESXi hosts and one vCenter server, all of which are DHCP clients. In the course of my lab work, there have been minimal issues; however, I am not sure if I would use DHCP for production workloads. If any development-only ESXi hosts are in use, DHCP may offer a good use case.
How have you used DHCP for ESXi hosts? Share your comments in the discussion.
Rick Vanover is a software strategy specialist for Veeam Software, based in Columbus, Ohio. Rick has years of IT experience and focuses on virtualization, Windows-based server administration, and system hardware.