From 78b570d44667d176c17ca3cf48c787c3d70f29d4 Mon Sep 17 00:00:00 2001 From: MasqAs Date: Sun, 8 Oct 2023 16:22:14 +0200 Subject: [PATCH] Update Readme and cEOS Version --- README.md | 2 +- containerlab/lab_definition.yml | 8 ++-- documentation/INSTALLATION.md | 70 ++++++++++++++++++++++++++++++++- 3 files changed, 74 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 75af616..2f2d9b6 100644 --- a/README.md +++ b/README.md @@ -89,5 +89,5 @@ This project is licensed under the APACHE license. See the [LICENSE](LICENSE) fi ## Sources -- [ContainerLab](https://containerlab.dev/manual/kinds/ext-container/) +- [ContainerLab](https://containerlab.dev/) - [The ASCII Construct](https://www.theasciiconstruct.com/post/multivendor-evpn-vxlan-l2-overlay/) \ No newline at end of file diff --git a/containerlab/lab_definition.yml b/containerlab/lab_definition.yml index 8f0af0d..fcebde8 100644 --- a/containerlab/lab_definition.yml +++ b/containerlab/lab_definition.yml @@ -3,15 +3,15 @@ topology: nodes: spine1: kind: ceos - image: ceos:4.30.1F + image: ceos:4.30.3M mgmt-ipv4: 172.20.20.101 spine2: kind: ceos - image: ceos:4.30.1F + image: ceos:4.30.3M mgmt-ipv4: 172.20.20.102 leaf1: kind: ceos - image: ceos:4.30.1F + image: ceos:4.30.3M mgmt-ipv4: 172.20.20.11 leaf2: kind: vr-n9kv @@ -23,7 +23,7 @@ topology: mgmt-ipv4: 172.20.20.13 leaf4: kind: ceos - image: ceos:4.30.1F + image: ceos:4.30.3M mgmt-ipv4: 172.20.20.14 host1: kind: linux diff --git a/documentation/INSTALLATION.md b/documentation/INSTALLATION.md index b392619..86b3a22 100644 --- a/documentation/INSTALLATION.md +++ b/documentation/INSTALLATION.md @@ -28,7 +28,7 @@ sudo apt -y install python3-bs4 sshpass make sudo apt -y install git # move to /opt and clone the project -sudo cd /opt && sudo git clone https://github.com/hellt/vrnetlab +cd /opt && sudo git clone https://github.com/hellt/vrnetlab # optional: change the directory permissions sudo chown -R $USER:$USER vrnetlab @@ -56,6 +56,74 @@ echo \ "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update +sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin + +# To be able to execute docker with the current user +sudo usermod -aG docker $USER +``` + +## Images installation + +### Arista cEOS + +To download and install the arista cEOS image, you need to be registered to [arista.com](https://www.arista.com/en/support/software-download). +Once you created an account, please logged in and down the cEOS docker images. + +To add this new image to docker, please use the docker CLI command : +```bash +docker import cEOS-lab-4.30.3M.tar ceos:4.30.3M +``` + +### Cisco N9Kv + +Cisco’s N9Kv is also available for free (again, locked behind an account registration). +Please, download the qcow2 image and move it to the vrnetlab/n9kv folder : + +```bash +➜ n9kv git:(master) pwd +/opt/vrnetlab/n9kv +➜ n9kv git:(master) ls -l +total 1931856 +drwxr-xr-x 2 root root 4096 8 oct. 13:44 docker +-rw-r--r-- 1 root root 508 8 oct. 13:44 Makefile +-rwxr--r-- 1 root root 1978204160 14 mai 2022 nxosv.10.2.3.qcow2 +-rw-r--r-- 1 root root 585 8 oct. 13:44 README.md +``` + +Be sure to use the "n9kv" folder and not the "nxos" folder - the "nxos" folder is for the older titanium images. Once the image is copied here, trigger "make" to build the docker image for this + +```bash +➜ n9kv git:(master) sudo make +for IMAGE in nxosv.10.2.3.qcow2; do \ + echo "Making $IMAGE"; \ + make IMAGE=$IMAGE docker-build; \ +done +Making nxosv.10.2.3.qcow2 +make[1] : on entre dans le répertoire « /opt/vrnetlab/n9kv » +rm -f docker/*.qcow2* docker/*.tgz* docker/*.vmdk* docker/*.iso +Building docker image using nxosv.10.2.3.qcow2 as vrnetlab/vr-n9kv:10.2.3 +cp ../common/* docker/ +make IMAGE=$IMAGE docker-build-image-copy +make[2] : on entre dans le répertoire « /opt/vrnetlab/n9kv » +cp nxosv.10.2.3.qcow2* docker/ +make[2] : on quitte le répertoire « /opt/vrnetlab/n9kv » +(cd docker; docker build --build-arg http_proxy= --build-arg https_proxy= --build-arg IMAGE=nxosv.10.2.3.qcow2 -t vrnetlab/vr-n9kv:10.2.3 .) +[+] Building 96.9s (10/10) +FINISHED +docker:default + +[...] + + => [internal] load build definition from Dockerfile +make[1] : on quitte le répertoire « /opt/vrnetlab/n9kv » +``` + +Now you should see images available to use : +```bash +➜ n9kv git:(master) sudo docker images +REPOSITORY TAG IMAGE ID CREATED SIZE +vrnetlab/vr-n9kv 9.3.9 75c3c348b49f 48 seconds ago 2.43GB +ceos 4.30.3M 63870e68ff8d 2 hours ago 1.95GB ``` ## Sources