Installation of vSphere agent

To install a container, perform the following steps:

  1. Download the vSphere agent from ASP and select the arm vs. x86_64 architecture for the switch platform. Refer to the list of supported switches mentioned earlier to select the corresponding architecture.
  2. Host the agent on a local network that can be accessed using the HTTP protocol. Usage of the https protocol is a limitation of the container framework. The directory where the images of the agents are placed will be set in step 3.d. The HTTP server must be reachable on the mgmt vrf - or otherwise configured vrf. Any simple HTTP server helps to accomplish this step.

    Configure the CLI using the following commands:

  1. To enter the config mode, run the container vsphere command.
  2. To set the management vrf as the communication path for the container, run the vrf mgmt command. The vrf is mgmt by default, or you can specify any other non-default vrf configured by the user. mgmt is the only supported vrf currently.
  3. To limit memory usage of the container, run the restrict memory command. Set 1GB for vSphere instance.
  4. To set the installation path to the path accessible by the HTTP protocol noted in Step 2, run the image location command.
  5. To pass attributes to be configured for the container from CX CLI, run the env command. Use the following format to pass the attributes to establish the configuration instance:
    1. VSPHERE_VCENTER_N, where N takes value in the range 1–4.

    2. The encrypted plaintext command with arguments in the form of vSphere credentials, for example: user@<domain>:password@<fqdn of vcenter>

      The following example displays a valid running config:

      container vsphere image-location http://X.X.X.X:8000//vsphere-agent.img vrf mgmt restrict cpu 20 restrict memory 512 vrf mgmt env VSPHERE_VCENTER_1 encrypted plaintext USER@vsphere.local:PASSWORD@X.X.X.X