Encrypted VMs With Persistent-Independent Disks Cannot Be Migrated After Changing KMS Source
search cancel

Encrypted VMs With Persistent-Independent Disks Cannot Be Migrated After Changing KMS Source

book

Article ID: 457649

calendar_today

Updated On:

Products

VMware vSphere ESXi VMware vCenter Server

Issue/Introduction

In VMware vSphere, encrypted virtual machines (VMs) fail to migrate after changing the Key Management Server (KMS) source. This migration failure persists even after performing both shallow and deep re-key operations.

Environment

VMware vSphere 8.0, 9.0, and 9.1

Cause

The affected virtual machines are configured with persistent-independent disks. Re-key operations are not supported on independent-persistent disks due to an VMDK restriction, which prevents the disks from being included in the snapshot part of the operation so they do not receive the new key.

Resolution

  1. Edit the settings of the affected virtual machine.
  2. Temporarily change the affected disk mode from independent-persistent to dependent.
  3. Perform the VM re-key/encryption operation again. Because the disk is now dependent, it will be included in the snapshot tree and should successfully receive the new key.
  4. Edit the VM settings and change the disk mode back to independent-persistent.

Additional Information

"Enabling or disabling simultaneous write protection provided by VMFS using the multi-writer flag"