In my opinion Project Fargo a.k.a VMFork or Instant Clones is one of the coolest technologies announced last several years. You can find a lot information out there, that’s why I am not going in deep details about it and how it works. As a VDI engineer I am more curious of what level of intergration it has with VMware Horizon View at this stage of developing. VMware Fork is all about Instant VM clones, which is capable of applying OS customization (what else we may want for fast provisioning of virtual desktops). At this point the linked clones which are officially supported by Horizon View are those created by View Composer. Provisioning is fast, but if we can get it instantly instead of waiting for them several minutes … why not.
Currently Instant Clones are available only through PowerCLI and the PowerCLI extension V2 which you can download from VMware Flings website.
In my lab environment I have installed VMware PowerCLI 6.0 on Windows Server 2008R2, small vSphere 6 infrastructure, Horizon View 6.1.1 VDI and Windows7 x64 with installed latest View Agent. After downloading the zip file from the website above, unzip it and put it on C:\Program Files (x86)\VMware\Infrastructure\vSphere PowerCLI\Modules
Verifying if everything is fine could be done by typing Get-Command -Module VMware.VimAutomation.Extensions
Let’s start first with enabling instant clone for my Windows 7 VM which is already with a pre-loaded View Agent.
Enable-InstantCloneVM -VM "W7IC" -GuestUser "administrator" -GuestPassword "vmware1!"
After that we need to prepare a simple script like this:
1..4 | Foreach { $configSettings = @{ 'ipaddress' = "192.168.10.20$_"; 'netmask' = '255.255.255.0'; 'gateway' = '192.168.10.254'; } Write-Host "Creating Clone$($_)..." $childForkVm = New-InstantCloneVM -ParentVM 'W7IC' -Name "W7_VDI_IC$_" -ConfigParams $configSettings $childForkVm | Start-Vm -RunAsync | Out-Null }
This is a very basic experiment. If you want to try it as a PoC, it is better to have pre- and post- scripts prepared and run during the Instant clone VMs creation.
Here are our newly created Instant Clones
After that we need to create a Manual Pool in the Horizon View 6 and include all Instant Clones as a desktop sources, so we will be able to entitle those to particular users.
I’ll select Floating assignment since it is easier for managing.
We must use vCenter Virtual Machines as sources (Instant Clones)
Type ID and Name
Select all Instant Clones and add them to the Manual Pool
W7_VDI_IC1 was used from another pool and that’s why it does not appear in the list. Wait for 5-10 minutes so the View Agent will establish connection to the Connection Server and try to connect to it via Horizon View Client
Double click on the pool and you should be able to login on your Instant Clone Desktop.
Also you can check the connection in the View Administrator
Looks like the experiment is successful even though it is not officially supported. I am looking forward to see Instant Clones integrated with Horizon View in the future. It is definitely something which I would use in the future for my customers.
Nikolay Nikolov
Latest posts by Nikolay Nikolov (see all)
- Build a vRealize Orchestrator 7 (vRO) Cluster - February 13, 2017
- VMware vCenter Server Appliance 6.5 – Install and Configure - November 16, 2016
- Nutanix Upgrade fails at 93% - August 18, 2016
I was looking for integration:) Very good resource, thank you very much..
Pingback: VMware PowerCLI Instant Clone Lab - Virtualization Howto