"The operation is not supported on the object"."The operation is not supported on the object. Cannot enable host encryption for host X.X.local. Cannot apply encryption policy. You must set the default key provider. "
Error in vmware-dr logs of target SRM reports following error:
(/opt/vmware/support/logs/srm/vmware-dr.log)
2026-02-23T00: 43:44.800Z error vmware-dr [01341] [SRM@6876 sub=Recovery ctxID=#opID=#-#-#-#-#-test: 1a3c: fbee: fele] [#-#-#-#-#. failoverOrchJob] Replication reported failure for VM Z[null], the vm will not be recovered: (vmodl.fault.NotSupported) {
--> faultCause = (vmodl . MethodFault) null,--> faultMessage = (vmodl. LocalizableMessage) [--> (vmodl.LocalizableMessage) {--> key = "com.vmware.vim.vpxd.encryption.noDefaultKmipServer",--> arg = <unset>,--> message = "Cannot apply encryption policy. You must set the default key provider."--> },--> (vmod1.LocalizableMessage) {--> key = "com.vmware.vim.vpxd.encryption.hostEncryptionNotEnabled",--> arg = (vmodl. KeyAnyValue) [--> (vmod1. KeyAnyValue) {--> key = "host",--> value = "X.X. local"--> }--> ], --> message = "Cannot enable host encryption for host X.X.local"--> }--> ]--> msg = "The operation is not supported on the object."
The issue occurs as Target vCenter has its Native Key Provider not set as 'Default' unlike the Source vCenter's Native Key Provider.
vSphere Client > Configure > Key Providers > Select configured 'Naive key Provider' > Click on 'Set As Default'