Integration

Table Of Contents
VMware, Inc. 55
Chapter 3 Using View PowerCLI
####nic2.network07.maxvm=244
nic2.network08.maxvm=244
nic2.network09.maxvm=244
####nic2.network10.maxvm=244
Deploy a Desktop Pool with Network Label Assignments
To create an automated desktop pool that can use multiple network labels, use the
Add-AutomaticLinkedClonePool cmdlet for linked clone pools or the Add-AutomaticPool cmdlet for full
clone pools.
Use the -NetworkLabelConfigFile parameter with the Add Pool cmdlet to assign the network labels in a
specified configuration file to the pool. Specify the path to the configuration file with the pathargument:
-NetworkLabelConfigFile “path.
The -NetworkLabelConfigFile parameter works the same way for linked clone and full clone pools.
The following example creates a linked clone pool, POOL_NAME, and assigns the network labels in the
label.txt file to the pool.
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"
Operation of Network Label Assignments
As View provisions virtual machines in a pool, network labels are assigned 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 a network label is assigned to a virtual machine, View 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.
Network Label Preservation During Recompose and Rebalance Operations
During View Composer recompose and rebalance operations, a best effort is made 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. (A NIC can be configured with a standard network switch or distributed virtual network
switch.)
The following examples illustrate the rules governing network label preservation during recompose and
rebalance operations:
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.