The VSAN Cmdlet functionality of this Fling has been integrated into a release of PowerCLI and due to this we recommend you use the latest supported version of PowerCLI, which can be downloaded here.
Aug 17, 2015

Is there any limitation in what guest vm can be enable as instant clone vm, because I have no problem setup an instant clone of a vCenter server and virtual esxi host (nested esxi host), but I am having trouble enable instant clone on the nsx manager guest vm.

PowerCLI C:\> $parentVM_nsx = Get-VM lab-nsx7

PowerCLI C:\> $parentVM_nsx

Name PowerState Num CPUs MemoryGB
—- ———- ——– ——–
lab-nsx7 PoweredOn 4 12.000

PowerCLI C:\> $parentForkVM_nsx = Enable-InstantCloneVM -VM $parentVM_nsx -guestUser “admin” -GuestPassword “Passw0rd123!” -Confirm:$false
Enable-InstantCloneVM : 8/18/2015 1:43:12 AM Enable-InstantCloneVM Guest Type and Guest OS Family
have no values for VM ‘lab-nsx7′
At line:1 char:21
+ $parentForkVM_nsx = Enable-InstantCloneVM -VM $parentVM_nsx -guestUser “admin” – …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidResult: (:) [Enable-InstantCloneVM], VimException
+ FullyQualifiedErrorId : Fling_InstantClone_GuestOperationsHelper_GetGuestType_UnknwnGuest,VMware.VimAu

Aug 17, 2015

I havent tried NSX specifically but it looks like it cant work out what the guest OS is, you may have to specify it to the Enable-InstantClone cmdlet using the GuestType Parameter

Aug 18, 2015

Hi Alan,

I got an error InvalidArgument when I added the GuestType parameter.

PowerCLI C:\> $parentForkVM_nsx = Enable-InstantCloneVM -VM $parentVM_nsx -guestUser "root" -GuestPassword “Passw0rd123!” -GuestType "SUSE Linux Enterprise 11 (64-bit)" -Confirm:$false
Enable-InstantCloneVM : A parameter cannot be found that matches parameter name 'GuestType'.
At line:1 char:107
+ ... d "Apple1995!" -GuestType "SUSE Linux Enterprise 11 (64-bit)" -Confirm:$false
+ ~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Enable-InstantCloneVM], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,VMware.VimAutomation.Extensions.InstantClone.Commands.E

PowerCLI C:\>

Aug 07, 2015

This seems to refuse to work for me sadly.

There are no errors throughout the powershell process, the VM just doesnt "boot". By this i mean the console window is black, i can't interact with the VM and the post script run doesnt seem to change the IP. I can see from the performance graph's some CPU cycles are occuring on the VM, but nothing on screen.

I've tried windows 7 and 8. Both exhibiting the same outcome.

Aug 17, 2015

When the VM has been marked as a parent you will correctly see that the VM has become a live template and you will experience the console being black. Once you then create the children you should be able to access these machines. The parent will stay unavailable until powered off/on.

Aug 18, 2015

interestingly it was the guests i couldnt open the console for. Turns out neither the older vSphere client nor the enhanced console would work, only the web based console would show the contents.

Any-who, with the web based console i could proceed.

Aug 26, 2015

Hi Andrew,

I had the same issue with the console. It only works through web client.

About scripts, rpctools didn't work for me with Windows OS. I changed it for vmtoolsd --cmd and works good.

Jose Luis Gomez

Aug 04, 2015

Can you show examples on how to use it?


Nov 01, 2013

Great stuff, and best of all, it's a module !