When attempting to remove a hard disk from the virtual machine, an error message stating “Invalid configuration” is encountered.
The error indicates that one of the parent disks is included in a snapshot of the virtual machine.
"Invalid configuration for device '0'. Cannot remove virtual disk from the virtual machine because it or one of its parent disks is part of a snapshot of the virtual machine"
VMware vSphere ESXi 6.x
VMware vSphere ESXi 7.x
VMware vSphere ESXi 8.x
The affected VM will reference the snapshot vmdk. It's a recognized issue that a snapshot VMDK cannot be deleted without consolidation if one or more of its parent disks are included in the virtual machine's snapshot.
First, we need to consolidate the snapshots of the virtual machine.
Consolidation integrates the changes between snapshots and the previous delta disks into the base parent disk, merging them with the base virtual machine disk.
Once the consolidation is complete, we will be able to successfully remove the disk from the virtual machine.