Missing OVF context can cause multiple problems when using vSphere Replication. These problems include, but are not limited to the following:
Bad exit code: 1.
VMware vSphere Replication 8.x
VMware vSphere Replication 9.0.2, 9.0.2.1, 9.0.2.2
The OVF context of the vSphere Replication embedded appliance might be lost or corrupted due to some of the following circumstances:
/opt/vmware/etc/vami/ovfEnv.xml file. The file should contain the following properties:evs:GuestApi/evs:URL
evs:GuestApi/evs:Token
evs:GuestApi/evs:X509Thumbprint
evs:VCenterApi/evs:IP
evs:VCenterApi/evs:X509Thumbprint
evs:VCenterApi/evs:HttpPort
evs:VCenterApi/evs:HttpsPort
evs:VCenterApi/evs:SelfMoRef
evs:VCenterApi/evs:AddressIf the /opt/vmware/etc/vami/ovfEnv.xml file is empty or does not contain some of the properties listed above or the vSphere Replication appliance is missing an OVF context.
Please follow these steps
cd /opt/vmware/etc/vami
mv ovfEnv.xml ovfEnv.xml.bkp
touch ovfEnv.xml; chmod 644 ovfEnv.xml
ls -l
-rw-r--r-- 1 root root 0 Aug 27 20:28 ovfEnv.xml
In vSphere Client UI
power off and on the vSphere Replication Appliance
Login to the vSphere Replication Appliance
cd /opt/vmware/etc/vami
ls -l
-rw-r--r-- 1 root root 2843 Aug 27 20:33 ovfEnv.xml
The OVF environment is restored and you can upgrade the vSphere Replication appliance.
Live Site Recovery 9.0.2 release notes about upgrade from 8.8
Upgrading vSphere Replication
Important: Before you initiate an upgrade, verify that the vSphere Replication appliance has an OVF environment, or context.
In vSphere Replication /opt/vmware/etc/vami/ovfEnv.xml file between </ve:EthernetAdapterSection> and </Environment> the following will update
<ve:vServiceEnvironmentSection xmlns:ve="http://www.vmware.com/schema/ovfenv" xm lns:evs="http://www.vmware.com/schema/vservice/ExtensionVService" ve:bound="true" ve:id="installation" ve:type="com.vmware.vservice.extension">
<evs:GuestApi>
<evs:URL>https://vc_name.doamin.tld/vsm/extensionService</evs:URL>
<evs:Token>3bxxx72xxx37xxx47xxx11xxx41xxxdcxxx73xxx</evs:Token>
<evs:X509Thumbprint>xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:ff:xx:xx:xx:xx:xx:xx</evs:X509Thumbprint>
</evs:GuestApi>
<evs:VCenterApi>
<evs:IP>x.x.x.x</evs:IP>
<evs:X509Thumbprint>xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:ff:xx:xx:xx:xx:xx:xx</evs:X509Thumbprint>
<evs:HttpPort>80</evs:HttpPort>
<evs:HttpsPort>443</evs:HttpsPort>
<evs:SelfMoRef>VirtualMachine:vm-##</evs:SelfMoRef>
<evs:Address>vc_name.doamin.tld</evs:Address>
</evs:VCenterApi>
</ve:vServiceEnvironmentSection>
<ve:vServiceEnvironmentSection xmlns:ve="http://www.vmware.com/schema/ovfenv" xm lns:evs="http://www.vmware.com/schema/vservice/ExtensionVService" ve:bound="true" ve:id="installation" ve:type="com.vmware.vservice.extension">
<evs:GuestApi>
<evs:URL>https://vc_name.doamin.tld/vsm/extensionService</evs:URL>
<evs:Token>3bxxx72xxx37xxx47xxx11xxx41xxxdcxxx73xxx</evs:Token>
<evs:X509Thumbprint>xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:ff:xx:xx:xx:xx:xx:xx</evs:X509Thumbprint>
</evs:GuestApi>
<evs:VCenterApi>
<evs:IP>xxxx:xxx:xxxx:xxxxx:x:x:xxxx:xxx</evs:IP>
<evs:X509Thumbprint>xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:ff:xx:xx:xx:xx:xx:xx</evs:X509Thumbprint>
<evs:HttpPort>80</evs:HttpPort>
<evs:HttpsPort>443</evs:HttpsPort>
<evs:SelfMoRef>VirtualMachine:vm-##</evs:SelfMoRef>
<evs:Address>vc_name.doamin.tld</evs:Address>
</evs:VCenterApi>
</ve:vServiceEnvironmentSection>