When attempting to relocate a RT virtual machine between clusters using a shared swing / target datastore, the following error may be encountered:
Error:
Unable to relocate VM - Underlying system error: The datastore is not compatible with the virtual machine because of constraint softconstraint-SOFT_CONSTR_STORAGE_PROFILE violation.
This issue prevents the RT VM from being relocated as intended.
VMware Cloud Director Availability 4.x
VMware Cloud Director 10.x
This error typically occurs when the target datastore (in this case, the swing / target datastore) is not associated with a storage policy compatible with the VM’s current storage requirements.
More specifically:
The target datastore is not associated with the required storage policy (also known as a storage profile).
VMware Cloud Director enforces storage policy constraints, so it blocks relocation operations to incompatible datastores.
The swing datastore may not be tagged appropriately or not mapped in the relevant Provider VDC or Organization VDC.
To resolve the issue and proceed with the RT VM relocation via VMware Cloud Director Availability.
Step 1. Verify Storage Policy in vCenter
Step 2. Map Storage Policy in VMware Cloud Director
Step 3. Confirm target Datastore Availability
Step 4. Tag Datastore and Update VCD Configuration