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

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

book

Article ID: 328468

calendar_today

Updated On:

Products

VMware

Issue/Introduction

Symptoms:
  • Upgrading vCenter Server Appliance from 6.0 to 6.5 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 occurs 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, available at VMware Downloads.

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