VMware vSphere

 View Only
  • 1.  VCSA 7.0.3 Installation Fails from AlmaLinux 8 Machine: OVF Tool return error code: 127

    Posted Apr 24, 2022 04:11 AM

    While running vcsa-deploy from VCSA 7.0.3 on AlmaLinux 8, installation fails:

    2022-04-22 11:55:50,074 [loggable.py:102]: '--guestinfo.cis.deployment.autoconfig' is set to: True
    2022-04-22 11:55:50,074 [loggable.py:102]: See /tmp/vcsaCliInstaller-2022-04-22-11-54-6fs84itj/workflow_1650628493448/vcenter01/ovftool.log for the OVF Tool logs.
    2022-04-22 11:55:50,091 [loggable.py:102]: ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    2022-04-22 11:55:50,091 [loggable.py:102]: Generated OVF Tool command line: /root/VMware-VCSA-all-7.0.3-19480866.iso/vcsa-cli-installer/lin64/../../vcsa/ovftool/lin64/ovftool --powerOn --prop:guestinfo.cis.deployment.autoconfig=True --X:enableHiddenProperties --sourceSSLThumbprint --sourceType=OVA --X:waitForIp --X:injectOvfEnv --acceptAllEulas --allowExtraConfig --targetSSLThumbprint=27:C9:69:FD:27:06:5F:E3:69:FE:31:A1:0A:69:9A:57:52:F2:1F:69 --verifyOnly --X:logFile=/tmp/vcsaCliInstaller-2022-04-22-11-54-6fs84itj/workflow_1650628493448/vcenter01/ovftool.log --X:logLevel=verbose --X:logTransferHeaderData --name=vcenter01.example.com --datastore=hv01-LocalDataStore1 --prop:guestinfo.cis.deployment.node.type=embedded --deploymentOption=small --diskMode=thin --net:Network 1=VM Network --prop:guestinfo.cis.appliance.net.addr=192.0.2.10 --prop:guestinfo.cis.appliance.ssh.enabled=True --prop:guestinfo.cis.appliance.net.dns.servers=198.51.100.50,198.51.100.51 --prop:guestinfo.cis.vmdir.domain-name=vsphere.local --prop:guestinfo.cis.vmdir.password=****** --prop:guestinfo.cis.appliance.ntp.servers=time.nist.gov --prop:guestinfo.cis.vmdir.first-instance=True --prop:guestinfo.cis.appliance.net.mode=static --prop:guestinfo.cis.appliance.net.prefix=24 --prop:guestinfo.cis.appliance.net.addr.family=ipv4 --prop:guestinfo.cis.ceip_enabled=False --prop:guestinfo.cis.appliance.net.gateway=192.0.2.1 --prop:guestinfo.cis.system.vm0.port=443 --prop:guestinfo.cis.appliance.root.passwd=****** --prop:guestinfo.cis.appliance.net.pnid=vcenter01.example.com /root/VMware-VCSA-all-7.0.3-19480866.iso/vcsa-cli-installer/lin64/../../vcsa/VMware-vCenter-Server-Appliance-7.0.3.00500-19480866_OVF10.ova vi://root:******@hv01.example.com:443
    2022-04-22 11:55:50,091 [loggable.py:102]: ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    2022-04-22 11:55:50,091 [loggable.py:102]: '--guestinfo.cis.deployment.autoconfig' is set to: True
    2022-04-22 11:55:50,092 [loggable.py:102]: See /tmp/vcsaCliInstaller-2022-04-22-11-54-6fs84itj/workflow_1650628493448/vcenter01/ovftool.log for the OVF Tool logs.
    2022-04-22 11:55:50,116 [loggable.py:102]: Deployment failed. OVF Tool return error code: 127
    2022-04-22 11:55:50,128 [taskflow.py:1040]: <ApplianceDeploymentTask - com.vmware.vcsa.installer.ovf.deploy_appliance(RUNNING)> in <InstallTaskFlow - vcenter01(RUNNING)> status changed to: RUNNING
    2022-04-22 11:55:50,137 [loggable.py:102]: Ready to collect support bundle from deployed appliance, if applicable
    2022-04-22 11:55:50,252 [common_func.py:165]: Cannot collect the support bundle because Cannot find the appliance 'vcenter01.example.com' on the ESXi host 'hv01.example.com'. Exception: Failed to find VM vcenter01.example.com

    2022-04-22 11:55:50,253 [loggable.py:102]: Failed to collect support bundle from the deployed appliance 'vcenter01.example.com'. Exception: Cannot collect the support bundle because Cannot find the appliance 'vcenter01.example.com' on the ESXi host 'hv01.example.com'. Exception: Failed to find VM vcenter01.example.com

    2022-04-22 11:55:50,253 [loggable.py:102]: ============================================================================================================== [FAILED] Task: Precheck ovftool commandline parameters to deploy a vCenter Server Appliance execution failed at 11:55:50 ==============================================================================================================
    2022-04-22 11:55:50,254 [loggable.py:102]: Task 'Precheck ovftool commandline parameters to deploy a vCenter Server Appliance' execution failed because [ApplianceDeploymentTask: Caught an exception Deployment failed. OVF Tool return error code: 127], possible resolution is [Refer to the logs for details]
    2022-04-22 11:55:50,254 [loggable.py:102]: ============================================================================================================================================================================================================================================================================
    2022-04-22 11:55:50,284 [taskflow.py:1040]: <ApplianceDeploymentTask - com.vmware.vcsa.installer.ovf.deploy_appliance(FAILED)> in <InstallTaskFlow - vcenter01(FAILED)> status changed to: FAILED
    2022-04-22 11:55:50,338 [taskflow.py:1040]: <ApplianceDeploymentTask - com.vmware.vcsa.installer.ovf.deploy_appliance(FAILED)> in <InstallTaskFlow - vcenter01(FAILED)> status changed to: FAILED
    2022-04-22 11:55:50,543 [taskflow.py:684]: Execution attempt 1 for Task <ApplianceDeploymentTask - com.vmware.vcsa.installer.ovf.deploy_appliance(FAILED)> FAILED with exception: ApplianceDeploymentTask: Caught an exception Deployment failed. OVF Tool return error code: 127
    2022-04-22 11:55:50,543 [taskflow.py:715]: Finished executing <ApplianceDeploymentTask - com.vmware.vcsa.installer.ovf.deploy_appliance(FAILED)> and its status is FAILED
    2022-04-22 11:55:50,543 [taskflow.py:718]: <InstallTaskFlow - vcenter01(FAILED)> overall status is now FAILED

    The referenced log file doesn't exist: /tmp/vcsaCliInstaller-2022-04-22-11-54-6fs84itj/workflow_1650628493448/vcenter01/ovftool.log



  • 2.  RE: VCSA 7.0.3 Installation Fails from AlmaLinux 8 Machine: OVF Tool return error code: 127
    Best Answer

    Posted Apr 24, 2022 05:18 PM

    After some poking around, it turns out ovftool is missing a required library that is not installed by default on RHEL 8/CentOS 8/AlmaLinux 8/Rocky Linux 8:

    $ vcsa/ovftool/lin64/ovftool
    vcsa/ovftool/lin64/ovftool.bin: error while loading shared libraries: libnsl.so.1: cannot open shared object file: No such file or directory

    You can resolved this by installing libnsl:

    # dnf install libnsl
    Last metadata expiration check: 3:14:17 ago on Sat 23 Apr 2022 07:19:33 PM UTC.
    Dependencies resolved.
    ============================================================================================================================================================================================================================================================================

    Package Architecture Version Repository Size
    ============================================================================================================================================================================================================================================================================

    Installing:
    libnsl x86_64 2.28-164.el8_5.3 baseos 102 k

    Transaction Summary
    ============================================================================================================================================================================================================================================================================

    Install 1 Package

    Total download size: 102 k
    Installed size: 160 k
    Is this ok [y/N]: y
    Downloading Packages:
    libnsl-2.28-164.el8_5.3.x86_64.rpm 1.9 MB/s | 102 kB 00:00
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total 366 kB/s | 102 kB 00:00
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
    Preparing : 1/1
    Installing : libnsl-2.28-164.el8_5.3.x86_64 1/1
    Running scriptlet: libnsl-2.28-164.el8_5.3.x86_64 1/1
    Verifying : libnsl-2.28-164.el8_5.3.x86_64 1/1

    Installed:
    libnsl-2.28-164.el8_5.3.x86_64

    Complete!


    And now ovftool runs:

    $ vcsa/ovftool/lin64/ovftool
    Error: No source or target specified. Try 'ovftool --help' for more options.


  • 3.  RE: VCSA 7.0.3 Installation Fails from AlmaLinux 8 Machine: OVF Tool return error code: 127

    Posted Sep 26, 2023 12:00 AM

    I can confirm that this issue still exists in VMWare 8.0 when attempting to run a CLI install from a Rocky Linux 9 machine.

    Much appreciated for the easy fix ggiesen! Installing libnsl worked like a charm.