NSX Installation on an ESXi Host fails with an error " Failed to install software on host. Failed to download NSX components on host. Check the host connectivity and if "/tmp" folder has enough space "
search cancel

NSX Installation on an ESXi Host fails with an error " Failed to install software on host. Failed to download NSX components on host. Check the host connectivity and if "/tmp" folder has enough space "

book

Article ID: 379291

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • When attempting to install NSX on a vSphere ESXi Host, it takes longer than 5 minutes at the stage "Uploading NSX" and fails.
  • The "/tmp" folder is validated true to have enough space and the ESXi host is reachable from the NSX Manager.

Environment

  • All NSX versions.

Cause

  • Due to the network slowness owing to Infra issues, the NSX Installation fails.
  • The following snippets are seen in the nsxapi.log ( Location : /var/log/proton ) :
  •  

2024-09-24T05:50:27.381Z ERROR ActivityWorkerPool-1-11 Esx60SfdmManager 266533 FABRIC [nsx@6876 comp="nsx-manager" errorCode="MP26168"
 level="ERROR" subcomp="manager"] Install/Upgrade on ESX - Uploading LCP bundle to host ####c8bd-####-####-####-c87b22###### failed
com.vmware.nsx.management.ovfops.exception.CommandExecutionFailed:    % Received % Xferd  Average Speed   Time    Time     Time  Current

105M      0   359k  0:07:31  0:04:59  0:02:32  327k
curl: (28) Operation timed out after 300000 milliseconds with 0 bytes received
 
 
2024-09-24T05:50:27.389Z ERROR ActivityWorkerPool-1-11 DeploymentUnitActivityInstall 266533 FABRIC [nsx@6876 comp="nsx-manager" errorCode="MP26050" level="ERROR" subcomp="manager"] Host prep failed for ####c8bd-####-####-####-c87b22######.
com.vmware.nsx.management.service_fabric.sfdm.exception.HostInstallFailedException: null
        at com.vmware.nsx.management.service_fabric.sfdm.esx.Esx60SfdmManager.downloadLCPBundle(Esx60SfdmManager.java:361) ~[?:?]
        at com.vmware.nsx.management.service_fabric.sfdm.esx.Esx60SfdmManager.install(Esx60SfdmManager.java:198) ~[?:?]
        at com.vmware.nsx.management.service_fabric.sfdm.esx.Esx60SfdmManager.install(Esx60SfdmManager.java:143) ~[?:?]
        at com.vmware.nsx.management.service_fabric.sfm.deployment.service.DeploymentUnitActivityInstall.phaseInstall(DeploymentUnitActivityInstall.java:165) ~[?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_382]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_382]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_382]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_382]
        at com.vmware.nsx.platform.clustering.activity_framework.model.AbstractActivity.executePhase(AbstractActivity.java:152) ~[?:?]
        at com.vmware.nsx.platform.clustering.activity_framework.service.impl.ActivityExecutor.executeActivityPhase(ActivityExecutor.java:524) ~[?:?]
        at com.vmware.nsx.platform.clustering.activity_framework.service.impl.ActivityExecutor.processReadyActivityQueue(ActivityExecutor.java:447) ~[?:?]
 
 
  • In the above snippet, we see that the operation times out as the NSX LCP file is not copied on to the "/tmp" directory of the ESXi Host within 300,000 milliseconds ( 300 seconds ~ 5 minutes )

Resolution

There is no resolution as this is an environmental issue.

Workaround:

  • Manually copy the LCP File from the NSX Manager node from the /repository into the /tmp folder of the ESXi Host. ( Can be achieved via WinSCP )
  • Post that, run the following command on the concerned ESXi Host : esxcli software component apply -n nsx-lcp-bundle  -d /tmp/nsx-lcp-filename.zip --no-sig-check
  • Once done, the NSX Installation should go through successfully.