Register VMware vCenter Server as a Tenant

About this task

Register the VMware vCenter server as a tenant of XCO. Do the following:

Procedure

  1. Use the efa vcenter register command to register the VMware vCenter server as a tenant with this XCO instance.

    Before you register the VMware vCenter server, verify that the tenant is created. Use the efa tenant show command to do so.

  2. Once you have registered your VMWare vCenter server as a tenant, verify that the VMware vCenter server was registered successfully and know the status of discovery of ESXi hosts managed by it.

Example

This example shows the use of the efa tenant show command to view a list of registered tenants for this instance of the XCO vCenter service.

$ efa tenant show
+----------------------+-------------+-------------+------------+-----------+-----------+-------+
| Name                 | L2VNI-Range | L3VNI-Range | VLAN-Range | VRF-Count | Enable-BD | Ports |
+----------------------+-------------+-------------+------------+-----------+-----------+-------+
| vcenter-10.24.85.111 |             |             | 2-4096     | 0         | False     |       |
+----------------------+-------------+-------------+------------+-----------+-----------+-------+
Tenant Details
--- Time Elapsed: 948.4093ms ---

Use this command to register a VMware vCenter server with the IP address of 10.24.85.111 as a tenant with this instance of XCO vCenter service.

$ efa vcenter register --host 10.24.85.111 --username administrator@vmvcenter.local --password 'aBc123#' --tenant vcenter-10.24.85.111
+--------------+-----------------------+---------+----------------------------+
| Host Name    | Name                  | Version | Discovery Status           |
+--------------+-----------------------+---------+----------------------------+
| 10.24.85.111 | VMware vCenter Server | 6.7.0   | Pending Complete Discovery |
+--------------+-----------------------+---------+----------------------------+
VCenter Details
--- Time Elapsed: 10.0346556s ---

Use this command to verify the status of discovery of your newly added VMware vCenter server.

$ efa vcenter list

+--------------+-----------------------+---------+----------------------------+-------------------+------------+----------+
| Host Name    | Name                  | Version | Discovery Status           | Datacenters Count | Host Count | VM Count |
+--------------+-----------------------+---------+----------------------------+-------------------+------------+----------+
| 10.24.85.111 | VMware vCenter Server | 6.7.0   | Pending Complete Discovery | 1                 | 1          | 0        |
+--------------+-----------------------+---------+----------------------------+-------------------+------------+----------+
VCenter Details
--- Time Elapsed: 1.0318464s ---

This example shows the same VMware vCenter server after the vcenter update process is complete.

$ efa vcenter list
+--------------+-----------------------+---------+------------------+-------------------+------------+----------+
| Host Name    | Name                  | Version | Discovery Status | Datacenters Count | Host Count | VM Count |
+--------------+-----------------------+---------+------------------+-------------------+------------+----------+
| 10.24.85.111 | VMware vCenter Server | 6.7.0   | Update Completed | 5                 | 4          | 13       |
+--------------+-----------------------+---------+------------------+-------------------+------------+----------+
VCenter Details
--- Time Elapsed: 1.3625964s ---

This example show a VMware vCenter server after the register and background discovery process is completed.

 
$ efa vcenter list                
+--------------+-----------------------+---------+---------------------+-------------------+------------+----------+
| Host Name    | Name                  | Version | Discovery Status    | Datacenters Count | Host Count | VM Count |
+--------------+-----------------------+---------+---------------------+-------------------+------------+----------+
| 10.24.85.111 | VMware vCenter Server | 6.7.0   | Completed Discovery | 5                 | 4          | 11       |
+--------------+-----------------------+---------+---------------------+-------------------+------------+----------+
vCenter Details
--- Time Elapsed: 197.886032ms ---