|
| 1 | +# Installation |
| 2 | + |
| 3 | +## Pre-requisites |
| 4 | + |
| 5 | +The following requirements must be satisfied to use the labs: |
| 6 | + |
| 7 | +* The user should have `sudo` privileges |
| 8 | +* A Linux host/server/VM |
| 9 | +* [Python](https://www.python.org/downloads/) 3.8 or later |
| 10 | +* Install [ansible-core](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html) from **2.12.6** to **2.15.x** excluding **2.13.0** |
| 11 | +* Install [arista.avd](https://avd.arista.com/stable/docs/installation/collection-installation.html#install-collection-from-ansible-galaxy) collection from Ansible Galaxy |
| 12 | +* AVD additional Python [requirements](https://avd.arista.com/stable/docs/installation/collection-installation.html#python-requirements-installation) |
| 13 | +* Docker |
| 14 | +* [containerlab](https://containerlab.dev/install/) |
| 15 | +* Git |
| 16 | +* Arista cEOS-Lab image (*4.23.x or above*) |
| 17 | +* Alpine-host image |
| 18 | +* Clone the repository using `git clone`. |
| 19 | + |
| 20 | +=== "HTTPS" |
| 21 | + |
| 22 | + ```shell |
| 23 | + git clone https://github.com/arista-netdevops-community/avd-cEOS-Lab.git |
| 24 | + ``` |
| 25 | + |
| 26 | +=== "SSH" |
| 27 | + |
| 28 | + ```shell |
| 29 | + git clone git@github.com:arista-netdevops-community/avd-cEOS-Lab.git |
| 30 | + ``` |
| 31 | + |
| 32 | +??? info |
| 33 | + |
| 34 | + * For Python3, docker and ansible-core installation please refer to the installation guides based on the host OS. |
| 35 | + * For arista.avd installation please refer to the [official](https://avd.arista.com/stable/docs/installation/collection-installation.html) documenation. |
| 36 | + * For containerlab installation please refer to the [official](https://containerlab.dev/install/) documentation. |
| 37 | + |
| 38 | +??? warning "Note" |
| 39 | + |
| 40 | + * Containerlab topology definitions have changed starting v0.15 - [Release Notes](https://containerlab.dev/rn/0.15/). Latest [release](https://github.com/arista-netdevops-community/avd-cEOS-Lab/releases) of this repository is containerlab v0.15 (and above) compatible. For older containerlab compatible syntax download [v1.1.2](https://github.com/arista-netdevops-community/avd-cEOS-Lab/releases) |
| 41 | + * arista.avd v3.0.0 contains breaking changes to data models [Release Notes](https://avd.sh/en/latest/docs/release-notes/3.x.x.html). Latest release of this repository is arista.avd v3.0.0 and above compatible. For older avd compatible syntax download older [release](https://github.com/arista-netdevops-community/avd-cEOS-Lab/releases). |
| 42 | + * Starting Python 3.10 the default SSL/TLS ciphers have been [updated](https://bugs.python.org/issue43998). Latest [release](https://github.com/arista-netdevops-community/avd-cEOS-Lab/releases) of this repository updates the cipher suite on EOS via a security profile applied to eAPI to be compatible with Python 3.10. |
| 43 | + |
| 44 | +--- |
| 45 | + |
| 46 | +### Installing Arista cEOS-Lab image |
| 47 | + |
| 48 | +* Download the image from [www.arista.com](http://www.arista.com/) > Software Downloads > cEOS-Lab > EOS-4.2x.y > cEOS-lab-4.2x.y.tar.xz |
| 49 | +* Copy the `cEOS-lab-4.2x.y.tar.xz` to the host/server/VM. |
| 50 | +* Ensure Docker is already set up and running. |
| 51 | + |
| 52 | +```shell |
| 53 | +docker version |
| 54 | +``` |
| 55 | + |
| 56 | +* Next, use the tar file to import the cEOS-Lab image using the following command |
| 57 | + |
| 58 | +```shell |
| 59 | +docker import cEOS-lab.tar.xz ceosimage:TAG |
| 60 | +``` |
| 61 | + |
| 62 | +```shell title="Example" |
| 63 | +docker import cEOS64-lab-4.26.1F.tar.xz ceosimage:4.26.1F |
| 64 | +``` |
| 65 | + |
| 66 | +* Now you should be able to see the Arista cEOS-Lab image. |
| 67 | + |
| 68 | +```shell |
| 69 | +docker images | egrep "REPO|ceos" |
| 70 | +``` |
| 71 | + |
| 72 | +??? note "Reveal Output" |
| 73 | + |
| 74 | + ```shell |
| 75 | + REPOSITORY TAG IMAGE ID CREATED SIZE |
| 76 | + ceosimage 4.26.1F 41b309a15f5c 30 hours ago 1.71GB |
| 77 | + ``` |
| 78 | + |
| 79 | +--- |
| 80 | + |
| 81 | +### Installing the alpine-host image |
| 82 | + |
| 83 | +!!! info |
| 84 | + |
| 85 | + You have the option to use Arista cEOS-Lab or any other Linux-based container as a client/host. |
| 86 | + |
| 87 | + In which case please update the `topology.yaml` in respective lab folders, as by default lab uses an alpine-host image for client/host containers |
| 88 | + |
| 89 | +* Build the alpine-host image using the modified Dockerfile from [docker-topo](https://github.com/networkop/docker-topo/tree/master/topo-extra-files/host) |
| 90 | +* Navigate to `alpine_host` directory in this repository |
| 91 | + |
| 92 | +```shell |
| 93 | +├── alpine_host |
| 94 | + ├── Dockerfile |
| 95 | + ├── README.md |
| 96 | + ├── build.sh |
| 97 | + └── entrypoint.sh |
| 98 | +``` |
| 99 | + |
| 100 | +* Run the `build.sh` script |
| 101 | + |
| 102 | +```shell |
| 103 | +./build.sh |
| 104 | +``` |
| 105 | + |
| 106 | +* Verify the alpine-host image is created |
| 107 | + |
| 108 | +```shell |
| 109 | +docker images | egrep "TAG|alpine" |
| 110 | +``` |
| 111 | + |
| 112 | +??? note "Reveal Output" |
| 113 | + |
| 114 | + ```shell |
| 115 | + REPOSITORY TAG IMAGE ID CREATED SIZE |
| 116 | + alpine-host latest eab21450c58c 30 hours ago 68.7MB |
| 117 | + ``` |
| 118 | + |
| 119 | +--- |
| 120 | + |
| 121 | +### cEOS-Lab containerlab template |
| 122 | + |
| 123 | +!!! warning "Note" |
| 124 | + |
| 125 | + The below steps are no longer required for containerlab v0.15 and above. |
| 126 | + |
| 127 | + The v2.0.0 and above releases of this repository include this template in the `topology.yaml` itself. |
| 128 | + |
| 129 | + ***The Below steps are only required if using containerlab version less than v0.15*** |
| 130 | + |
| 131 | +Replace the containerlab cEOS default template with the `ceos.cfg.tpl` file from this repository. |
| 132 | + |
| 133 | +```shell |
| 134 | +ceos_lab_template |
| 135 | +└── ceos.cfg.tpl |
| 136 | +``` |
| 137 | + |
| 138 | +??? danger "Warning" |
| 139 | + |
| 140 | + If the default template is not replaced with the one from this repository, then for the initial AVD config replace you will observe a timeout error. |
| 141 | + |
| 142 | +The default template can be usually found at `/etc/containerlab/templates/arista/ceos.cfg.tpl` |
| 143 | + |
| 144 | +This is to ensure the containers by default come up with: |
| 145 | + |
| 146 | +* [x] Multi agent routing model |
| 147 | +* [x] MGMT vrf for management connectivity |
| 148 | +* [x] eAPI enabled |
0 commit comments