Install System Software

netlab install uses internal installation scripts to install nice-to-have Ubuntu software, Ansible and related networking libraries, or libvirt+vagrant.

The ubuntu and libvirt installation scripts run only on Ubuntu1 and Debian2, the ansible installation script should run in any environment with bash and pip3.

Usage

usage: netlab install [-h] [-v] [-q] [-y] [{ubuntu,containerlab,ansible,libvirt} ...]

Install additional software

positional arguments:
  {ubuntu,containerlab,ansible,libvirt}
                        Run the specified installation script

optional arguments:
  -h, --help            show this help message and exit
  -v, --verbose         Verbose logging
  -q, --quiet           Be as quiet as possible
  -y, --yes             Run the script without prompting for a confirmation

Installation Scripts

  • ubuntu script installs Python3 development components that might be needed for Ansible installation, common tools like git and sshpass, and XML libraries.

  • ansible script uses pip to install the latest version of Ansible, networking libraries (netaddr, paramiko, netmiko), text parsing libraries (testfsm, ttp, ntc-templates), and a few other utility libraries (jmespath, yamllint, yq)

  • libvirt script installs libvirt and supporting libraries/packages, vagrant, vagrant-libvirt plugin, and creates the vagrant-libvirt virtual network.

  • containerlab script installs Docker Engine and containerlab.


1

Tested on Ubuntu 20.04

2

Tested on Debian 10 and 11