Integration

Table Of Contents
Procedure
u
Use a View PowerCLI cmdlet to deploy the desktop pool.
Option Action
Deploy a linked-clone pool
Run the Add-AutomaticLinkedClonePool cmdlet and specify the path to
the network label configuration file with the -NetworkLabelConfigFile
parameter.
Deploy a full-clone desktop pool
Run the Add-AutomaticPool cmdlet and specify the path to the network
label configuration file with the -NetworkLabelConfigFile parameter.
Example: Linked-Clone Desktop Pool Deployment
In this example, the Add-AutomaticLinkedClonePool cmdlet creates a linked-clone pool named
POOL_NAME and assigns the network labels in the network label configuration file named label.txt file.
Add-AutomaticLinkedClonePool -Pool_id POOL_NAME -NamePrefix NAME_PREFIX -Vc_id
2162aa44-e99c-4f1a-875d-dd295681d2ca -Persistence Persistent
-VmFolderPath "/resourcepool/vm/Discovered virtual machine"
-ResourcePoolPath "/resourcepool/host/Cluster1/Resources/Cluster1_pool1"
-ParentVmPath "/resourcepool/vm/Win7-Parent" -ParentSnapshotPath
"/780936_agent/noServiceRestart/updatedVPListener" -DatastoreSpecs
"[Conservative,replica]/resourcepool/host/Cluster1/Cluster1_Replica1;[Mod
erate,OS,data]/resourcepool/host/Cluster1/Desktop_FC_9;[Moderate,OS,data]
/resourcepool/host/Cluster1/Desktop_FC_8;[Moderate,OS,data]/resourcepool/
host/Cluster1/Desktop_FC_7” -Composer_ad_id
1a2b3c4d-5d6e-7f-1234-1234abcd -UseUserDataDisk $false -UseTempDisk
$false -MinimumCount 2000 -MaximumCount 2000 -HeadroomCount 1500
-PowerPolicy AlwaysOn -SuspendProvisioningOnError $false
-NetworkLabelConfigFile "C:/label.txt"
Assigning Network Labels
As View provisions virtual machines in a pool, it assigns network labels to the NICs in the virtual machines.
When the maximum number of virtual machines to be assigned a certain network label is reached, View
begins provisioning from the next network label.
After View assigns a network label to a virtual machine, it does not change the assignment.
If virtual machines in a pool are deleted, the associated network label assignments are freed and can be
assigned to any newly provisioned virtual machines in the pool.
View Composer refresh operations do not affect network label assignments. Virtual machines continue to
receive the network labels that were assigned to them when they were first provisioned.
Preserving Network Labels During Recompose and Rebalance Operations
During View Composer recompose and rebalance operations, View attempts to ensure that the network
label of each NIC attached to each linked-clone desktop is preserved when a linked clone inherits new NICs
from a new base image. View preserves the network label of a NIC that was in place before the recompose
or rebalance operation as long as the new base image has an available NIC configured with the same type of
network switch. You can configure a NIC with a standard network switch or distributed virtual network
switch.
The following examples describe the rules that govern network label preservation during recompose and
rebalance operations.
n
If both the original linked-clone desktop and the new base image have one NIC configured with a
standard network switch, the network label and MAC address are preserved.
Chapter 3 Using View PowerCLI
VMware, Inc. 55