By default, hosts provisioned with vSphere Auto Deploy are assigned DHCP addresses by a DHCP server. You can use the vSphere Auto Deploy host customization mechanism to assign static IP addresses to hosts.

Prerequisites

  • Set up your vSphere Auto Deploy environment.
  • Boot the host using vSphere Auto Deploy.
  • Extract a host profile from the host.

Procedure

  1. In the vSphere Client, select Menu > Policies and Profiles.
  2. Under Policies and Profiles, click Host Profiles.
  3. Select the host profile that you want to edit and click the Configure tab.
  4. Click Edit Host Profile.
  5. Change the default IP address settings by locating Networking configuration > Host port group > Management Network > IP address settings.
  6. From the IPv4 address drop-down menu, select User specified IP address to be used while applying the configuration.
  7. If the host is in a different subnet than the vCenter Server system, select Networking Configuration > NetStack Instance > defaultTcpipStack > DNS configuration and enter the default route in the Default IPv4 gateway text box.
  8. Select Networking Configuration > NetStack Instance > defaultTcpipStack > DNS configuration.
  9. Make sure the Flag indicating if DHCP should be used check box is deselected.
  10. Right-click the host and select All vCenter Actions > Host Profiles > Attach Host Profile.
  11. Select the profile to attach, and click Next.
  12. Provide the IP address and net mask, and click Finish.
  13. Reboot the ESXi host.

Results

The IP address is saved as a host customization and applied to the host.