VMware Cloud Community
Vijay2027
Expert
Expert

Instant clone task on vSphere 6.7U1

Dear All,

I am looking for powercli script to trigger instant clone feature for non-frozen VM's in vSphere 6.7U1.

Referred the below link but I am not able to get this working on "non-frozen" VM.

https://www.virtuallyghetto.com/2018/04/new-instant-clone-architecture-in-vsphere-6-7-part-2.html

Was able to get this working by using vCenter MOB and Horizon but I am looking to use this feature using powercli. LucD

Thank you!!!

0 Kudos
4 Replies
LucD
Leadership
Leadership

Afaik, William's module InstantClone.psm1, handles both.

The function handles both cases (InstantCloneFrozen $true or $false) in the logic.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Vijay2027
Expert
Expert

Thank you LucD​  was able to implement instant clone

There are few limitations when we invoke a instant clone task on powered-on though:

The delta disk created on the source VM is not deleted when the child clone VM is deleted.

Is there a way we can remove the delta file(s) when it's associated VM(s) is deleted from inventory through powercli??

0 Kudos
LucD
Leadership
Leadership

Afaik the clone doesn't "know" for whom the delta disk was created.
You would have to keep track of that one way or the other.

Perhaps a Custom Attribute or a Tag on the clone?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

dbalcaraz
Expert
Expert

Hi Vijay2027 ,


Did you find any way to stop the freezing state in the source VM after the instant clone is performed?
I am trying to see how I can invoke a method to stop at least the freezing but no luck (I am a newbie trying to learn Smiley Happy )

-------------------------------------------------------- "I greet each challenge with expectation"
0 Kudos