Cisco Crosswork Planning 7.2.x Installation Guide

PDF

Cisco Crosswork Planning 7.2.x Installation Guide

Installation workflow for Cisco Crosswork Planning on KVM

Want to summarize with AI?

Log in

Lists the high-level workflow steps for installing Cisco Crosswork Planning on KVM using the CLI.


This table summarizes the high-level workflow for installing Cisco Crosswork Planning on KVM manually using CLI. Use the links in the Action column for detailed instructions.

Table 1. Installation workflow

Step

Action

1. Ensure that your KVM host meets all the requirements.

Refer to KVM host bare metal requirements.

2. Ensure you have performed the preliminary checks.

Refer to Preliminary checks for KVM installation.

3. Set up and validate the KVM environment.

Refer to Set up and validate KVM on RHEL.

4. Configure network bridges (for example, Linux bridge or Open vSwitch (OVS) or SRIOV.

Refer to Configure network bridges or SRIOV.

5. Install Cisco Crosswork Planning on KVM.

Refer to Install Cisco Crosswork Planning on KVM using CLI.

Known limitations

If you use a non-root user ID for deployment on bare metal systems, ensure to add this user ID to the sudoers list (/etc/sudoers).


Preliminary checks for KVM installation

This section describes the preliminary checks required for installing Cisco Crosswork Planning on KVM.

  • Virtualization: Verify that your system supports virtualization. This is typically enabled in the BIOS.

    You can confirm virtualization support by using these commands:

    • For Intel CPUs, use grep -wo 'vmx' /proc/cpuinfo

    • For AMD CPUs, use grep -wo 'svm' /proc/cpuinfo

  • KVM modules: Confirm that the KVM modules are loaded by running lsmod | grep kvm.


Set up and validate KVM on RHEL

This topic describes how to install KVM on RHEL.

Before you begin

Confirm you have administrator (sudo) privileges.

Procedure

  1. Ensure you have the latest packages (RHEL version 8.10 or 9.4) needed for KVM installation.

  2. Install the required virtualization tools.

    1. Install virt-install and virt-viewer.
      sudo dnf install virt-install virt-viewer -y

      virt-install is a command-line tool for creating virtual machines.

      virt-viewer is a lightweight UI for interacting with VMs.

    2. Install libvirt virtualization daemon, which is necessary for managing VMs.
      sudo dnf install -y libvirt
    3. Install virt-manager, a graphical interface for managing VMs.
      sudo dnf install virt-manager -y
    4. Install additional virtualization tools for managing VMs.
      sudo dnf install -y virt-top libguestfs-tools
  3. Start and enable the libvirtd virtualization daemon.

    1. Start the libvirtd daemon.
      sudo systemctl start libvirtd
    2. Enable the libvirtd daemon.
      sudo systemctl enable libvirtd
    3. Verify that the daemon is running.
      sudo systemctl status libvirtd
  4. Add users to the required groups, such as libvirt and qemu.

    In these commands, replace your_username with the actual username.

    sudo usermod --append --groups libvirt your_username
    sudo usermod --append --groups qemu your_username
  5. Ensure that IOMMU is enabled. If it is not enabled, run this command to enable it.

    grubby --update-kernel=ALL --args=intel_iommu=on
    dmesg | grep -I IOMMU
  6. Check IOMMU and validate the setup. Ensure that all checks show as PASS.

    virt-host-validate

    If the IOMMU check is not PASS, then use these commands to enable it.

    sudo grubby --update-kernel=ALL --args=intel_iommu=on
    sudo reboot

KVM is successfully installed on RHEL and validated.


Configure network bridges or SRIOV

Crosswork requires a 10G interface for all the data layer communications to operate at a scale. You can choose any networking configuration that provides 10G throughput.

Note

For KVM deployment, configure either network bridges or SRIOV, but not both.

For detailed instructions, see these topics:


Configure network bridges

A network bridge, such as Linux bridge and Open vSwitch (OVS), acts like a virtual network switch, allowing multiple network interfaces to communicate as if they are on the same physical network. For detailed information, refer to RHEL 8.x or RHEL 9.x documentation.

Complete these steps to configure network bridges.

Procedure

  1. Create network bridge connection for management interface:

    1. Create a new network connection of type "bridge" with the interface name intMgmt and assign it the connection name intMgmt.
      nmcli connection add type bridge ifname intMgmt con-name intMgmt
      
    2. Add a new bridge-slave connection, associating the physical network interface <interface1> with the previously created bridge intMgmt.
      nmcli connection add type bridge-slave ifname <interface1> master intMgmt

      Example:

      nmcli con add type bridge-slave ifname <hostmgmtIntf> master intMgmt con-name intMgmt-slave-<hostmgmtIntf>
    3. Assign IP address, netmask, gateway, DNS, and domain to intMgmt.
      nmcli connection modify intMgmt ipv4.addresses <IPv4-address>/<subnet-mask>

      Example:

      nmcli con modify intMgmt ipv4.addresses <hostmgmtIp/mask>
      nmcli con modify intMgmt ipv4.gateway <mgmtgw>
      nmcli con modify intMgmt ipv4.dns <dnsIp> 
      nmcli con modify intMgmt ipv4.dns-search 'cisco.com'
      nmcli con modify intMgmt ipv4.method manual
      nmcli con modify intMgmt ipv4.route-metric 50
    4. Bring up the intMgmt network connection.
      nmcli connection up intMgmt

      Example:

      nmcli con up intMgmt
  2. Repeat the above steps and create network bridge connection for data interface:

    1. Create a network bridge connection with the interface name intData and assign it the connection name intData.
      nmcli connection add type bridge ifname intData con-name intData

      Example:

      nmcli con add type bridge ifname intData con-name intData
    2. Add a bridge-slave connection, associating the physical network interface <interface2> with the previously created bridge intData.
      nmcli connection add type bridge-slave ifname <interface2> master intData

      Example:

      nmcli con add type bridge-slave ifname <hostdataIntf> master intData con-name intData-slave-<hostdataIntf>
    3. Assign IP address and other details to intData.
      nmcli connection modify intData ipv4.addresses <IPv4-address>/<subnet-mask>

      Example:

      nmcli con modify intData ipv4.addresses <hostdataIp/mask>
      nmcli con modify intData ipv4.method manual 
      nmcli con modify intData ipv4.gateway <datagw>
      nmcli con modify intData ipv4.route-metric 90
    4. Bring up the intData network connection.
      nmcli connection up intData

      Example:

      nmcli con up intData

Both network bridges, intMgmt and intData, are configured and active, enabling communication across associated network interfaces as if connected to the same physical network.


Configure SRIOV

SRIOV allows you to share a single physical network interface among multiple VMs by creating multiple Virtual Functions (VFs).

Complete these steps to configure SRIOV.

Procedure

  1. Open the rc.local file in the vi editor.

    vi /etc/rc.d/rc.local
  2. Set the number of VFs for the network interfaces according to your requirement. In a Cisco Crosswork Planning single VM installation, you need a minimum of two network interfaces: one for management and one for data. By default, two VFs are configured for each interface. You can configure additional VFs for future scalability needs.

    For example, to set the number of VFs to 2 for each <interface1> and <interface2>, use these commands. In this example, <interface1> refers to the management interface and <interface2> refers to the data interface.

    echo 2 > /sys/class/net/<interface1>/device/sriov_numvfs
    echo 2 > /sys/class/net/<interface2>/device/sriov_numvfs
  3. Change the permissions of the rc.local file to make it executable.

    chmod +x /etc/rc.d/rc.local
  4. If any of the interfaces are configured for VLAN, assign VLAN IDs to the interfaces.

    ip link set <interface1> vf 0 vlan <vlanid>
    ip link set <interface2> vf 1 vlan <vlanid>
  5. Save the changes and reboot the system.

  6. List all the PCI devices for all the virtual functions in a tree format. This is useful for verifying the setup and ensuring that the VFs are correctly recognized by the KVM hypervisor.

    virsh nodedev-list --tree

    In this procedure, since we set the number of VFs as 2 in Step 2, two VFs for each management interface and data interface are created. As a result, a total of four PCI devices are generated: two for management and two for data.

    This PCI device information is used during the installation process with SRIOV (Step 4 of Install Cisco Crosswork Planning on KVM using CLI).


Install Cisco Crosswork Planning on KVM using CLI

This topic describes how to install Cisco Crosswork Planning on KVM manually using CLI.

Before you begin

Procedure

  1. Prepare the configuration ISO file for Cisco Crosswork Planning.

    1. Update the ovf-env.xml file as needed. For a sample configuration file, see Sample OVF template (.xml) to deploy Cisco Crosswork Planning on KVM. For installation parameter descriptions, see Installation parameters. Note that you cannot change the file name, ovf-env.xml.
      $ cat ovf-env.xml
    2. Generate the ISO file.
      $ mkisofs -R -relaxed-filenames -joliet-long -iso-level 3 -l -o cp1.iso ovf-env.xml
      Note

      In the above command, "cp1" is the host name of the Cisco Crosswork Planning VM.

  2. Download the installer bundle (.tar.gz file) from cisco.com (for 7.2.0, use this link and for 7.2.1-SP, use this link) and extract it.

    • For 7.2.0:

      tar -xvf crosswork-planning-single-node-deployment-7.2.0-45-qcow2.tar.gz

      This command creates three qcow2 files:

      • crosswork-planning-single-node-deployment-7.2.0-45_rootfs.qcow2

      • crosswork-planning-single-node-deployment-7.2.0-45_dockerfs.qcow2

      • crosswork-planning-single-node-deployment-7.2.0-45_extrafs.qcow2

    • For 7.2.1-SP:

      tar -xvf crosswork-planning-single-node-deployment-7.2.1-qcow2.tar.gz

      This command creates three qcow2 files:

      • crosswork-planning-single-node-deployment-7.2.1_rootfs.qcow2

      • crosswork-planning-single-node-deployment-7.2.1_dockerfs.qcow2

      • crosswork-planning-single-node-deployment-7.2.1_extrafs.qcow2

  3. Navigate to your installation directory and create three disks.

    cd cp1/
    qemu-img create -f qcow2 disk3 20G
    qemu-img create -f qcow2 disk4 485G
    qemu-img create -f qcow2 disk6 15G
  4. Install Cisco Crosswork Planning using the network bridge or SRIOV.

    • For 7.2.0:

      • For network bridge:

        virt-install --boot uefi --boot hd,cdrom --connect qemu:///system --virt-type kvm --name cp1 --ram 128000 --vcpus 16 --os-type linux --disk path=crosswork-planning-single-node-deployment-7.2.0-45_rootfs.qcow2,format=qcow2,bus=scsi --disk path=crosswork-planning-single-node-deployment-7.2.0-45_dockerfs.qcow2,format=qcow2,bus=scsi --disk path=disk3,format=qcow2,bus=scsi --disk path=disk4,format=qcow2,bus=scsi --disk path=crosswork-planning-single-node-deployment-7.2.0-45_extrafs.qcow2,format=qcow2,bus=scsi --disk path=disk6,format=qcow2,bus=scsi --disk=cp1.iso,device=cdrom,bus=scsi --import --network bridge=intMgmt,model=virtio --network bridge=intData,model=virtio --noautoconsole --os-variant ubuntu22.04 --graphics vnc,listen=0.0.0.0
      • For SRIOV:

        virt-install --boot uefi --boot hd,cdrom --connect qemu:///system --virt-type kvm --name cp1 --ram 128000 --vcpus 16 --cpu host-passthrough --disk path=cw_rootfs.vmdk.qcow2,format=qcow2,bus=scsi --disk path=cw_dockerfs.vmdk.qcow2,format=qcow2,bus=scsi --disk path=disk3,format=qcow2,bus=scsi --disk path=disk4,format=qcow2,bus=scsi --disk path=cw_extrafs.vmdk.qcow2,format=qcow2,bus=scsi --disk path=disk6,format=qcow2,bus=scsi --disk=cp1.iso,device=cdrom,bus=scsi --import --network none --host-device=pci_0000_17_00_0 --host-device=pci_0000_17_00_2 --os-variant ubuntu-lts-latest &
        
        
    • For 7.2.1-SP:

      • For network bridge:

        virt-install --boot uefi --boot hd,cdrom --connect qemu:///system --virt-type kvm --name cp1 --ram 128000 --vcpus 16 --os-type linux --disk path=crosswork-planning-single-node-deployment-7.2.1_rootfs.qcow2,format=qcow2,bus=scsi --disk path=crosswork-planning-single-node-deployment-7.2.1_dockerfs.qcow2,format=qcow2,bus=scsi --disk path=disk3,format=qcow2,bus=scsi --disk path=disk4,format=qcow2,bus=scsi --disk path=crosswork-planning-single-node-deployment-7.2.1_extrafs.qcow2,format=qcow2,bus=scsi --disk path=disk6,format=qcow2,bus=scsi --disk=cp1.iso,device=cdrom,bus=scsi --import --network bridge=intMgmt,model=virtio --network bridge=intData,model=virtio --noautoconsole --os-variant ubuntu22.04 --graphics vnc,listen=0.0.0.0
      • For SRIOV:

        virt-install --boot uefi --boot hd,cdrom --connect qemu:///system --virt-type kvm --name cp1 --ram 128000 --vcpus 16 --cpu host-passthrough --disk path=cw_rootfs.vmdk.qcow2,format=qcow2,bus=scsi --disk path=cw_dockerfs.vmdk.qcow2,format=qcow2,bus=scsi --disk path=disk3,format=qcow2,bus=scsi --disk path=disk4,format=qcow2,bus=scsi --disk path=cw_extrafs.vmdk.qcow2,format=qcow2,bus=scsi --disk path=disk6,format=qcow2,bus=scsi --disk=cp1.iso,device=cdrom,bus=scsi --import --network none --host-device=pci_0000_17_00_0 --host-device=pci_0000_17_00_2 --os-variant ubuntu-lts-latest &
        
        

Cisco Crosswork Planning is installed on KVM and ready for use.


Sample OVF template (.xml) to deploy Cisco Crosswork Planning on KVM

This section provides the sample ovf-env.xml file for installing Cisco Crosswork Planning 7.2.1-SP on KVM.

<Environment
     xmlns="http://schemas.dmtf.org/ovf/environment/1"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:oe="http://schemas.dmtf.org/ovf/environment/1"
     xmlns:ve="http://www.vmware.com/schema/ovfenv"
     oe:id=""
   <PlatformSection>
      <Kind>KVM</Kind>
      <Locale>en</Locale>
   </PlatformSection>
    <PropertySection>
        <Property oe:key="CWPassword" oe:value="**********"/>
        <Property oe:key="CWUsername" oe:value="cw-admin"/>
        <Property oe:key="ClusterCaKey" oe:value=""/>
        <Property oe:key="ClusterCaPubKey" oe:value=""/>
        <Property oe:key="CwInstaller" oe:value="False"/>
        <Property oe:key="DNSv4" oe:value="72.163.128.140"/>
        <Property oe:key="DataIPv4Address" oe:value="10.225.120.180"/>
        <Property oe:key="DataIPv4Gateway" oe:value="10.225.120.129"/>
        <Property oe:key="DataIPv4Netmask" oe:value="255.255.255.128"/>
        <Property oe:key="DataPeerIPs" oe:value=""/>
        <Property oe:key="DataVIP" oe:value="10.225.120.179"/>
        <Property oe:key="DataVIPName" oe:value=""/>
        <Property oe:key="Deployment" oe:value="cw_ipv4"/>
        <Property oe:key="Disclaimer" oe:value="Cisco Crosswork"/>
        <Property oe:key="Domain" oe:value="cisco.com"/>
        <Property oe:key="EnableSkipAutoInstallFeature" oe:value="True"/>
        <Property oe:key="EnforcePodReservations" oe:value="True"/>
        <Property oe:key="IgnoreDiagnosticsCheckFailure" oe:value="True"/>
        <Property oe:key="InitMasterCount" oe:value="1"/>
        <Property oe:key="InitNodeCount" oe:value="1"/>
        <Property oe:key="IsSeed" oe:value="True"/>
        <Property oe:key="K8Orch" oe:value=""/>
        <Property oe:key="K8sPodNetworkV4" oe:value="10.244.0.0"/>
        <Property oe:key="K8sServiceNetworkV4" oe:value="10.96.0.0"/>
        <Property oe:key="ManagementIPv4Address" oe:value="10.225.120.111"/>
        <Property oe:key="ManagementIPv4Gateway" oe:value="10.225.120.1"/>
        <Property oe:key="ManagementIPv4Netmask" oe:value="255.255.255.128"/>
        <Property oe:key="ManagementVIP" oe:value="10.225.120.56"/>
        <Property oe:key="ManagementVIPName" oe:value=""/>
        <Property oe:key="ManagerPeerIPs" oe:value=""/>
        <Property oe:key="NTP" oe:value="ntp.esl.cisco.com"/>
        <Property oe:key="Timezone" oe:value="US/Pacific"/>
        <Property oe:key="VMLocation" oe:value="default"/>
        <Property oe:key="VMType" oe:value="Hybrid"/>
        <Property oe:key="bckup_min_percent" oe:value="35"/>
        <Property oe:key="corefs" oe:value="18"/>
        <Property oe:key="ddatafs" oe:value="485"/>
        <Property oe:key="logfs" oe:value="20"/>
        <Property oe:key="ramdisk" oe:value="0"/>
        <Property oe:key="ssd" oe:value="15"/>
        <Property oe:key="VMSize" oe:value="XLarge"/>
        <Property oe:key="ThinProvisioned" oe:value="False"/>
        <Property oe:key="UseNonDefaultCalicoBgpPort" oe:value="True"/>
        <Property oe:key="bootOptions.efiSecureBootEnabled" oe:value="False"/>
   </PropertySection>
</Environment>

Commands to manage Cisco Crosswork Planning VM on KVM

This section provides the commands to manage the Cisco Crosswork Planning VM on KVM. In these examples, "cp1" is the host name of Cisco Crosswork Planning VM.

  • To access the Cisco Crosswork Planning VM console from KVM:

    [root@KVM-41 cp1]# virsh console cp1
  • To show the current status of Cisco Crosswork Planning in KVM:

    [root@KVM-41 cp1]# virsh list --all
    Id   Name   State
    ----------------------
    2    cp1    running
  • To shut down the Cisco Crosswork Planning VM:

    [root@KVM-41 cp1]# virsh shutdown cp1
    Domain 'cp1' is being shutdown
     
    [root@KVM-41 cp1]# virsh list --all
    Id   Name      State
    --------------------------
    -    cp1   shut off
  • To restart the Cisco Crosswork Planning VM:

    [root@KVM-41 ~]# virsh start cp1
    Domain 'cp1' started
     
    [root@KVM-41 cp1]# virsh list --all
    Id   Name   State
    ----------------------
    1    cp1    running
  • To configure the Cisco Crosswork Planning VM to start automatically after a power reset of KVM:

    [root@KVM-41 ~]# virsh autostart cp1
    
    Domain 'cp1' marked as autostarted

Uninstall the Cisco Crosswork Planning VM in a KVM deployment

This topic describes how to uninstall the Cisco Crosswork Planning VM in a KVM deployment.

Procedure

  1. Use the virsh destroy command to stop the Cisco Crosswork Planning VM forcefully.

    Example:

    [root@KVM-41 cp1]# virsh destroy cp1
    Domain 'cp1' destroyed
  2. Use the virsh undefine command to remove the configuration of the Cisco Crosswork Planning VM.

    Example:

    [root@KVM-41 cp1]# virsh undefine --nvram cp1
    Domain 'cp1' has been undefined

The Cisco Crosswork Planning VM is successfully removed from the KVM deployment.