ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

Prepare the DHCP Server for vSphere Auto Deploy Provisioning – VMware vSphere 6.5

By Vladan SEGET | Last Updated: January 10, 2017

Shares

We have started our Autodeploy posts in a wrong order. (kind of). Basically, we already explained the initial setup of Autodeploy within vSphere (starting services, initial config) Image Builder management (preparation, image cloning, and management of images). We have also written a post about Autodeploy rules which allows you to create and edit rules (within GUI) which then tell how the stateless host will behave upon booting. Today, however, we have to go back and prepare the DHCP Server for vSphere Auto Deploy Provisioning.

Auto Deploy uses a PXE boot where you have to enter some specific DHCP scope options. We'll see the details today. vSphere Autodeploy needs also TFTP server, but VCSA 6.5 has already one. A Service just needs to be started.

What do you need?

Here you can see an overview what's already “baked in” within the VCSA 6.5 which I migrated to. Not only there is vsphere Update manager, but also the Autodeploy TFTP server.

vSphere 6.5 autodeploy

I'll be demoing it via Windows DHCP and I have one DC which runs the DNS service for my lab. So without further wait, let's get started.

Prepare the DHCP Server for vSphere Auto Deploy

Step 1 – Create a new DHCP Scope

Connect to your DHCP server and create a DHCP scope for the IP address range which fits your needs. In my environment, I'll go with the 10.10.7.x network and I'll be booting a “nested ESXi”. But those could be perfectly fine physical hosts if I had a spare one… -:).

So just go to Administrative Tools and click DHCP > Navigate to DHCP > Hostname > IPv4 > Right-click IPv4 and select New Scope. Specify some meaningful name and description for the scope. Continue to the next page where you'll chose an IP address range.

Continue with the Exclusion and delay screen by not changing anything > Next > Lease duration (leave default) >  Click Next until you reach the Configure DHCP Options screen and select No, I will configure this option later.

Configure DHCP options later

Step 2 – Create a new reservation.

What we need to do next is to create and configure a DHCP reservation for each ESXi host that we'll bee booting. Go to DHCP > hostname > IPv4 > Autodeploy Scope > Reservations. Do a right click > New Reservation.

While there, put some meaningful name, IP address, and the MAC address for one of the hosts you're booting.

TIP: Do not include the colon (:) in the MAC address.

So you should look like this.

0050569AC7ED

DHCP Reservation

Rinse and repeat for each of the other hosts you wish to use. I stick with only one ESXi for now, but will add more later.

Next, we need to set up the DHCP Server to point the hosts to the TFTP Server. As the TFTP server is already up and running, we don't have to install it. Remember, in vSphere 6.0 it was an additional process where we had to install a small free TFTP server from Solarwinds.

The only thing we need to do is to connect via SSH to the VCSA 6.5 appliance > open the Shell > and enter a command to start the built-in TFTP server:

service atftpd start

(Note: I haven't checked if it stays across VCSA 6.5 reboots…..)

Step 3 – Configure DHCP Options

Right-click Scope Options and choose Configure Options > General TAB > Click 066 Boot Server Host and enter the address of the TFTP Server

In the Scope Options window, click the General tab.

Click 066 Boot Server Host Name and enter the address of the TFTP server.

Option 066 TFTP Server for AutoDeploy vSphere 6.5 is here

Then configure another option, the one with number 067.

Click 067 Bootfile Name and enter this:

undionly.kpxe.vmw-hardwired

Like this.

Option 067 TFTP Server for AutoDeploy vSphere 6.5 here

Click apply, OK to close the window.

So this is just a close up image from vCenter server settings (the same as the first image in this post). You can see it when you connect via vSphere client and go to Home > Hosts and Clusters > and Select at the very top the vCenter server > Configure TAB > Autodeploy.

The undionly.kpxe.vmw-hardwired iPXE binary will be used to boot the ESXi hosts.

Step 4 – Activate the DHCP Scope

In the DHCP window, right-click DHCP > hostname > IPv4 > Scope > Activate.

You should not log out from the DHCP Server if you are using Active Directory for DHCP and DNS, or log out otherwise.

Now the vESXi boots up but it has no rules attached to it, so it does not know which image to boot. Let's quickly create a rule based on an IP pattern…

Like this

Autodeploy rule in vSphere 6.5

And this is the rule activated.

AutoDeploy Rule

and we will see the stateless ESXi host finally booting up….

AutoDeploy booting ESXi host

 AutoDeploy, ImageBuilder GUI, DHCP serie:

  • vSphere 6.5 Image Builder GUI and AutoDeploy
  • VMware vSphere 6.5 and New Image Builder GUI – Cloning a profile – New!!
  • VMware vSphere 6.5 AutoDeploy Rules – New!!
  • Prepare the DHCP Server for vSphere Auto Deploy Provisioning – VMware vSphere 6.5 – [This Post]

If you want the latest How-to, news, videos ant tutorials for vSphere 6.5, just check the dedicated vSphere 6.5 page.

Also

  • VMware vSphere 6.5 Configuration Maximums – New!! 
  • How to create a USB media with ESXi 6.5 Installation

Stay tuned through RSS, and social media channels (Twitter, FB, YouTube)

Shares
4.5/5 - (2 votes)

| Filed Under: Server Virtualization Tagged With: Prepare the DHCP Server for vSphere Auto Deploy Provisioning

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. tmack says

    January 10, 2017 at 9:52 pm

    For non-Windows users ‘dnsmasq’ is a DNS,DHCP and TFTP server that will satisfy the Auto Deploy requirements.

    • Vladan SEGET says

      January 10, 2017 at 10:08 pm

      Thanks for your input on this.

  2. Schorschi says

    February 8, 2017 at 11:25 pm

    Came across odd issue, undionly.kpxe.vmw-hardwired for 6.5 does not always work. I was trying to stage nested ESXi 6.5 servers in 6.5 VMs for a lab environment. Which is supported per VMware. And I kept getting Network error encountered with PXE boot. And the iPXE chain to tramp would never happen. I tested iPXE step by step:

    Cntrl-B
    dhcp net0
    imgexec tftp:///tramp

    That worked, so manual steps work but automated steps (via hardwared) did not?

    So I replaced the undionly.kpe.vmw-hardwired file that came with 6.5 with a copy of the 6.0 version of the same file… and bingo, things worked. So I wonder what VMware did not regression test? Something in the 6.5 version of the undionly.kpe.vmw_hardwired file is broken at least when trying to deploy ESXi 6.5 to VMs.

    The 6.5 VM was created with all defaults, only changes where to enable VT-X in VM. Anyone else see this issue?

    • Vladan SEGET says

      February 9, 2017 at 7:43 am

      That’s definitely an odd issue. Thanks for the feedback. Hope someone will find out why this is happening….

    • Imran khan says

      November 29, 2017 at 9:35 am

      @Schorschi thanks for the observation. I am facing same issue in nested vCSA 6.5

      “Could not start download: Invalid argument (http://ipxe.org/1c25e002)”

      i tried ctrl+b –> dhcp net0 –> imgexec tftp:///tramp , but it stil gives following error :

      tftp:///tramp…ok
      could not start download : Invalid argument (http://ipxe.org/1c25e002)

      2. I want to try using undionly.kpe.vmw-hardwired file of vCSA 6.0 ..from where can i download his file ?

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs
  • Nakivo Backup and Replication – Malware Scan Feature
  • Zerto 10 U7 released with VMware NSX 4.2 Support
  • XorMon NG 1.9.0 Infrastructure Monitoring – now also with Veeam Backup Support
  • Heartbeat vs Node Majority StarWind VSAN Failover Strategy
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in