This issue is resolved in vSphere 6.5 U3 / vSphere 6.7 U2 / vSphere 7.0. available at
VMware download .
Workaround:
To workaround this issue:
There are two ways to manually remediate the affected VM. But, it is advised to upgrade to recommended patch release.
Solution 1: [Re-apply storage policy]
- Ensure the VM is powered-off.
Note: Make a note of the current configuration of each disk associated with the VM (i.e. whether encrypted or not).
- Unregister the VM from vCenter.
- Re-register the VM in vCenter back to the same host as before.
- Re-apply the encryption policy (e.g. “VM Encryption Policy”) to the VM Home and to each of the disk which are intended to be encrypted.
Note: The .vmx file now must be re-encrypted. Specifically, 'dataFileKey' should not be present and instead we must have 'encrypted.keySafe'. The .vmx file uses a new/different key that the one that was used before.
Solution 2: [Move all disks]
- Ensure the VM is powered-off.
- Create a new encrypted VM with no disks.
Note:similar to the original VM.
- Remove all the disks from the old VM, and attach them to the new VM. The storage policy of each disk must remain the same as before.
Note: The .vmx file now must be re-encrypted. Specifically, 'dataFileKey' should not be present and instead we must have 'encrypted.keySafe'. The .vmx file uses a new/different key that the one that was used before.