com.vmware.vrealize.lcm.common.exception.userinput.VirtualMachineNotFoundException: No VM found in the vCenter with HostName : <AriaSuiteLifecycleFQDN> and morefID : vm-<Integer> at com.vmware.vrealize.lcm.drivers.vsphere65.vlsi.guest.VsphereDiskManager.expandExistingDiskOfVM(VsphereDiskManager.java:67) at com.vmware.vrealize.lcm.plugin.lcmplugin.core.task.LcmVaExtendDiskTask.execute(LcmVaExtendDiskTask.java:96) at com.vmware.vrealize.lcm.automata.core.TaskThread.run(TaskThread.java:62) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.base/java.lang.Thread.run(Unknown Source)
To resolve the issue correct the stale moref entry in the /opt/vmware/etc/vami/ovfEnv.xml file:
1. Snapshot the Aria Suite Lifecycle appliance.
2. Confirm the correct moref id of the Aria Suite Lifecycle appliance in vCenter. You can browse to the Aria Suite lifecycle appliance in the vSphere client and check the moref in the browser url:
3. Open the /opt/vmware/etc/vami/ovfEnv.xml file in a text editor and change the vCenterId value to match the moref id documented step 2:
vi /opt/vmware/etc/vami/ovfEnv.xml
To exit the text editor and save the changes type:
:wq!
4. Test again the failing operation, it should now succeed.