2 つ以上の vSphere Distributed Switch (vDS) を持つ VI ワークロード ドメインを作成する場合、または 3 つ以上の物理 NIC を持つ ESXi ホストを使用する場合は、VMware Cloud Foundation API を使用する必要があります。
この手順では、domainCreationSpec を使用して、VMware Cloud Foundation API を介して新しい VI ワークロード ドメインを作成します。2 つ以上の Distributed Switch を持つ VI ワークロード ドメインを作成したり、3 つ以上の物理 NIC を持つ ESXi ホストを使用したりするための、domainCreationSpec の hostSpecs と vdsSpecs の 2 つのセクションに焦点を当てます。
これらのセクションを変更し、環境に必要な domainCreationSpec の他のセクションを完了する必要があります。 のすべてのセクションの詳細については、『VMware Cloud Foundation API リファレンス ガイドdomainCreationSpec』を参照してください。この手順の最後の完全な domainCreationSpec の例を参照してください。
手順の例は、次のシナリオに基づいています。
VMware Cloud Foundation 環境に基づいて例を変更します。
| 2 台の vSphere Distributed Switch |
|
| 4 つの物理 NIC |
|
| 物理 NIC から Distributed Switch へのマッピング |
|
| Distributed Switch からトラフィック タイプへのマッピング |
|
注: VCF+ を使用している場合、ライセンス キーは必要ありません。
前提条件
ワークロード ドメインの前提条件を参照してください。
手順
例
{
"domainName" : "sfo-w01",
"vcenterSpec" : {
"name" : "sfo-w01-vc01",
"networkDetailsSpec" : {
"ipAddress" : "10.0.0.43",
"dnsName" : "sfo-w01-vc01.vrack.vsphere.local",
"gateway" : "10.0.0.250",
"subnetMask" : "255.255.255.0"
},
"rootPassword" : "<password>",
"datacenterName" : "sfo-w01-dc01",
"vmSize" : "medium",
"storageSize" : "lstorage"
},
"computeSpec" : {
"clusterSpecs" : [ {
"name" : "sfo-w01-cl01",
"hostSpecs" : [ {
"id" : "0ac30e66-7f65-4477-8331-80c3777c153c",
"licenseKey": "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX",
"username" : "root",
"hostNetworkSpec" : {
"vmNics" : [ {
"id" : "vmnic0",
"vdsName" : "sfo-w01-cl01-vds01"
}, {
"id" : "vmnic1",
"vdsName" : "sfo-w01-cl01-vds01"
}, {
"id" : "vmnic2",
"vdsName" : "sfo-w01-cl01-vds02"
}, {
"id" : "vmnic3",
"vdsName" : "sfo-w01-cl01-vds02"
} ]
}
}, {
"id" : "05d1a8df-773a-46bb-8838-dcb5bb3358ea",
"licenseKey": "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX",
"username" : "root",
"hostNetworkSpec" : {
"vmNics" : [ {
"id" : "vmnic0",
"vdsName" : "sfo-w01-cl01-vds01"
}, {
"id" : "vmnic1",
"vdsName" : "sfo-w01-cl01-vds01"
}, {
"id" : "vmnic2",
"vdsName" : "sfo-w01-cl01-vds02"
}, {
"id" : "vmnic3",
"vdsName" : "sfo-w01-cl01-vds02"
} ]
}
}, {
"id" : "2b8b770f-265d-4a63-b830-9c98038c81b2",
"licenseKey": "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX",
"username" : "root",
"hostNetworkSpec" : {
"vmNics" : [ {
"id" : "vmnic0",
"vdsName" : "sfo-w01-cl01-vds01"
}, {
"id" : "vmnic1",
"vdsName" : "sfo-w01-cl01-vds01"
}, {
"id" : "vmnic2",
"vdsName" : "sfo-w01-cl01-vds02"
}, {
"id" : "vmnic3",
"vdsName" : "sfo-w01-cl01-vds02"
} ]
}
} ],
"datastoreSpec" : {
"vsanDatastoreSpec" : {
"failuresToTolerate" : 1,
"licenseKey" : "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX",
"datastoreName" : "sfo-w01-cl01-ds-vsan01"
}
},
"networkSpec" : {
"vdsSpecs" : [ {
"name" : "sfo-w01-cl01-vds01",
"portGroupSpecs" : [ {
"name" : "sfo-w01-cl01-vds01-pg-mgmt",
"transportType" : "MANAGEMENT"
}, {
"name" : "sfo-w01-cl01-vds01-pg-vmotion",
"transportType" : "VMOTION"
}]
}, {
"name" : "sfo-w01-cl01-vds02",
"portGroupSpecs" : [ {
"name" : "sfo-w01-cl01-vds02-pg-vsan",
"transportType" : "VSAN"
} ],
"isUsedByNsxt" : true
} ],
"nsxClusterSpec" : {
"nsxTClusterSpec" : {
"geneveVlanId" : 2,
"ipAddressPoolSpec" : {
"name" : "static-ip-pool-01",
"subnets" : [ {
"ipAddressPoolRanges" : [ {
"start" : "10.0.11.50",
"end" : "10.0.11.70"
}, {
"start" : "10.0.11.80",
"end" : "10.0.11.150"
} ],
"cidr" : "10.0.11.0/24",
"gateway" : "10.0.11.250"
} ]
}
}
}
}
} ]
},
"nsxTSpec" : {
"nsxManagerSpecs" : [ {
"name" : "sfo-w01-nsx01a",
"networkDetailsSpec" : {
"ipAddress" : "10.0.0.44",
"dnsName" : "sfo-w01-nsx01a.vrack.vsphere.local",
"gateway" : "10.0.0.250",
"subnetMask" : "255.255.255.0"
}
}, {
"name" : "sfo-w01-nsx01b",
"networkDetailsSpec" : {
"ipAddress" : "10.0.0.45",
"dnsName" : "sfo-w01-nsx01b.vrack.vsphere.local",
"gateway" : "10.0.0.250",
"subnetMask" : "255.255.255.0"
}
}, {
"name" : "sfo-w01-nsx01c",
"networkDetailsSpec" : {
"ipAddress" : "10.0.0.46",
"dnsName" : "sfo-w01-nsx01c.vrack.vsphere.local",
"gateway" : "10.0.0.250",
"subnetMask" : "255.255.255.0"
}
} ],
"vip" : "10.0.0.166",
"vipFqdn" : "sfo-w01-nsx01.vrack.vsphere.local",
"licenseKey" : "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX",
"nsxManagerAdminPassword" : "<password>",
"formFactor" : "large"
}
}
