Integration

Table Of Contents
View Integration
52 VMware, Inc.
“Disable Automatic Network Label Assigments” on page 58
Obtain NIC and Network Label Information in a Configuration File
Before you can assign multiple network labels to a pool, you must obtain information about the NICs
configured on the template or parent virtual machine and the available network labels configured on the ESXi
hosts in the cluster on which the desktop pool will be deployed. This information is saved in a configuration
file that you use when you create the pool.
Use the
Export-NetworkLabelSpecForLinkedClone cmdlet to obtain the NICs on a parent virtual
machine and snapshot used to create a linked-clone pool.
Use the
Export-NetworkLabelSpecForFullClone cmdlet to obtain the NICs on a template used to
create a full clone pool.
These commands also perform the following operations:
Obtain the network labels configured in vCenter Server for all the ESXi hosts in a specified cluster
Set a specified maximum number of virtual machines that can be provisioned with IP addresses from each
network label
Export the list of NICs and network labels to a specified configuration file
Example of Obtaining NIC and Network Label Information
The following example obtains NICs from the Win7-Parent virtual machine and Snapshot1, and
network label information from
Cluster1. In this example, a maximum of 244 virtual machines can be
provisioned with IP addresses from each network label. The information is exported to the configuration file
C:/label.txt.
Export-NetworkLabelSpecForLinkedClone -vc_id 1a2b3c4d-5e6f -clusterPath
"/myresourcepool/host/Cluster1/" -parentVMPath
"/myresourcepool/vm/Win7-Parent" -parentSnapshotPath "/snapshot1"
-maxVMsPerNetworkLabel 244 -networkLabelConfigFile "C:/label.txt"
When you set the -maxVMsPerNetworkLabel parameter, allow a certain number of virtual machines for
overhead. For example, if a network label VLAN allows a maximum of 254 IP addresses to be assigned to
virtual machines, you might set the maximum to 244.
The Export-NetworkLabelSpecForFullClone cmdlet is similar to the cmdlet shown in the preceding
example, but it uses the -TemplatePath parameter to specify the template from which you will generate a full
clone pool.
For details about the cmdlet syntax and parameters, display the View PowerCLI help.
Contents of a Network Label Configuration File
The configuration file generated by the Export Network Label cmdlets contains the following sections. For a
sample configuration file, see “Example Network Label Configuration File” on page 53.
Enabled flag. This flag is set to enabled=true by default. Keep the flag set to true to allow View to
assign network labels to the pool.
Parameter Definition for NIC. Lists the NICs defined in vCenter Server on the template or the snapshot
of the parent virtual machine. Do not edit this section.
Parameter Definition for Network. Lists the network labels defined in vCenter Server for the ESXi hosts
in the cluster. Network labels are listed in alphabetical order. If a cluster uses standard network labels and
distributed virtual switch network labels, use only one type of label for a pool. Do not edit this section.
Network Label Attribute Definition. Lists the network labels associated with each NIC. The network
labels are commented out and the assignments are not functional. You must remove the comments (#
marks) from the appropriate network labels to allow them to be assigned to a desktop pool.