Unable to restore VM with Native key provider enabled to different vCenter
vCenter Server 7.x
vCenter Server 8.x
Key ID and provider information are not pushed to the vCenter database. The key provider is not set default
1. Backup and restore the Key Providers from source vCenter to Destination
Restore a vSphere Native Key Provider Using the vSphere Client
2. Set the key provider as default ( Set it as default on the destination vCenter )
3. Validate the vCenter database with the below commands if the key ID updated to the database from the source vCenter to the destination vCenter
Connect to the database : psql -U postgres -d VCDB -h localhost
Run the below command
select id, dns_name, crypto_state, crypto_key_id, crypto_key_provider_id, crypto_enable from vpx_host where dns_name like '%<esxi-host-fqdn>%';