[ <task-id> ] Unable to relocate VM.- Task failed, vc-id={<vc-id>}, task-moref={ManagedObjectReference: type = Task, value = task-<task-id>, serverGuid = null}, error={A specified parameter was not correct: relocateSpec.diskLocator.profile}- The operation could not be performed because the argument is invalid. A specified parameter was not correct: relocateSpec.diskLocator.profileInternal Server Error - A specified parameter was not correct: relocateSpec.profile/opt/vmware/vcloud-director/logs/vcloud-container-debug.log| ERROR | Backend-activity-pool-### | MoveVAppActivity | [Activity Execution] Linking VMs to generated vApp failed - Handle: urn:uuid:<handle uuid>, Current Phase: MoveVAppActivity$UndeployOriginalVAppPhase | requestId=<request id>,request=POST https://example.com/api/vdc/<org vdc id>/action/moveVApp,requestTime=<time>,remoteAddress=#.#.#.#:###,userAgent=python-requests/2.26.0,accept=application/*;version 37.1 vcd=<vcd id>,task=<task id> activity=(com.vmware.vcloud.backendbase.management.system.TaskActivity,urn:uuid:<task id>) activity=(com.vmware.vcloud.vdc.impl.MoveVAppActivity,urn:uuid:<activity id>)java.util.concurrent.ExecutionException: com.vmware.vcloud.vdc.impl.LinkVMsToTargetVAppActivity$LinkVMsToVAppException: VM <vm name> (<vm id>) failed to update and has been rolled back. null Task failed, vc-id={<vc id>}, task-moref={ManagedObjectReference: type = Task, value = task-###, serverGuid = null}, error={A specified parameter was not correct: relocateSpec.profile} at com.vmware.vcloud.activity.toolkit.AbstractToolkitActivity$BasePhase.finish(AbstractToolkitActivity.java:196) at com.vmware.vcloud.vdc.impl.LinkVMsToTargetVAppActivity$CleanupAutoManagedVAppsPhase.invoke(LinkVMsToTargetVAppActivity.java:756)
...
...Caused by: com.vmware.vcloud.vdc.impl.LinkVMsToTargetVAppActivity$LinkVMsToVAppException: VM <vm name> (<vm id>) failed to update and has been rolled back. null Task failed, vc-id={<vc id>}, task-moref={ManagedObjectReference: type = Task, value = task-###, serverGuid = null}, error={A specified parameter was not correct: relocateSpec.profile}
VMware Cloud Director 10.6.x
VMware vCenter Server
This Issue happens when either the VM Home storage policy or the Hard Disk storage policy on the concerned VM is set to either None or Datastore Default in vCenter and does not match the Storage Policy set on the VM in VCD.
To resolve the Issue change the VM Home/Hard Disk Policy in vCenter to match the Storage Policy from the VCD side.
Name in vSphere" row.return.