vRealize Automation 网络自定义属性可为计算机上的特定网络设备指定配置。

网络分配是在计算机分配期间执行的。vRealize Automation 将从蓝图检索网络信息。如果要分配多个网络,请在计算机蓝图上使用 VirtualMachine.NetworkN.Name 自定义属性。如果不提供自定义属性,则分配过程将仅分配一个通过结合循环法与选定预留而选择的网络。

注:

除以下三个属性外,表中的其他属性不适用于 Amazon Web Services:

  • agent.download.url

  • software.agent.service.url

  • software.ebs.url

对于没有网络安全选项卡的计算机组件,您可以在设计画面中相应的属性选项卡添加网络和安全性自定义属性,例如 VirtualMachine.Network0.NameNSX 网络属性、安全属性和负载平衡器属性仅适用于 vSphere 计算机。

注:

不支持指向按需网络的网络特定自定义属性。例如,不能为按需 NAT 和按需路由网络组件使用网络自定义属性,如 VirtualMachine.Network0.NetworkProfileName

默认情况下,计算机的 VirtualMachine.Network0.Name 属性中配置了一个网络设备。您可以使用自定义属性 VirtualMachine.NetworkN.Name(其中 N 是网络编号)配置其他网络设备。

网络属性的编号必须是从 0 开始的连续数字。例如,如果仅指定了自定义属性 VirtualMachine.Network0VirtualMachine.Network2,则属性 VirtualMachine.Network2 将被忽略,因为未指定前一个网络 VirtualMachine.Network1

Although general support for VMware vCloud ® Networking and Security ™ 5.5.x (vCNS) ended in September 2016, the VCNS custom properties continue to be valid for VMware NSX ™ purposes. See the VMware Knowledge Base article End of Availability and End of General Support for VMware vCloud Networking and Security 5.5.x (2144733) at http://kb.vmware.com/kb/2144733 for more information.

表 1. 网络配置的自定义属性

自定义属性

描述

agent.download.url

使用端口转发时,指定 Amazon AWS 通道计算机的专用 IP 地址和软件代理文件的端口,例如:https://Private_IP:1443/software-service/resources/nobel-agent.jar

您可以把该属性以及 software.agent.service.urlsoftware.ebs.url 一起添加到预留或计算资源端点中。在使用 PAT 或 NAT 和端口转发时,您也可以利用此属性来指定专用地址和端口。

software.agent.service.url

使用端口转发时,指定 Amazon AWS 通道计算机的专用 IP 地址和 vRealize Automation 软件服务 API 端口,例如:https://Private_IP:1443/software-service/api

您可以把该属性以及 software.ebs.urlagent.download.url 一起添加到预留或计算资源端点中。在使用 PAT 或 NAT 和端口转发时,您也可以利用此属性来指定专用地址和端口。

software.ebs.url

使用端口转发时,指定 Amazon AWS 通道计算机的专用 IP 地址和 vRealize Automation 事件代理服务端口,例如:https://Private_IP:1443/event-broker-service/api

您可以把该属性以及 software.agent.service.urlagent.download.url 一起添加到预留或计算资源端点中。在使用 PAT 或 NAT 和端口转发时,您也可以使用此属性来指定专用地址和端口。

VirtualMachine.NetworkN.Address

Specifies the IP address of network device N in a machine provisioned with a static IP address.

对于 Amazon,请参见 Amazon.elasticIpAddress.ipAddress

VirtualMachine.NetworkN.MacAddressType

Indicates whether the MAC address of network device N is generated or user-defined (static). This property is available for cloning.

The default value is generated. If the value is static, you must also use VirtualMachine.NetworkN.MacAddress to specify the MAC address.

VirtualMachine.NetworkN custom properties are specific to individual blueprints and machines. When a machine is requested, network and IP address allocation is performed before the machine is assigned to a reservation. Because blueprints are not guaranteed to be allocated to a specific reservation, do not use this property on a reservation. This property is not supported for on-demand NAT or on-demand routed networks.

VirtualMachine.NetworkN.MacAddress

Specifies the MAC address of a network device N. This property is available for cloning.

If the value of VirtualMachine.NetworkN.MacAddressType is generated, this property contains the generated address.

If the value of VirtualMachine.NetworkN.MacAddressType is static, this property specifies the MAC address. For virtual machines provisioned on ESX server hosts, the address must be in the range specified by VMware. For details, see vSphere documentation.

VirtualMachine.NetworkN custom properties are specific to individual blueprints and machines. When a machine is requested, network and IP address allocation is performed before the machine is assigned to a reservation. Because blueprints are not guaranteed to be allocated to a specific reservation, do not use this property on a reservation. This property is not supported for on-demand NAT or on-demand routed networks.

VirtualMachine.NetworkN.Name

Specifies the name of the network to connect to, for example the network device N to which a machine is attached. This is equivalent to a network interface card (NIC).

By default, a network is assigned from the network paths available on the reservation on which the machine is provisioned. Also see VirtualMachine.NetworkN.AddressType.

You can ensure that a network device is connected to a specific network by setting the value of this property to the name of a network on an available reservation. For example, if you give properties for N= 0 and 1, you get 2 NICs and their assigned value, provided the network is selected in the associated reservation.

VirtualMachine.NetworkN custom properties are specific to blueprints and machines. When a machine is requested, network and IP address allocation is performed before the machine is assigned to a reservation. Because blueprints are not guaranteed to be allocated to a specific reservation, do not use this property on a reservation.

You can add this property to a vCloud Air or vCloud Director machine component in a blueprint. This property is not supported for on-demand NAT or on-demand routed networks.

VirtualMachine.NetworkN.PortID

Specifies the port ID to use for network device N when using a dvPort group with a vSphere distributed switch.

VirtualMachine.NetworkN custom properties are specific to individual blueprints and machines. When a machine is requested, network and IP address allocation is performed before the machine is assigned to a reservation. Because blueprints are not guaranteed to be allocated to a specific reservation, do not use this property on a reservation. This property is not supported for on-demand NAT or on-demand routed networks.

VirtualMachine.NetworkN.ProfileName

Specifies the name of a network profile from which to assign a static IP address to network device N or from which to obtain the range of static IP addresses that can be assigned to network device N of a cloned machine, where N=0 for the first device, 1 for the second, and so on.

When you use the VirtualMachine.NetworkN.ProfileName property, the network profile it points to is used to allocate an IP address. However, the provisioned machine is attached to any network that is selected in the reservation using a round-robin fashion model.

Changing this property value after the network is assigned has no effect on the expected IP address values for the designated machines.

With WIM-based provisioning for virtual machines, you can use this property to specify a network profile and network interface or you can use the Network section of the Virtual Reservation page. You can also assign the network interface to a virtual network using the VirtualMachine.NetworkN.Name custom property.

The following attributes of the network profile are available to enable static IP assignment in a cloning blueprint:

  • VirtualMachine.NetworkN.SubnetMask

  • VirtualMachine.NetworkN.Gateway

  • VirtualMachine.NetworkN.PrimaryDns

  • VirtualMachine.NetworkN.SecondaryDns

  • VirtualMachine.NetworkN.PrimaryWins

  • VirtualMachine.NetworkN.SecondaryWins

  • VirtualMachine.NetworkN.DnsSuffix

  • VirtualMachine.NetworkN.DnsSearchSuffixes

VirtualMachine.NetworkN custom properties are specific to individual blueprints and machines. When a machine is requested, network and IP address allocation is performed before the machine is assigned to a reservation. Because blueprints are not guaranteed to be allocated to a specific reservation, do not use this property on a reservation.

You cannot use this custom property to define an on-demand NAT or on-demand routed network profile name. Because on-demand network profile names are generated at allocation time (during provisioning), their names are unknown when creating or editing the blueprint. To specify NSX on-demand network information, use the applicable network component in the blueprint design canvas for your vSphere machine components.

  • VirtualMachine.NetworkN.SubnetMask

  • VirtualMachine.NetworkN.Gateway

  • VirtualMachine.NetworkN.PrimaryDns

  • VirtualMachine.NetworkN.SecondaryDns

  • VirtualMachine.NetworkN.PrimaryWins

  • VirtualMachine.NetworkN.SecondaryWins

  • VirtualMachine.NetworkN.DnsSuffix

  • VirtualMachine.NetworkN.DnsSearchSuffixes

Configures attributes of the network profile specified in VirtualMachine.NetworkN.ProfileName.

VirtualMachine.NetworkN custom properties are specific to individual blueprints and machines. When a machine is requested, network and IP address allocation is performed before the machine is assigned to a reservation. Because blueprints are not guaranteed to be allocated to a specific reservation, do not use this property on a reservation.

VCNS.LoadBalancerEdgePool.Names.name

Specifies the NSX load balancing pools to which the virtual machine is assigned during provisioning. The virtual machine is assigned to all service ports of all specified pools. The value is an edge/pool name or a list of edge/pool names separated by commas. Names are case-sensitive.

注:

You can add a machine IP address to an existing load balancer by using the VCNS.LoadBalancerEdgePool.Names custom property. vRealize Automation and NSX use the first member of the specified edge load balancer pool to determine the new member port and monitor port settings. However, NSX 6.2 does not require that the member port setting be specified. To avoid provisioning failure when using VCNS.LoadBalancerEdgePool.Names with NSX 6.2 to add a machine to an existing pool, you must specify a port value for the first member of the load balancer pool in NSX.

Appending a name allows you to create multiple versions of a custom property. For example, the following properties might list load balancing pools set up for general use and machines with high, moderate, and low performance requirements:

  • VCNS.LoadBalancerEdgePool.Names

  • VCNS.LoadBalancerEdgePool.Names.moderate

  • VCNS.LoadBalancerEdgePool.Names.high

  • VCNS.LoadBalancerEdgePool.Names.low

VCNS.SecurityGroup.Names.name

Specifies the NSX security group or groups to which the virtual machine is assigned during provisioning. The value is a security group name or a list of names separated by commas. Names are case-sensitive.

Appending a name allows you to create multiple versions of the property, which can be used separately or in combination. For example, the following properties can list security groups intended for general use, for the sales force, and for support:

  • VCNS.SecurityGroup.Names

  • VCNS.SecurityGroup.Names.sales

  • VCNS.SecurityGroup.Names.support

VCNS.SecurityTag.Names.name

Specifies the NSX security tag or tags to which the virtual machine is associated during provisioning. The value is a security tag name or a list of names separated by commas. Names are case-sensitive.

Appending a name allows you to create multiple versions of the property, which can be used separately or in combination. For example, the following properties can list security tags intended for general use, for the sales force, and for support:

  • VCNS.SecurityTag.Names

  • VCNS.SecurityTag.Names.sales

  • VCNS.SecurityTag.Names.support