One: Instant cloning introduction
For an introduction to instant cloning, refer to the following articles in the VMware China website
http://mp.weixin.qq.com/s?__biz=MjM5MDcyNjM4MQ==&mid=402783126&idx=1&sn= 79d224a2709e1ae834625e37b53b672d&scene=4#wechat_redirect
The following sections are excerpts of the article
The instant delivery feature was first previewed at the VMworld conference in 2014, when CTO Kit Colbert of the EUC department announced that project Fargo,fargo was the project designator for instant delivery technology. The Vmfork (Instant Clone) feature was then introduced in VSphere 6.1, released in the 4 quarter of 2015, as one of the core features of instant delivery. The most suitable scenario for Instant Clone is desktop virtualization, and Horizon 7 should be the first application to use the technology.
The traditional virtual machine is started from the hard disk, when the virtual machine started at the same time, often caused by the start of storms and memory storms.
L START the storm refers to a lot of virtual machine startup, we all have to read the hard disk, resulting in intensive disk read operations, resulting in the competition of read operations, resulting in decreased overall performance of the system, virtual machine start very slow. The usual solution is to use SSDs as a cache to improve the performance of read operations.
Memory storm refers to a lot of virtual machine start to apply for a lot of memory, resulting in Hypervisor in a short period of time to dispatch memory of great pressure.
Instant cloning (Instant clone) is an innovative virtual machine startup technology that no longer starts a VM from disk mirroring, but rather creates a new false machine directly from a running parent virtual machine in the system (vmfork). False machine does not need to have a physical image, in the beginning to reuse the memory of the parent VM, so the false machine is identical to the parent virtual machine. This is especially true for desktop virtualization scenarios, because most desktop systems have the same operating system, and the software is almost the same, the office environment is office, the call center is the agent service software, the difference is only the personal data and Windows environment settings.
VSphere makes full reuse of the memory image of the original parent virtual machine when it vmfork out of the child virtual machine, and only when the memory in the child virtual machine is written, a copy is created for the part of the memory that was changed, and the copy is written in the replica, which is called "write-only" (Copy-on-write). Each virtual machine's memory is actually by the parent virtual machine's memory and copy-on-write memory splicing, COW that part of the memory is each virtual machine exclusive.
650) this.width=650; "title=" clip_image001 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image001 "src=" Http://s3.51cto.com/wyfs02/M02/7D/F1/wKioL1bzkMGyaOAyAAGjJHOjLb8286.png "height=" 366 "border=" 0 "/ >
VSphere makes full reuse of the memory image of the original parent virtual machine when it vmfork out of the child virtual machine, and only when the memory in the child virtual machine is written, a copy is created for the part of the memory that was changed, and the copy is written in the replica, which is called "write-only" (Copy-on-write). Each virtual machine's memory is actually by the parent virtual machine's memory and copy-on-write memory splicing, COW that part of the memory is each virtual machine exclusive.
II: Immediate cloning requirements and restrictions
To use the Instant clone feature, Vsphere has the lowest version: Vsphere 6.0 U1 (mentioned above also mentions that the functionality of Vmfork for instant cloning is not released until vsphere 6.0 U1)
L RELEASE the virtual machine hardware version must be the latest 11
L VMware recommends using distributed switches to publish instant-clone desktops
L Make sure view Storage accelerator is enabled
• Desktop pool transparent page sharing with Instant Clone publishing is automatically turned on
L OS instant cloning only supports Windows 7 and Windows 10 does not support windows8/8.1
650) this.width=650; "title=" clip_image002 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image002 "src=" Http://s3.51cto.com/wyfs02/M00/7D/F4/wKiom1bzkCmyXTzRAABLOQrgzok001.png "height=" "border=" 0 "/ >
Limiting factors:
L Instant clone only supports publishing terminal desktop, RDS host does not support
L Instant clone only supports floating desktop publishing mode
L Instant clone does not support persistent disk (persistent disks), which can be achieved through the app volume
L Virtual Volumes, VAAI, and native NFS snapshots are not supported
L do not support Microsoft's Sysprep way to customize desktop
L Do not support POWERCLI
L do not support local disk
L Do not support 3D graphics
L do not support persona Management
L Do not support IPV6
L Instant cloning does not support overwriting existing Active Directory computer accounts
L
Three: Configure Instant cloning
According to the official introduction of the article the best match for instant cloning is "instant clone +app Volume +uem" Of course, in fact, I think it can be paired with Microsoft Group Policy, folder redirection and so on. This aspect collocation still waits for the later discussion and the study. This article focuses on the configuration of instant cloning.
1: Activate instant clone license
To use the instant cloning feature, the first version to be satisfied, that is, to license activate the function;
650) this.width=650; "title=" clip_image003 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image003 "src=" Http://s3.51cto.com/wyfs02/M01/7D/F4/wKiom1bzkCqw4FZlAAByZ2Z7f7M964.png "height=" 292 "border=" 0 "/ >
2: Set up an instant Clone domain administrator
In the Horizon 7 Administrator, you will find an option for an instant Clone domain administrator, which controls the permissions of the published desktop on the Active Directory, as an example we use a domain administrator, and in a production environment we recommend strict delegation of authority as required by the official requirements.
650) this.width=650; "title=" clip_image004 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image004 "src=" Http://s3.51cto.com/wyfs02/M00/7D/F4/wKiom1bzkCyDfCMJAAEF7iC6eB8014.png "height=" 467 "border=" 0 "/ >
Detailed permission to access the official information:
http://pubs.vmware.com/horizon-7-view/index.jsp#com.vmware.horizon-view.installation.doc/ Guid-e91881f4-f8c0-48a5-a1a4-61577e287e29.html
650) this.width=650; "title=" clip_image005 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image005 "src=" Http://s3.51cto.com/wyfs02/M01/7D/F4/wKiom1bzkC2AbbMMAADKQPXkKL4394.png "height=" 239 "border=" 0 "/ >
3: Prepare the template
A VMware Horizon Instant clone agent is created when the view agent is installed, which must be selected if the template is used to publish Instant clone's desktop. As prompted on the right, the VMware Horizon View composer option cannot be selected after VMware Horizon Instant clone is selected, which means that the two options are conflicting.
650) this.width=650; "title=" clip_image006 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image006 "src=" Http://s3.51cto.com/wyfs02/M00/7D/F1/wKioL1bzkMvhIDvyAASZODQ_IdY482.png "height=" 480 "border=" 0 "/ >
It is important to note that the hardware version of the template virtual machine must be the latest 11;
650) this.width=650; "title=" clip_image007 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image007 "src=" Http://s3.51cto.com/wyfs02/M01/7D/F1/wKioL1bzkMzDGJDFAAB9arF9qaM776.png "height=" 162 "border=" 0 "/ >
Otherwise, the following prompts will appear when you publish the desktop pool:
650) this.width=650; "title=" clip_image008 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image008 "src=" Http://s3.51cto.com/wyfs02/M02/7D/F4/wKiom1bzkDSA_1RmAABGJe-6P4k727.png "height=" 171 "border=" 0 "/ >
4: Publish instant-clone desktop pool
When you add Vcetner server, you can see that there is one more setting in the advanced settings below on the number of instant clone concurrency
650) this.width=650; "title=" clip_image009 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image009 "src=" Http://s3.51cto.com/wyfs02/M00/7D/F4/wKiom1bzkDbycD9YAAE32jejtTQ152.png "height=" 401 "border=" 0 "/ >
In the storage settings this remember to tick "Enable view Storage Accelerator"
650) this.width=650; "title=" clip_image010 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image010 "src=" Http://s3.51cto.com/wyfs02/M02/7D/F4/wKiom1bzkDfQm_krAAE412NFKXo759.png "height=" 401 "border=" 0 "/ >
Open the Desktop Pool Creation wizard, only select "Auto Desktop Pool" in type
650) this.width=650; "title=" clip_image011 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image011 "src=" Http://s3.51cto.com/wyfs02/M00/7D/F4/wKiom1bzkDiibw-hAADiIIQdsHA214.png "height=" 484 "border=" 0 "/ >
In a user-assigned type; Instant clone delivered desktop pool must select "Floating"
650) this.width=650; "title=" clip_image012 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image012 "src=" Http://s3.51cto.com/wyfs02/M01/7D/F4/wKiom1bzkDjSaTbJAAC3mRoHswo551.png "height=" 484 "border=" 0 "/ >
In the vcenter server option, select Instant Clone and specify the corresponding vcenter server
650) this.width=650; "title=" clip_image013 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image013 "src=" Http://s3.51cto.com/wyfs02/M01/7D/F1/wKioL1bzkNKBVLg2AAEfsivsJ2A558.png "height=" 484 "border=" 0 "/ >
Specify the Desktop pool identity
650) this.width=650; "title=" clip_image014 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image014 "src=" Http://s3.51cto.com/wyfs02/M02/7D/F4/wKiom1bzkDuTtij9AADjTfXDe6Q199.png "height=" 484 "border=" 0 "/ >
There are several feature changes in the desktop pool settings, noting that one is called "Allow users to start separate sessions from different client devices";
650) this.width=650; "title=" clip_image015 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image015 "src=" Http://s3.51cto.com/wyfs02/M00/7D/F1/wKioL1bzkNSQe0n3AAGCQTvLxA4005.png "height=" 480 "border=" 0 "/ >
The new remote display protocol Vmwaer Blast is also an important update in Horizon 7, and you can see that there is more than one display protocol available in the desktop pool settings, and the following 3D renderers are also enhanced, but not available in this scenario.
650) this.width=650; "title=" clip_image016 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image016 "src=" Http://s3.51cto.com/wyfs02/M01/7D/F4/wKiom1bzkD3hONjlAAE_foXvg_E779.png "height=" 484 "border=" 0 "/ >
In the provisioning settings, in addition to the need to be aware of the provisioning schedule, considering the principle of instant cloning, the best collocation option for individuals is to "provision computers on demand", which enables fast, dynamic on-demand desktop delivery with this option paired with the number of standby (powered on) computers.
Example: In the following settings, the desktop pool will first provision a desktop waiting for users to connect, when there are users connected to the desktop, the desktop pool and instant cloning to quickly build a new desktop to wait for new users to connect, up to 10 desktops can be generated, and is randomly generated dynamically, The desktop is also automatically deleted when the user logs off the desktop.
650) this.width=650; "title=" clip_image017 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image017 "src=" Http://s3.51cto.com/wyfs02/M00/7D/F1/wKioL1bzkNejuB9GAAEwjD-14ZA655.png "height=" 484 "border=" 0 "/ >
Because the environment is paired with Vsan, select "Use VMware Virtual SAN" here
650) this.width=650; "title=" clip_image018 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image018 "src=" Http://s3.51cto.com/wyfs02/M02/7D/F4/wKiom1bzkD-BI8-3AACupqd8gnM853.png "height=" 484 "border=" 0 "/ >
In vcenter settings, make sure that the parent virtual machine is selected above with the "VMware Horizon Instant Clone" option template and the snapshot selected, and the other settings are selected according to the actual selection
650) this.width=650; "title=" clip_image019 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image019 "src=" Http://s3.51cto.com/wyfs02/M00/7D/F4/wKiom1bzkEDxdX5JAAD34mpt3Wg934.png "height=" 484 "border=" 0 "/ >
Specify the ad path for the associated computer account, and note that the path here should correspond to the "Instant Clone domain Administrator" permission mentioned earlier in the article
650) this.width=650; "title=" clip_image020 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image020 "src=" Http://s3.51cto.com/wyfs02/M01/7D/F4/wKiom1bzkEHzIekPAAC9WezhzAE267.png "height=" 484 "border=" 0 "/ >
Confirm the configuration, complete the publishing of the desktop pool and authorize user access on demand
650) this.width=650; "title=" clip_image021 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image021 "src=" Http://s3.51cto.com/wyfs02/M01/7D/F4/wKiom1bzkEOz-vm-AAFXDnzooc0031.png "height=" 484 "border=" 0 "/ >
You can view the progress of the image by clicking on the Desktop Pool summary, the status of the publication in the first
650) this.width=650; "title=" clip_image022 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image022 "src=" Http://s3.51cto.com/wyfs02/M02/7D/F4/wKiom1bzkESB3QLtAAFLQks-9U4070.png "height=" 484 "border=" 0 "/ >
We can also view the approximate flow of provisioning through the Vcenter task queue
The following four new folders are automatically generated to hold related objects
Cloneprepinternaltemplatefolder
Cloneprepparentvmfolder
Cloneprepreplicavmfolder
Cloneprepresyncvmfolder
We recommend that you do not change, move, delete the four folders, leave the same, and when you delete the desktop pool, this folder and the following virtual opportunity has a certain delay time, usually 5 minutes, sometimes 30 minutes, it is recommended to delete the desktop pool when the system automatically delete the following four folders.
650) this.width=650; "title=" clip_image023 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image023 "src=" http://s3.51cto.com/wyfs02/M00/7D/F1/wKioL1bzkN6yDuWBAAELSDHMVLo647.png "height=" 226 "border=" 0 "/ >
Then the system is roughly the following process
One: Clone template virtual machine generates a virtual machine named Cp-template at the beginning
Two: Generate a snapshot for the beginning of the cp-template virtual machine
Three: Generate a virtual machine with the beginning named Cp-replica by the cp-template virtual machine
Four: Generate three virtual machines starting with cp-parent by starting with the Cp-replica virtual machine clone
V: Eventually the specified number of VMS are generated with the naming rules set by the desktop pool, in this case Instant-1
650) this.width=650; "title=" clip_image024 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image024 "src=" Http://s3.51cto.com/wyfs02/M01/7D/F4/wKiom1bzkEmhY0GuAAOCuxxHDJY565.png "height=" 447 "border=" 0 "/ >
After creation, it can be seen through vcenter that it creates the following virtual machines altogether, where the two VMS beginning with Cp-template, Cp-replica are turned off and non-editable, and the first 3 virtual machines in Cp-parent are turned on While Instant-1 is the desktop that receives end-user connections
650) this.width=650; "title=" clip_image025 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image025 "src=" Http://s3.51cto.com/wyfs02/M01/7D/F1/wKioL1bzkOOT1hpAAADiHcK7Z1A362.png "height=" 169 "border=" 0 "/ >
Finally, the view status in the desktop pool is returned, its status has changed to "published" and 1 VMs are available.
650) this.width=650; "title=" clip_image026 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image026 "src=" Http://s3.51cto.com/wyfs02/M02/7D/F1/wKioL1bzkOSg_GzbAAB7xEcND6c346.png "height=" 301 "border=" 0 "/ >
Since the instant cloning of a big buy is fast, I also deliberately observed the time from the task of creating a folder to the last desktop is available for a total of 6 minutes and 46 seconds (13:29:33-13:36:19), so that at the beginning of the creation of the desktop pool and linked to the clone mode time gap is not big, What it really claims to be fast is to create a desktop in the post and make it last available at this time.
650) this.width=650; "title=" clip_image027 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image027 "src=" Http://s3.51cto.com/wyfs02/M00/7D/F5/wKiom1bzkE_yWtA0AAKI3pTEl-8491.png "height=" 237 "border=" 0 "/ >
After I log on to the desktop through an authorized user, the system will automatically regenerate into a new VM to wait for the user to connect, according to the settings of the desktop pool; the whole process I tried several times and the stopwatch to calculate the time, the desktop from scratch to the final usable average of 20 seconds
650) this.width=650; "title=" clip_image028 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image028 "src=" Http://s3.51cto.com/wyfs02/M01/7D/F1/wKioL1bzkOnRdIMIAACH1UoOR8g869.png "height=" "border=" 0 "/ >
650) this.width=650; "title=" clip_image029 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image029 "src=" Http://s3.51cto.com/wyfs02/M01/7D/F5/wKiom1bzkFGQ5HzMAAAeXCFUv_Y819.png "height=" border= "0"/ >
When I log off the connected user from the desktop, the status of the desktop pool can also be seen to automatically delete the desktop
650) this.width=650; "title=" clip_image030 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image030 "src=" Http://s3.51cto.com/wyfs02/M01/7D/F1/wKioL1bzkOqywm29AAAVTCyCzIc842.png "height=" "border=" 0 "/ >
In the end it will keep only 1 virtual machines available based on the settings of the desktop pool
650) this.width=650; "title=" clip_image031 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image031 "src=" Http://s3.51cto.com/wyfs02/M02/7D/F5/wKiom1bzkFKzkf6hAAARgbzWB7Q088.png "height=" "border=" 0 "/ >
problem: after a few simple tests, it was found that several virtual machines that started with cp-parent could easily trigger a "virtual machine memory Usage" alert, which would not disappear for a long time without a user connection.
650) this.width=650; "title=" clip_image032 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "Alt=" Clip_ image032 "src=" Http://s3.51cto.com/wyfs02/M01/7D/F5/wKiom1bzkFLzKv9QAAC7vxbLWFM096.png "height=" "border=" 0 "/ >
650) this.width=650; "title=" clip_image033 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "alt=" clip_image033 "src=" Http://s3.51cto.com/wyfs02/M00/7D/F1/wKioL1bzkOzz8VuAAACDTlUZXYs074.png "height=" 109 "border=" 0 "/>
This article is from the "Green Maple Mouth" blog, please be sure to keep this source http://huanwenli.blog.51cto.com/2848240/1754745
VMware Horizon 7 new features-Instant cloning exploration