How to promote the online linked clone vm disks?

This post was originally published on this site

We are facing an issue to promote the online linked clone vm disks on vCenter.

Linked clone vm is in power on state and it’s parent vm is in power off state.

We are using vSphere PromoteDisks() api to promote the linked clone vm.

 

# Executing the following command using PowerCLI:

PS C:WINDOWSsystem32> $LinkedVM.ExtensionData.PromoteDisks($true, $null);

# Exception :

disk ‘[datastorename] link1/link1_1.vmdk’ is only supported on native unmanaged linked clone disks.”

At line:1 char:1

+ $LinkedVM.ExtensionData.PromoteDisks($true, $null);

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException

    + FullyQualifiedErrorId : VimException

 

One of the VMware KB articles mentions that “To promote the disks of a powered on VM, the VM cannot have snapshots.”,

https://vdc-repo.vmware.com/vmwb-repository/dcr-public/eda658cb-b729-480e-99bc-d3c961055a38/dc769ba5-3cfa-44b1-a5f9-ad807521af19/doc/vim.VirtualMachine.html#promoteDisks

In our case linked clone is in power on state and is not having any snapshot.

Goal is to promote the online linked clone vm.

So can we promote the online linked clone vm? What are the prerequisites for it?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.