Shut Down a Virtual Infrastructure Workload Domain with vSphere with Tanzu
You shut down the components of a VI workload domain that runs containerized workloads in
VMware
Cloud Foundation
in a specific order to keep components operational by maintaining the necessary infrastructure, networking, and management services as long as possible before shutdown.You shut down the management components for the VI workload domains that run vSphere with Tanzu and containers or that run virtualized workloads before you shut down the components for the management domain.
If the NSX Manager cluster and NSX Edge cluster are shared with other VI workload domains, follow this general order:
- Shut down the customer workloads in all VI workload domains that share the NSX-T Data Center instance. Otherwise, all NSX networking services in the customer workloads will be interrupted when you shut down NSX-T Data Center.
- Shut down the VI workload domain that runs the shared NSX Edge nodes.
- Shut down the other VI workload domains.
Shutdown Order for a VI Workload Domain with vSphere with Tanzu
Shutdown Order | SDDC Component |
---|---|
1 | Containerized
customer workloads |
2 | Find out the
location of the vSphere with Tanzu virtual machines * |
3 | vSphere Cluster
Services virtual machines in the VI workload domain * |
4 | vCenter Server for
the VI workload domain * |
9 | NSX Edge nodes in
the VI workload domain * |
10 | NSX Manager nodes
for the VI workload domain * |
11 | vSAN and ESXi hosts
in the VI workload domain * |
* For information on the shutdown steps, see
below.
Find Out the Location of the vSphere with
Tanzu Virtual Machines on the ESXi Hosts
Before you begin shutting down a VI workload domain with vSphere with Tanzu, you get a
mapping between virtual machines in the workload domain and the ESXi hosts on which they are
deployed. You later use this mapping to log in to specific ESXi hosts and shut down specific
management virtual machines.
- Start Windows PowerShell.
- Connect to the VI workload domain vCenter Server by running the command.Connect-VIServer -Server <workload_domain_vCenter_server_fqdn> -User administrator@vsphere.local -Passwordvsphere_admin_password
- Generate the virtual machine to host mapping in aC:\VMToHostMapping.csvfile on the Windows machine by running the command.Get-VM | Select Name,VMHost | Export-Csv -Path C:\VMToHostMapping.csv -NoTypeInformation
Shut Down the vSphere Cluster Services Virtual Machines
To shut down the vSphere Cluster Services (vCLS) virtual machines in a cluster in a VI
workload domain in
VMware
Cloud Foundation
,
you put the cluster in retreat mode. The retreat mode triggers clean-up of the vCLS virtual
machines.- Log in to the VI workload domain vCenter Server athttps://<vcenter_server_fqdn>/uiasadministrator@vsphere.local.
- In theHosts and clustersinventory, expand the tree of the VI workload domain vCenter Server and expand the data center for the VI workload domain.
- Select the cluster on which vCLS must be shut down.
- Copy the cluster domain IDdomain-c(from the URL of the browser.cluster_domain_id)When you navigate to a cluster in the vSphere client, the URL is similar to this one:https://<fqdn-of-vCenter-server>/ui/app/cluster;nav=h/urn:vmomi:ClusterComputeResource:domain-c8:eef257af-fa50-455a-af7a-6899324fabe6/summaryYou copy onlydomain-c8.
- In theHost and Clustersinventory, select the vCenter Server instance and click theConfiguretab.
- UnderAdvanced Settings, click theEdit Settingsbutton.
- Locate theconfig.vcls.clusters.domain-c(property for the domain cluster ID from 4 and set it tonumber).enabledfalse.If the property is not present, add it. The entry for the cluster cannot be deleted from the vSphere Client then. However, keeping this entry is not an issue.
- ClickSave.
The vCLS monitoring service initiates
the clean-up of vCLS VMs. If vSphere DRS is activated for the cluster, it stops
working and you see an additional warning in the cluster summary. vSphere DRS
remains deactivated until vCLS is re-activated on this cluster.
Shut Down vCenter Server for a Virtual
Infrastructure Workload Domain with vSphere With Tanzu
To shut down the vCenter Server instance for a VI workload domain with vSphere with Tanzu
in
VMware
Cloud Foundation
, you use the
vSphere Client. You stop the Kubernetes services and check the vSAN health
status.- Shut down the Kubertenes services on vCenter Server.
- Log in to vCenter Server asrootby using a Secure Shell (SSH) client.
- To switch to the Bash shell, run theshellcommand.
- Stop the Kubernetes services by running the command.vmon-cli -k wcp
- Verify the Kubernetes services status by running the command.vmon-cli -s wcpThe output must containRunState: STOPPED.
- Log in to the management domain vCenter Server athttps://<vcenter_server_fqdn>/uiasadministrator@vsphere.local.
- Verify the vSAN health and resynchronization status.
- Select the vSAN cluster and click theMonitortab.
- In the left pane, navigate toand verify the status of each vSAN health check category.
- In the left pane, under, verify that all synchronization tasks are complete.
- If a vSAN cluster in the workload domain has vSphere HA turned on, stop vSphere HA to avoid vSphere HA initiated migrations of virtual machines after vSAN is partitioned during the shutdown process.
- Select the vSAN cluster and click theConfiguretab.
- In the left pane, selectand click theEditbutton.
- In theEdit Cluster Settingsdialog box, turn off vSphere HA and clickOK.
This operation takes several minutes to complete. - In theVMs and templatesinventory, expand the management domain vCenter Server tree and expand the management domain data center.
- Shut down vCenter Server.
- Locate the vCenter Server virtual machine for the VI workload domain.
- Right-click the virtual machine and select.
- In the confirmation dialog box, clickYes.
This operation takes several minutes to complete.
Shut Down the NSX Edge Nodes for vSphere with Tanzu
You begin shutting down the NSX-T Data Center infrastructure in a VI workload domain with vSphere with Tanzu by shutting down the NSX Edge nodes that provide north-south traffic connectivity between the physical data center networks and the NSX SDN networks.
Because the vCenter Server instance for the domain is already down, you shut down the NSX Edge nodes from the ESXi hosts where they are running.
- Log in to the ESXi host that runs the first NSX Edge node asrootby using the VMware Host Client.
- In the navigation pane, clickVirtual machines.
- Right-click an NSX Edge virtual machine, and select
- In the confirmation dialog box, clickYes.
- Repeat these steps to shut down the remaining NSX Edge nodes for the VI workload domain with vSphere with Tanzu.
Shut Down the NSX Manager Nodes
You continue shutting down the NSX infrastructure for the management domain or for a VI
workload domain by shutting down the three-node NSX Manager cluster by using the vSphere
Client.
- Log in to the management domain vCenter Server athttps://<vcenter_server_fqdn>/uiasadministrator@vsphere.local.
- In theVMs and templatesinventory, expand the management domain vCenter Server tree and expand the management domain data center.
- Right-click the primary NSX manager virtual machine and select.
- In the confirmation dialog box, clickYes.This operation takes several minutes to complete.
- Repeat the steps for the remaining NSX Manager virtual machines.
Shut Down vSAN and the ESXi Hosts in a Virtual Infrastructure Workload Domain with vSphere with Tanzu
You shut down vSAN and the ESXi hosts in a VI workload domain with vSphere with Tanzu by preparing the vSAN cluster for shutdown, placing each ESXi host in maintenance mode to prevent any virtual machines being deployed to or starting up on the host, and shutting down the host.
In a VI workload domain with vSphere with Tanzu, the vCenter Server instance for the domain is already down. Hence, you perform the shutdown operation on the ESXi hosts by using the VMware Host Client.
- Turn on SSH on the ESXi hosts in the workload domain by using the SoS utility of the SDDC Manager appliance.
- Log in to the SDDC Manager appliance by using a Secure Shell (SSH) client asvcf.
- Switch to therootuser by running thesucommand and entering the root password.
- Run this command./opt/vmware/sddc-support/sos --enable-ssh-esxi --domaindomain-name
- Log in to the first ESXi host in the workload domain cluster by using a Secure Shell (SSH) client asroot.
- For a vSAN cluster, deactivate vSAN cluster member updates by running the command.esxcfg-advcfg -s 1 /VSAN/IgnoreClusterMemberListUpdatesThe command returnsValue of IgnoreClusterMemberListUpdates is 1
- On the first ESXi host per vSAN cluster, prepare the vSAN cluster for shutdown by running the command.python /usr/lib/vmware/vsan/bin/reboot_helper.py prepareThe command returnsCluster preparation is done!
- Place the ESXi host in maintenance mode by running the command.esxcli system maintenanceMode set -e true -m noActionEnsure the prompt comes back after the command is complete.
- Verify that the host is in maintenance mode.esxcli system maintenanceMode get
- Shut down the ESXi hosts in the workload domain cluster.
- Log in to the first ESXi host for the cluster athttps://<asesxi_host_fqdn>/uiroot.
- In the navigation pane, right-clickHostand, from the drop-down menu, selectShut down.
- In the confirmation dialog box, clickShut down.
- Repeat the steps for the remaining hosts in the cluster.