Print

Tools to Manage and Update Images for the Virtual Machine

A number of available tools help manage and update images and insert ISO to the Virtual Machine (VM).

Upgrading the Host Image

Arista provides an executable that updates all packages in the CVA.
Note: This process re-boots the entire system.

Single Node CloudVision Appliance

To upgrade a single node CVA, perform all the steps listed in Steps to Upgrade the CVA. After the CVA host comes up, and after rebooting the system from the last step of upgrade, allow 20 minutes for the CVP application to be accessible again.

Multi-Node CloudVision Appliance

Perform a rolling upgrade to update the CVA systems in a multi-node configuration. Perform all the steps listed in section Steps to Upgrade the CVA from start to finish on only one of the CVAs at a time. After the upgrade, wait for all the VMs (CVP and CVX) to be fully up and running (CVP takes 20 minutes to be up from a reboot). Verify accessibility of the CVP. After the verification, proceed to upgrade the second CVA host in a similar fashion and then the third CVA.
Note: Process only one CVA upgrade at a time in a multi-node system.

Upgrading the CVA

  1. Download the upgrade executable (upgradeCva-<version>) from the Software Download page.
  2. Run the upgrade executable.
    ./upgradeCva-<version> --force
    Note:Verify the version after the upgrade using the version command.
    # version
                                CVA Version: 2.1.3.1

Redeploying a CVP VM

This tool allows redeployment of the CVP VM in the event:
  • Something goes wrong during deployment.
  • If you want to perform a destructive upgrade and delete the virtual CVP disks.
Note: Before using this method, back up the CVP data using the CVP tool.

Complete the following steps:

  1. Locate the disks and tool package (cvp-<version>-kvm.tgz) in the CloudVision Portal folder for your version.
    Download the package from the Software Download page.
  2. SSH into the CV appliance Host OS.
  3. Backup CVP data using the CVP tool as documented in the CloudVision Help Center under Upgrading CVP in the subsection titled Backup and Restore (recommended).
  4. Copy wget cvp-<version>-kvm.tgz package into the CVA host OS under a new directory.
  5. tar -zxvf cvp-*-kvm.tgz disk1.qcow2
  6. Run it as follows: /cva/scripts/redeployCvpKvmVm.py --disk1 disk1.qcow2 [--mem <mem gb>] [--cpu <vcpu count>] [--data-size </data disk size>] [--cdrom <cvp config iso>]
    usage: redeployCvpKvmVm.py [-h] [-c CDROM] --disk1 DISK1 [--mem MEM] [--cpu CPU] [--data-size DATA_SIZE]

    This script helps redeploy a CVP VM. After deploying the VM, follow the Setup Steps for Single Node CVP or Multi-node CVP Cluster by logging into the CVP VM console shell as cvpadmin.

    Note: Use caution when using redeployCvpKvmVm.py, as it stops and restarts your VM and delete all your VM disks. BACKUP your VM data prior to running this, as suggested in Step 3.

Disk Expansion and Conversion For CloudVision VM

CloudVision VM virtual disks ship in qcow2 format with a data disk size of 1TB by default. For better scale and performance, Arista recommends converting the virtual disks to raw format and that the data disk be expanded to a size more appropriate to the expected scale. Arista recommends a 4.5 TB /data disk at the max scale supported today.

The tool can be run as /cva/scripts/cvaDiskUtil.py. It supports three commands:
  • status - Display current CloudVision VMs virtual disk information and information about the partition location of the VM.

    /cva/scripts/cvaDiskUtil.py [status]

  • makeraw - Convert qcow2 format virtual disks in CloudVision VM to raw format.

    /cva/scripts/cvaDiskUtil.py makeraw [--quiet]

  • expand - Increase the size of /data virtual disk in CloudVision VM.

    /cva/scripts/cvaDiskUtil.py expand [--disk-size DISK_SIZE] DISK_SIZE can be in KB, MB, GB, or TB

Note: makeraw and expand commands stop and start the cvp VM.
..