"error while loading shared libraries" when upgrading to vCenter Server Appliance
search cancel

"error while loading shared libraries" when upgrading to vCenter Server Appliance

book

Article ID: 328468

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:

  • Upgrading vCenter Server Appliance fails before the export phase.
  • In the /opt/vmware/share/vami/vami_get_network log file, you see entries similar to:

    /opt/vmware/share/vami/vami_get_network: error while loading shared libraries: libvami-common.so: cannot open shared object file: No such file or directory.



Cause

This issue occurred in vCenter version 6.5 due to a missing dependency in the shared library paths during the export phase of the upgrade. For more information, see VMware vSphere 6.5 Release Notes.

Resolution

This issue is resolved in vCenter Server 6.0 Update 3 and up. available at VMware Download options

To work around this issue if you do not want to upgrade, update the paths for the shared libraries before upgrading:
  1. Connect to the vCenter Server Appliance to be upgraded using an SSH session and root credentials.
  2. Run these commands to update the library paths:

    • echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}/opt/vmware/lib/vami/" >> /etc/profile
    • echo 'export LD_LIBRARY_PATH' >> /etc/profile

  3. Log out of the Appliance shell.
  4. Disconnect from the Appliance and run the upgrade.



Additional Information