ESXi installation with Auto Deploy fails during Host Profile application
search cancel

ESXi installation with Auto Deploy fails during Host Profile application

book

Article ID: 421847

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Installing ESXi using Auto Deploy fails.

In /var/run/log/syslog.log, you may find entries similar to:

yyyy-mm-ddThh:mm:ssZ Wa(12) hostprofile[2098339]: opID=MainThread: Failed to execute "network ip interface ipv4 set  --interface-name vmk0 --type dhcp --peer-dns true --gateway  xx.xx.xx.xx" command. Status = 1, Error=Errors:
yyyy-mm-ddThh:mm:ssZ Wa(12)[+] hostprofile[2098339]: -I|--ipv4 or -g|--gateway can be specified only if type is static
yyyy-mm-ddThh:mm:ssZ Wa(12)[+] hostprofile[2098339]: ^@
yyyy-mm-ddThh:mm:ssZ Er(11) hostprofile[2098339]: opID=MainThread: EngineModule::ApplyHostConfig. Exception: AddVmknic Failed: Errors:
yyyy-mm-ddThh:mm:ssZ Er(11)[+] hostprofile[2098339]: -I|--ipv4 or -g|--gateway can be specified only if type is static
yyyy-mm-ddThh:mm:ssZ Er(11)[+] hostprofile[2098339]: ^@
yyyy-mm-ddThh:mm:ssZ Wa(12) hostprofile[2098339]: opID=MainThread: EngineModule::ApplyHostConfig. Backtrace:
yyyy-mm-ddThh:mm:ssZ Wa(12)[+] hostprofile[2098339]: ^@
yyyy-mm-ddThh:mm:ssZ Wa(12) hostprofile[2098339]: opID=MainThread:   File "/lib64/python3.8/site-packages/hostprofiles/tests/tools/hpcliModules/engineModule.py", line 553, in ApplyTaskList
yyyy-mm-ddThh:mm:ssZ Wa(12)[+] hostprofile[2098339]: ^@
yyyy-mm-ddThh:mm:ssZ Wa(12) hostprofile[2098339]: opID=MainThread:   File "/lib64/python3.8/site-packages/hostprofiles/pyEngine/applyConfigSpec.py", line 4669, in ApplyHostConfig
yyyy-mm-ddThh:mm:ssZ Wa(12)[+] hostprofile[2098339]: ^@
yyyy-mm-ddThh:mm:ssZ Wa(12) hostprofile[2098339]: opID=MainThread:   File "/lib64/python3.8/site-packages/hostprofiles/pyEngine/applyConfigSpec.py", line 3591, in ApplyNetworkConfigCLI
yyyy-mm-ddThh:mm:ssZ Wa(12)[+] hostprofile[2098339]: ^@
yyyy-mm-ddThh:mm:ssZ Wa(12) hostprofile[2098339]: opID=MainThread:   File "/lib64/python3.8/site-packages/hostprofiles/pyEngine/applyConfigSpec.py", line 1916, in AddVmknic

 

Environment

VMware vSphere ESXi 8.0
VMware vSphere ESXi 7.0

Cause

Configuring VMkernel interface to use DHCP while explicitly specifying a default gateway in Host Profile is not supported.

Resolution

Currently there is no resolution.


Workaround:

  1. Click [ Edit Host Profile ], go to the "Networking configuration" -> "Host portgroup" -> <port group name> -> "IP address settings" -> "Default gateway for Vmkernel Network Adapter (IPv4) ", change the policy to "User must explicitly choose the policy option"
  2. Install ESXi with Auto Deploy