ISO-based Configuration
The ISO-based configuration can be used to set up either a single-node or multi-node CVP instance(s). Before configuring and starting CVP, the following tasks must be completed.
- Launch the VM (see Deploying CVP OVA on ESX or Deploying CVP on KVM).
- Create a YAML Document
- Feed the YAML File into the geniso.py Tool
- Map ISO to the VM's CD-ROM Drive
- Verify the host name, reachability of the name server, and VM connectivity.
Create a YAML Document
- The version field is required and must be 2.
- The "dns" and "ntp" entries are lists of values.
- The "dns", and "ntp"
parameters are optional, but recommended to use.
Note: The parameters, which are the same for all nodes, can be specified only once in the common section of the YAML. For example, "default_route" can be specified only once in the common section and not three times, once for each node.
Example:
The following example of a YAML document shows the use of separate (different) interfaces for cluster and device-facing networks. These parameters are explained in the previous section. For a single-node deployment, remove the sections for "node2" and "node3" (assuming all nodes are on the same subnet and have the same default route).
>cat multinode.yaml version: 2 common: aeris_ingest_key: magickey cluster_interface: eth0 default_route: 172.31.0.1 device_interface: eth0 dns: - 172.22.22.40 ntp: - ntp.aristanetworks.com node1: hostname: cvp6.sjc.aristanetworks.com interfaces: eth0: ip_address: 172.31.3.236 netmask: 255.255.0.0 vmname: cvp6 node2: vmname: cvp9 hostname : cvp9.sjc.aristanetworks.com interfaces: eth0: ip_address: 172.31.3.239 netmask: 255.255.0.0 eth1: ip_address: 10.0.0.2 netmask: 255.255.255.0 node3: vmname: cvp10 hostname: cvp10.sjc.aristanetworks.com interfaces: eth0: ip_address: 172.31.3.240 netmask: 255.255.0.0 eth1: ip_address: 10.0.0.3 netmask: 255.255.255.0
Feed the YAML File into the geniso.py Tool
Once you have created the YAML file, you are ready to feed it into the tool so that you can generate the ISO files for the CVP nodes. The root password can be provided at the command line or prompted from the user. If password is empty, no password will be set for root.
Complete the following steps:
Map ISO to the VM's CD-ROM Drive
You can map the ISO to the VM's CD-ROM drive through either ESXi or KVM.
Refer to the chapter to start working on the CVP.