vm.gowatana.jp

NEOにほんごVMware(仮)

PowerVCF で VI Workload Domain を展開してみる。Part-04: VI Workload Domain(NSX なし)の展開

VMware Cloud Foundation(VCF)5.2 の VI Workload Domain(VI Domain)を、PowerVCF でデプロイしてみます。今回は、NSX なしの VI Workload Domain を展開します。

 

前回はこちら。

 

今回の内容です。

 

事前準備

前回の VI Domain 展開前と同様に、ESXi ホストをコミッショニングしてあります。

 

VI Domain を再展開する場合は、VI Domain を削除した後に、ESXi のデコミッション → 再インストールを実施しておきます。

 

今回も、JSON で指定する ESXi ホスト ID と、vLCM のイメージ ID を確認しておきます。

ESXi ホストの ID を確認します。

PS> Get-VCFHost -Status UNASSIGNED_USEABLE | Select-Object id,fqdn,status | Sort-Object fqdn | ft -AutoSize

id                                   fqdn                        status
--                                   ----                        ------
9a49141e-302b-466f-a2af-9d6d295f66fc vcf-w01-esxi-01.c.go-lab.jp UNASSIGNED_USEABLE
71ff9c88-7e52-4144-8857-fd2d5483673e vcf-w01-esxi-02.c.go-lab.jp UNASSIGNED_USEABLE
c1fe7f70-75a2-4b3a-a56d-505dcb07ad62 vcf-w01-esxi-03.c.go-lab.jp UNASSIGNED_USEABLE

 

クラスタ イメージ ID を確認しておきます。今回は、事前に作成しておいた「cluster-image-01」というイメージを指定します。

PS> Invoke-VcfGetPersonalities | select -ExpandProperty Elements | select PersonalityName,PersonalityId

PersonalityName                    PersonalityId
---------------                    -------------
Management-Domain-ESXi-Personality f4f12212-af5d-42fd-a90a-7f80fc413b44
cluster-image-01                   765471ea-09a2-473e-a880-721857024e52

 

JSON ファイルの用意

今回は、下記の JSON ファイルを作成しました。

  • 前回の JSON から、NSX 関連の要素を削除しています。
  • L112:NSX は利用しませんが、MTU は 1700 以上を指定しないとエラーになります。

gist.github.com

 

作成した JSON ファイルは、前回と同様に確認(Validation)を実施しておきます。

 

VI Workload Domain の展開

New-VCFWorkloadDomain で、Workload Domain を展開します。表示されるタスク情報には ID 含まれるので、Get-VCFTask などで進捗確認できます。

PS> New-VCFWorkloadDomain -json (Get-Content -Raw C:\work\json\vi-domain_vcf-w01_non-nsx.json)
Task validation completed successfully. Invoking Workload Domain Creation on SDDC Manager

id                         : 347ccd2f-4078-445b-b799-498ea1542e5b
name                       : Creating domain
localizableDescriptionPack : @{component=VCF; messageKey=ADD_DOMAIN_WORKFLOW; arguments=System.Object[]; message=Creating Workload Domain: vcf-w01; bundle=com.vmware.vcf.domai
                             nmanager.workflow.workflowdescriptions}
status                     : IN_PROGRESS
creationTimestamp          : 2024/10/01 10:11:47
isCancellable              : False
isRetryable                : False

 

しばらく待つと、タスクが完了して VI Workload Domain が作成されます。

PS> Get-VCFTask -id 347ccd2f-4078-445b-b799-498ea1542e5b

id                  : 347ccd2f-4078-445b-b799-498ea1542e5b
name                : Creating Workload Domain: vcf-w01
type                : DOMAIN_CREATION
status              : Successful
creationTimestamp   : 2024/10/01 10:11:48
completionTimestamp : 2024/10/01 11:16:19
subTasks            : {@{name=Generate Workload Domain Resources for Allocation Input Data; description=Generate
                      Workload Domain Resources for Allocation Input Data; status=SUCCESSFUL; creationTimestamp=2
                      024/10/01 10:11:49; completionTimestamp=2024/10/01 10:11:49; errors=System.Object[]}, @{nam
                      e=Allocate resources; description=Allocate resources; status=SUCCESSFUL; creationTimestamp=
                      2024/10/01 10:11:49; completionTimestamp=2024/10/01 10:11:49; errors=System.Object[]}, @{na
                      me=Generate Workload Domain Creation Locking Input Data; description=Generate Workload Doma
                      in Creation Locking Input Data; status=SUCCESSFUL; creationTimestamp=2024/10/01 10:11:50; c
                      ompletionTimestamp=2024/10/01 10:11:50; errors=System.Object[]}, @{name=Acquire Resource Lo
                      cks; description=Acquire Resource Locks; status=SUCCESSFUL; creationTimestamp=2024/10/01 10
                      :11:50; completionTimestamp=2024/10/01 10:11:50; errors=System.Object[]}…}
errors              : {}
resources           : {@{resourceId=9a49141e-302b-466f-a2af-9d6d295f66fc; type=Esxi}, @{resourceId=c1fe7f70-75a2-
                      4b3a-a56d-505dcb07ad62; type=Esxi}, @{resourceId=71ff9c88-7e52-4144-8857-fd2d5483673e; type
                      =Esxi}, @{resourceId=ce4a4aaf-9baf-4130-9050-7cf6ef0f6a24; type=Domain}…}
resolutionStatus    : UNRESOLVED
isCancellable       : False
isRetryable         : True

 

サブ タスクの情報です。

PS> Get-VCFTask -id 347ccd2f-4078-445b-b799-498ea1542e5b | Select-Object -ExpandProperty subTasks | Select-Object status,creationTimestamp,completionTimestamp,name

status     creationTimestamp   completionTimestamp name
------     -----------------   ------------------- ----
SUCCESSFUL 2024/10/01 10:11:49 2024/10/01 10:11:49 Generate Workload Domain Resources for Allocation Input Data
SUCCESSFUL 2024/10/01 10:11:49 2024/10/01 10:11:49 Allocate resources
SUCCESSFUL 2024/10/01 10:11:50 2024/10/01 10:11:50 Generate Workload Domain Creation Locking Input Data
SUCCESSFUL 2024/10/01 10:11:50 2024/10/01 10:11:50 Acquire Resource Locks
SUCCESSFUL 2024/10/01 10:11:50 2024/10/01 10:11:50 Automation Helper Action
SUCCESSFUL 2024/10/01 10:11:50 2024/10/01 10:11:50 Update the inventory host with MTU and VLAN ID of the ESXI's management network
SUCCESSFUL 2024/10/01 10:11:50 2024/10/01 10:11:51 Prevalidate Add Workload Domain
SUCCESSFUL 2024/10/01 10:11:51 2024/10/01 10:11:51 Generate Validate vSAN disks for ESXi Hosts Input Data
SUCCESSFUL 2024/10/01 10:11:51 2024/10/01 10:11:51 Validate if ESXi Host(s) Do Not Use DHCP for the Management Network
SUCCESSFUL 2024/10/01 10:11:52 2024/10/01 10:11:53 Validate vSAN disks for ESXi Host(s)
SUCCESSFUL 2024/10/01 10:11:53 2024/10/01 10:11:53 Generate Add Workload Domain Input Data
SUCCESSFUL 2024/10/01 10:11:54 2024/10/01 10:11:58 Validate Workload Domain Deployment Specification
SUCCESSFUL 2024/10/01 10:11:58 2024/10/01 10:11:59 Obtain ESXi Host(s) Details
SUCCESSFUL 2024/10/01 10:11:59 2024/10/01 10:11:59 Update ESXi Host(s) Details in Runtime Data Model for Add Workload Domain
SUCCESSFUL 2024/10/01 10:11:59 2024/10/01 10:12:00 Generate Add Workload Domain Input Data
SUCCESSFUL 2024/10/01 10:12:00 2024/10/01 10:12:00 Validate Stale vCenter References in PSC Action
SUCCESSFUL 2024/10/01 10:12:00 2024/10/01 10:12:00 Retrieve Backup Configuration
SUCCESSFUL 2024/10/01 10:12:00 2024/10/01 10:12:00 Validate Backup Location Details
SUCCESSFUL 2024/10/01 10:12:00 2024/10/01 10:12:00 Validate Virtual Machine Names Do Not Exist in the vCenter Server Inventory
SUCCESSFUL 2024/10/01 10:12:01 2024/10/01 10:12:01 Validate ESXi Host(s) Details
SUCCESSFUL 2024/10/01 10:12:01 2024/10/01 10:12:01 Fetch Product Images
SUCCESSFUL 2024/10/01 10:12:01 2024/10/01 10:12:01 Allocate ESXi Host(s) IP Addresses
SUCCESSFUL 2024/10/01 10:12:01 2024/10/01 10:12:02 Persist Allocated ESXi Hosts IP Addresses in the SDDC Manager Inventory
SUCCESSFUL 2024/10/01 10:12:02 2024/10/01 10:12:02 Generate the Workload Domain Details to Populate the SDDC Manager Inventory
SUCCESSFUL 2024/10/01 10:12:02 2024/10/01 10:12:03 Update the SDDC Manager Inventory with the Workload Domain Details
SUCCESSFUL 2024/10/01 10:12:03 2024/10/01 10:12:03 Create Workload Domain Service Account Credentials
SUCCESSFUL 2024/10/01 10:12:03 2024/10/01 10:12:03 Mount the vCenter Server ISO Image
SUCCESSFUL 2024/10/01 10:12:03 2024/10/01 10:12:04 Register Current Task
SUCCESSFUL 2024/10/01 10:12:04 2024/10/01 10:12:05 Generate Workload Domain Runtime Data Model
SUCCESSFUL 2024/10/01 10:12:05 2024/10/01 10:12:06 Generate Workload Domain Workflow Input Data
SUCCESSFUL 2024/10/01 10:12:06 2024/10/01 10:12:07 Validate Workload Domain Input Data
SUCCESSFUL 2024/10/01 10:12:07 2024/10/01 10:12:08 Generate Validate ESXi Host(s) vMotion Network Connectivity Input Data
SUCCESSFUL 2024/10/01 10:12:08 2024/10/01 10:13:17 Validate vMotion Network Connectivity
SUCCESSFUL 2024/10/01 10:13:17 2024/10/01 10:14:26 Validate vSAN Network Connectivity
SUCCESSFUL 2024/10/01 10:14:26 2024/10/01 10:14:26 Updates join Single Sign-On (SSO) status for vCenter Server
SUCCESSFUL 2024/10/01 10:14:26 2024/10/01 10:14:28 Validate the Single Sign-On (SSO) Ring Topology
SUCCESSFUL 2024/10/01 10:14:28 2024/10/01 10:14:28 Generate vCenter Server Configuration Data
SUCCESSFUL 2024/10/01 10:14:28 2024/10/01 11:02:14 Deploy vCenter Server Virtual Appliance
SUCCESSFUL 2024/10/01 11:02:14 2024/10/01 11:02:22 Register Embedded Platform Services Controller with SDDC Manager Trust Store
SUCCESSFUL 2024/10/01 11:02:22 2024/10/01 11:02:26 Validate vCenter services are started
SUCCESSFUL 2024/10/01 11:02:26 2024/10/01 11:02:27 Install vCenter Server SSH Key
SUCCESSFUL 2024/10/01 11:02:27 2024/10/01 11:02:28 Generate vCenter Server Federal Information Processing Standards (FIPS) Configuration Input Data
SUCCESSFUL 2024/10/01 11:02:28 2024/10/01 11:02:29 Configure vCenter FIPS
SUCCESSFUL 2024/10/01 11:02:29 2024/10/01 11:02:30 Register SDDC Manager as an extension in vCenter Server
SUCCESSFUL 2024/10/01 11:02:30 2024/10/01 11:02:57 Join vCenter Server to the Single Sign-On (SSO) Ring Topology
SUCCESSFUL 2024/10/01 11:02:57 2024/10/01 11:02:58 Create Datacenter and populate Managed Object ID in the Internal Add Cluster Model
SUCCESSFUL 2024/10/01 11:02:58 2024/10/01 11:02:59 Configure Deployment Details
SUCCESSFUL 2024/10/01 11:02:59 2024/10/01 11:02:59 Authorize SDDC Admins Group
SUCCESSFUL 2024/10/01 11:02:59 2024/10/01 11:03:00 Obtain vCenter Server Object MOIDs
SUCCESSFUL 2024/10/01 11:03:00 2024/10/01 11:03:00 Create SDDC Manager to vCenter Server Service Account Credentials
SUCCESSFUL 2024/10/01 11:03:00 2024/10/01 11:03:01 Generate vCenter Server Service Accounts Data
SUCCESSFUL 2024/10/01 11:03:01 2024/10/01 11:03:01 Automation Helper Action
SUCCESSFUL 2024/10/01 11:03:01 2024/10/01 11:03:02 Create vCenter Server Users
SUCCESSFUL 2024/10/01 11:03:02 2024/10/01 11:03:03 Create vCenter Server Roles
SUCCESSFUL 2024/10/01 11:03:03 2024/10/01 11:03:03 Assign User Roles in vCenter Server
SUCCESSFUL 2024/10/01 11:03:04 2024/10/01 11:03:05 Add Disaster Recovery Service Users to Administrator Group in vCenter Server
SUCCESSFUL 2024/10/01 11:03:05 2024/10/01 11:03:05 Read Certificate Authority Certificate Chain from File
SUCCESSFUL 2024/10/01 11:03:05 2024/10/01 11:03:11 Import Trusted Root Certificates in vCenter Server
SUCCESSFUL 2024/10/01 11:03:11 2024/10/01 11:06:51 Prepare ESXi Hosts for vSAN
SUCCESSFUL 2024/10/01 11:06:51 2024/10/01 11:06:55 Create vSphere Cluster
SUCCESSFUL 2024/10/01 11:06:55 2024/10/01 11:07:12 Initialize vSAN cluster
SUCCESSFUL 2024/10/01 11:07:12 2024/10/01 11:07:13 Update the Runtime Data Model with the Cluster's Managed Object ID from vCenter Server
SUCCESSFUL 2024/10/01 11:07:13 2024/10/01 11:07:13 Automation Helper Action
SUCCESSFUL 2024/10/01 11:07:13 2024/10/01 11:07:14 Disable vSphere Cluster Services
SUCCESSFUL 2024/10/01 11:07:14 2024/10/01 11:07:18 Create vSphere Distributed Switch
SUCCESSFUL 2024/10/01 11:07:18 2024/10/01 11:07:20 Enable Network I/O Control (NIOC) on vSphere Distributed Switch
SUCCESSFUL 2024/10/01 11:07:20 2024/10/01 11:07:28 Create Distributed Port Groups
SUCCESSFUL 2024/10/01 11:07:28 2024/10/01 11:07:34 Tag VLAN IDs on Distributed Port Groups
SUCCESSFUL 2024/10/01 11:07:35 2024/10/01 11:07:35 Generate Persist Source ID from vCenter Server of vSphere Distributed Switch in SDDC Manager Inventory Input Data
SUCCESSFUL 2024/10/01 11:07:35 2024/10/01 11:07:35 Persist Source ID from vCenter Server of vSphere Distributed Switch in SDDC Manager Inventory
SUCCESSFUL 2024/10/01 11:07:35 2024/10/01 11:07:35 Generate Persist Source ID from vCenter Server of vSphere Distributed Virtual Port Groups in SDDC Manager Inventory Input Data
SUCCESSFUL 2024/10/01 11:07:35 2024/10/01 11:07:36 Persist Source ID from vCenter Server of vSphere Distributed Virtual Port Groups in SDDC Manager Inventory
SUCCESSFUL 2024/10/01 11:07:36 2024/10/01 11:07:36 Generate ESXi Lockdown Mode Input Data
SUCCESSFUL 2024/10/01 11:07:36 2024/10/01 11:07:37 Retrieve ESXi Host Lockdown Mode Configuration
SUCCESSFUL 2024/10/01 11:07:37 2024/10/01 11:07:38 Disable Lockdown Mode on ESXi Hosts
SUCCESSFUL 2024/10/01 11:07:38 2024/10/01 11:08:46 Add ESXi Host to vSphere Cluster
SUCCESSFUL 2024/10/01 11:08:46 2024/10/01 11:08:47 Generate Enter ESXi Host(s) to Maintenance Mode Input
SUCCESSFUL 2024/10/01 11:08:47 2024/10/01 11:09:23 Enter ESXi Host(s) in Maintenance Mode
SUCCESSFUL 2024/10/01 11:09:23 2024/10/01 11:09:24 Configure Lockdown Mode on ESXi Hosts
SUCCESSFUL 2024/10/01 11:09:24 2024/10/01 11:09:32 Add ESXi Hosts to vSphere Distributed Switch
SUCCESSFUL 2024/10/01 11:09:32 2024/10/01 11:09:35 Create vMotion vmknic(s) on ESXi Host
SUCCESSFUL 2024/10/01 11:09:35 2024/10/01 11:09:59 Create vSAN vmknic(s) on ESXi Host
SUCCESSFUL 2024/10/01 11:09:59 2024/10/01 11:10:06 Migrate ESXi Host Management vmknic(s) to vSphere Distributed Switch
SUCCESSFUL 2024/10/01 11:10:06 2024/10/01 11:10:07 Detach vmknic(s) from vSphere Standard Switch
SUCCESSFUL 2024/10/01 11:10:07 2024/10/01 11:10:10 Attach vmknic(s) to vSphere Distributed Switch
SUCCESSFUL 2024/10/01 11:10:10 2024/10/01 11:10:11 Remove vSphere Standard Switches from ESXi Hosts
SUCCESSFUL 2024/10/01 11:10:11 2024/10/01 11:10:11 Generate Configure Power Management Policy on ESXi Host(s) Input Data
SUCCESSFUL 2024/10/01 11:10:11 2024/10/01 11:10:12 Configure Power Management Policy on ESXi Host(s)
SUCCESSFUL 2024/10/01 11:10:12 2024/10/01 11:10:13 Create vSAN Virtual Machine Storage Policy
SUCCESSFUL 2024/10/01 11:10:13 2024/10/01 11:10:14 Associate VM Storage Policy with vSAN Datastore
SUCCESSFUL 2024/10/01 11:10:14 2024/10/01 11:11:23 Create vSAN Disk Groups
SUCCESSFUL 2024/10/01 11:11:23 2024/10/01 11:11:26 Disable vSAN VUM recommendation
SUCCESSFUL 2024/10/01 11:11:26 2024/10/01 11:11:26 Generate Persist Source ID from vCenter Server of Datastore in SDDC Manager Inventory Input Data
SUCCESSFUL 2024/10/01 11:11:26 2024/10/01 11:11:26 Persist Source ID from vCenter Server of Datastore in SDDC Manager Inventory
SUCCESSFUL 2024/10/01 11:11:26 2024/10/01 11:11:33 Exit ESXi Host(s) in Maintenance Mode
SUCCESSFUL 2024/10/01 11:11:33 2024/10/01 11:11:33 Automation Helper Action
SUCCESSFUL 2024/10/01 11:11:34 2024/10/01 11:14:46 Enable vSphere Cluster Services
SUCCESSFUL 2024/10/01 11:14:46 2024/10/01 11:14:46 Update vSAN Storage Policy
SUCCESSFUL 2024/10/01 11:14:46 2024/10/01 11:14:49 Enable DRS on the vSphere Cluster
SUCCESSFUL 2024/10/01 11:14:49 2024/10/01 11:16:03 Configure vSphere HA
SUCCESSFUL 2024/10/01 11:16:03 2024/10/01 11:16:05 Configure HA Isolation Address Option
SUCCESSFUL 2024/10/01 11:16:05 2024/10/01 11:16:06 Checking the datastore availability
SUCCESSFUL 2024/10/01 11:16:06 2024/10/01 11:16:06 Generate Inputs for Watermarking newly deployed vCenter
SUCCESSFUL 2024/10/01 11:16:07 2024/10/01 11:16:07 Watermark vCenter Server
SUCCESSFUL 2024/10/01 11:16:07 2024/10/01 11:16:07 Update SDDC Manager Inventory with Cluster Details
SUCCESSFUL 2024/10/01 11:16:07 2024/10/01 11:16:08 Update ESXi Host's Source ID in the SDDC Manager Inventory
SUCCESSFUL 2024/10/01 11:16:08 2024/10/01 11:16:09 Add newly deployed vCenter in monitoring framework
SUCCESSFUL 2024/10/01 11:16:09 2024/10/01 11:16:09 Generate Migrate VCF Attached Tags to vCenter Server Input Data
SUCCESSFUL 2024/10/01 11:16:09 2024/10/01 11:16:09 Migrate VCF Attached Tags to vCenter Server
SUCCESSFUL 2024/10/01 11:16:09 2024/10/01 11:16:10 Generate Disable SSH On ESXi Host(s) Input Data
SUCCESSFUL 2024/10/01 11:16:10 2024/10/01 11:16:10 Disable SSH on ESXi host
SUCCESSFUL 2024/10/01 11:16:10 2024/10/01 11:16:13 Clear Alarms on ESXi Hosts
SUCCESSFUL 2024/10/01 11:16:13 2024/10/01 11:16:13 Update the SDDC Manager Inventory with new Workload Domain Details
SUCCESSFUL 2024/10/01 11:16:13 2024/10/01 11:16:13 Generate input data for unmount vCenter Server ISO Image.
SUCCESSFUL 2024/10/01 11:16:14 2024/10/01 11:16:16 Unmount the vCenter Server ISO Image
SUCCESSFUL 2024/10/01 11:16:16 2024/10/01 11:16:16 Generate Update ESXi Host(s) Source ID in the SDDC Manager Inventory Data
SUCCESSFUL 2024/10/01 11:16:16 2024/10/01 11:16:16 Update ESXi Host's Source ID in the SDDC Manager Inventory
SUCCESSFUL 2024/10/01 11:16:17 2024/10/01 11:16:17 Add newly deployed vCenter in monitoring framework
SUCCESSFUL 2024/10/01 11:16:17 2024/10/01 11:16:17 Release allocated resources
SUCCESSFUL 2024/10/01 11:16:17 2024/10/01 11:16:17 Automation Helper Action
SUCCESSFUL 2024/10/01 11:16:17 2024/10/01 11:16:18 Build Event data for given input
SUCCESSFUL 2024/10/01 11:16:18 2024/10/01 11:16:18 Publish Event in SDDC Manager Inventory
SUCCESSFUL 2024/10/01 11:16:18 2024/10/01 11:16:18 Generate Release Resources Lock Data
SUCCESSFUL 2024/10/01 11:16:18 2024/10/01 11:16:18 Release Resource Locks

 

VI Workload Domain の情報です。やはりベースライン管理に・・・

PS> Get-VCFWorkloadDomain -name vcf-w01

id                         : ce4a4aaf-9baf-4130-9050-7cf6ef0f6a24
name                       : vcf-w01
orgName                    : vcf-w01-org
status                     : ACTIVE
upgradeState               : AVAILABLE
upgradeStatus              : @{status=UP_TO_DATE}
type                       : VI
owners                     : {administrator@vsphere.local}
vcenters                   : {@{id=f5f32f77-3be9-45a4-9d08-1adf6071fa0c; fqdn=vcf-w01-vc-01.c.go-lab.jp}}
ssoId                      : 64577a9d-31d8-4582-85a8-206cbeee9dca
ssoName                    : vsphere.local
isManagementSsoDomain      : True
clusters                   : {@{id=e7cff57a-a87b-4240-8f71-56d6333c773e}}
licensingInfo              : @{licensingMode=PERPETUAL; subscriptionStatus=UNSUBSCRIBED; isRegistered=False; isSubscribed=False}
capacity                   : @{cpu=; memory=; storage=}
lifecycleManagementMode    : BASELINES
isNetworkSeparationEnabled : False
isSecurityEnabled          : False
isPrimaryDomainForNsx      : False

 

SDDC Manager でも、VI Workload Domain が展開されたことが確認できます。

 

VI Workload Domain の「サービス」タブを開くと、NSX なしで、vCenter Server へのリンクのみが表示されています。


拡張リンク モードで展開しており、VI Workload Domain は赤枠のあたりです。今回もなぜか、クラスタの vLCM ライフサイクル管理は ベースライン管理になってしまいました。

 

以上、PowerNSX で NSX なし VI Domain を展開してみる話でした。