Error: "Invalid virtual machine configuration. Cannot configure the virtual machine encryption to use keys from different types of key providers." while renaming a Named Disk
search cancel

Error: "Invalid virtual machine configuration. Cannot configure the virtual machine encryption to use keys from different types of key providers." while renaming a Named Disk

book

Article ID: 438013

calendar_today

Updated On:

Products

VMware Cloud Director

Issue/Introduction

  • Unable to rename an encrypted Named Disk with the following error at the vCenter level:

    Invalid virtual machine configuration. Cannot configure the virtual machine encryption to use keys from different types of key providers. Retry the configuration using the key provider type currently used by the virtual machine

  • The vCenter cluster has a default Native Key Provider other than the Key Management Server (KMS) used by Cloud Director. 

  • The named disk has been attached and detached from an encrypted VM.

Environment

VMware Cloud Director 10.6.1.2

Cause

When an encypted named disk is first created, a shell VM is provisioned using the corresponding key from the Key Provider configured in VCD. When that named disk is attached to an encrypted VM, the shell VM is deleted.
However, upon detaching the named disk from the encrypted VM, the shell VM is recreated. During this specific detachment workflow, VCD fails to set the respective key from the Key Provider from VCD and the shell VM is created using the default Key Provider set on the vCenter instead.

Resolution

This is a known issue affecting VMware Cloud Director 10.6.x.
Currently, there is no resolution.

Subscribe to this knowledge article to get updates on this issue.