vRealize Automation には、FlexClone ブループリンの制御に使用できるカスタム プロパティが含まれます。

表 1. FlexClone ブループリントのカスタム プロパティ
カスタム プロパティ 説明

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.

Linux.ExternalScript.Name

オペレーティング システムがインストールされた後に、Linux ゲスト エージェントが実行するオプションのカスタマイズ スクリプトの名前を指定します(例:config.sh)。 このプロパティは、Linux エージェントがインストールされたテンプレートからクローン作成される Linux マシンで使用可能です。

外部スクリプトを指定する場合は、Linux.ExternalScript.LocationType プロパティおよび Linux.ExternalScript.Path プロパティを使用して、その場所も定義する必要があります。

Linux.ExternalScript.LocationType

Linux.ExternalScript.Name プロパティで指定されたカスタマイズ スクリプトの場所タイプを指定します。ローカルまたは NFS のいずれかを指定できます。

また、Linux.ExternalScript.Path プロパティを使用してスクリプトの場所を指定する必要もあります。場所タイプが NFS の場合は、Linux.ExternalScript.Server プロパティも使用します。

Linux.ExternalScript.Server

Linux.ExternalScript.Name で指定された Linux 外部カスタマイズ スクリプトが配置される NFS サーバの名前を指定します(例:lab-ad.lab.local)。

Linux.ExternalScript.Path

Linux カスタマイズ スクリプトへのローカル パスまたは NFS サーバ上の Linux カスタマイズへのエクスポート パスを指定します。値はスラッシュから始まり、ファイル名は含みません(例:/scripts/linux/config.sh)。

次の「ゲスト エージェントを使用した FlexClone マシンのカスタマイズに必要なカスタム プロパティ」の表では、クローン作成されたマシンをカスタマイズするためにゲスト エージェントをインストールしている場合に、最もよく使用されるプロパティについて説明しています。

表 2. ゲスト エージェントを使用した FlexClone マシンのカスタマイズに必要なカスタム プロパティ
カスタム プロパティ 説明
VirtualMachine.Admin.UseGuestAgent

If the guest agent is installed as a service on a template for cloning, set to True on the machine blueprint to enable the guest agent service on machines cloned from that template. When the machine is started, the guest agent service is started. Set to False to disable the guest agent. If set to False, the enhanced clone workfow will not use the guest agent for guest operating system tasks, reducing its functionality to VMwareCloneWorkflow. If not specified or set to anything other than False, the enhanced clone workflow sends work items to the guest agent.

VirtualMachine.DiskN.Size

Defines the size in GB of disk N. For example, to give a size of 150 GB to a disk G, define the custom property VirtualMachine.Disk0.Size and enter a value of 150. Disk numbering must be sequential. By default a machine has one disk referred to by VirtualMachine.Disk0.Size, where size is specified by the storage value on the blueprint from which the machine is provisioned. The storage value on the blueprint user interface overwrites the value in the VirtualMachine.Disk0.Size property. The VirtualMachine.Disk0.Size property is not available as a custom property because of its relationship with the storage option on the blueprint. More disks can be added by specifying VirtualMachine.Disk1.Size, VirtualMachine.Disk2.Size and so on. VirtualMachine.Admin.TotalDiskUsage always represents the total of the .DiskN.Size properties plus the VMware.Memory.Reservation size allocation.

VirtualMachine.DiskN.Label

Specifies the label for a machine’s disk N. The disk label maximum is 32 characters. Disk numbering must be sequential. When used with a guest agent, specifies the label of a machine's disk N inside the guest operating system.

VirtualMachine.DiskN.Letter

Specifies the drive letter or mount point of a machine’s disk N. The default is C. For example, to specify the letter D for Disk 1, define the custom property as VirtualMachine.Disk1.Letter and enter the value D. Disk numbering must be sequential. When used in conjunction with a guest agent, this value specifies the drive letter or mount point under which an additional disk N is mounted by the guest agent in the guest operating system.

VirtualMachine.Admin.CustomizeGuestOSDelay

Specifies the time to wait after customization is complete and before starting the guest operating system customization. The value must be in HH:MM:SS format. If the value is not set, the default value is one minute (00:01:00). If you choose not to include this custom property, provisioning can fail if the virtual machine reboots before guest agent work items are completed, causing provisioning to fail.

VirtualMachine.Customize.WaitComplete

Set to True to prevent the provisioning workflow from sending work items to the guest agent until all customizations are complete.

VirtualMachine.SoftwareN.ScriptPath

Specifies the full path to an application's install script. The path must be a valid absolute path as seen by the guest operating system and must include the name of the script filename.

You can pass custom property values as parameters to the script by inserting {CustomPropertyName} in the path string. For example, if you have a custom property named ActivationKey whose value is 1234, the script path is D:\InstallApp.bat –key {ActivationKey}. The guest agent runs the command D:\InstallApp.bat –key 1234. Your script file can then be programmed to accept and use this value.