Unable to reconfigure SRM 8.7.0.X and above - File not found: /opt/vmware/hms/conf/hms-configuration.xml
search cancel

Unable to reconfigure SRM 8.7.0.X and above - File not found: /opt/vmware/hms/conf/hms-configuration.xml

book

Article ID: 312739

calendar_today

Updated On:

Products

VMware Live Recovery

Issue/Introduction

Symptoms:


SRM appliance is failing to reconfigure after upgrading to 8.7.0.4 or above version with the below errors. 

Summary page in VAMI displays the error -

ERROR
A general system error occurred: N7Vmacore9ExceptionE File not found: /opt/vmware/hms/conf/hms-configuration.xml [context]zKq7AVECAAQAAIJ9YQEMZHJjb25maWcAAO2hHGxpYnZtYWNvcmUuc28AAWgEBGxpYmRyLXZtYWNvcmUuc28AAdb7CwJk6BBkci1jb25maWd1cmF0b3IAAhf0EAOouQ1saWJkcmNvbmZpZy10eXBlcy5zbwAEqykGbGliZHItdm1vbWkuc28AAE0BMQCtGDEADiVBBYd/AGxpYnB0aHJlYWQuc28uMAAGvzYPbGliYy5zby42AA==[/context] 
[backtrace begin] product: VMware vCenter Site Recovery Manager, version: 8.7.0, build: build-23166338, tag: drconfig, cpu: x86_64, os: linux, buildType: release 
backtrace[03] libvmacore.so[0x001CA1ED] 
backtrace[04] libdr-vmacore.so[0x00040468] 
backtrace[05] libdr-vmacore.so[0x000BFBD6] 
backtrace[06] dr-configurator[0x0010E864] 
backtrace[07] dr-configurator[0x0010F417] 
backtrace[08] libdrconfig-types.so[0x000DB9A8] 
backtrace[09] libdr-vmomi.so[0x000629AB] 
backtrace[10] libvmacore.so[0x0031014D] 
backtrace[11] libvmacore.so[0x003118AD] 
backtrace[12] libvmacore.so[0x0041250E] 
backtrace[13] libpthread.so.0[0x00007F87] 
backtrace[14] libc.so.6[0x000F36BF] 
[backtrace end]
Operation ID: 89fac6ca-b04d-4da9-a21c-89783a0926bd
3/17/24, 9:36:56 PM +0530


Services page in VAMI displays the error -

ERROR
A general system error occurred: Failed to get status for hbrsrv
No files found for hbrsrv.service.
: The connection was closed by the remote end during handshake.
Operation ID: 18a09984-c473-40d2-8f80-e72442b5051a

 

Environment

VMware Site Recovery Manager 8.x

Cause


SRM ovfEnv.xml file is missing the line:

<Property oe:key="deployment_scenario" oe:value="SRM"/>

This can be verified by running the following command:

vmtoolsd --cmd "info-get guestinfo.ovfEnv"

 

Resolution

 

  • SSH to SRM appliance login with admin and  then sudo to root user
    su -
  • Run the following command to create a Script "90-fix-deployment.sh"
vi /opt/vmware/bin/subseqboot.sh.d/90-fix-deployment.sh
  • Add the below to the file:
#!/bin/bash

chattr -i /opt/vmware/etc/vami/ovfEnv.xml
grep -q '<Property oe:key="deployment_scenario" oe:value="SRM"/>' /opt/vmware/etc/vami/ovfEnv.xml || sed -i -s '/<PropertySection/a <Property oe:key="deployment_scenario" oe:value="SRM"/>' /opt/vmware/etc/vami/ovfEnv.xml
chattr +i /opt/vmware/etc/vami/ovfEnv.xml
  • Save and exit the file with the following command in vi
    :wq!
  • Provide executable permission to the file
chmod +x /opt/vmware/bin/subseqboot.sh.d/90-fix-deployment.sh
  • Reboot the appliance & reconfigure, now it must work. 



Follow the steps below if the ovfEnv.xml file is empty or incomplete:

  • Download the ovf.txt file from this KB article

  • Open the ovf.txt file with Notepad or any text editor

  • Fill out the necessary SRM configuration parameters highlighted below:



      • VM ID can be found by selecting the VM within the vCenter inventory then examining browser URL for that VM-ID
      • The mac can be found by doing an 'Edit Settings' on the SRM VM in VC inventory and going to network details
      • You can get the network name there as well


  • Once the file has the correct SRM configuration parameters added, you're going to copy and paste the new information into the existing ovfEnv.xml file:
    • Copy all text (CTRL + A , CTRL + C)

    • Modify the file: 
      • vi /opt/vmware/etc/vami/ovfEnv.xml
      • Right-Click on the console to paste

    • Save and exit the file with the following command: 
      • :wq!
    • Run the following command to verify the changes saved:
      • cat /opt/vmware/etc/vami/ovfEnv.xml

Attachments

ovf.txt get_app