Arista has recently released a cEOS ARM64-based container image. This post will guide you through the process of downloading and importing the container image for Containerlab on macOS.

Prerequisite

macOS

  1. Point your web browser to the Arista Software Download page.

  2. Log in with your Arista credentials.

  3. Click the cEOSarm-lab-4.33.1-EFT3.tar.xz file link to download.

Download cEOS file
  1. Save the cEOSarm-lab-4.33.1-EFT3.tar.xz file to your Downloads folder.

  2. Open your favorite terminal emulator, and change to the Downloads directory.

cd ~/Downloads
  1. The download from the web browser may strip off the .xz file extension. Append if needed.
mv cEOSarm-lab-4.33.1-EFT3.tar cEOSarm-lab-4.33.1-EFT3.tar.xz
  1. Copy the file to the images directory on the clab Linux machine.
orb push -m clab cEOSarm-lab-4.33.1-EFT3.tar.xz ~/images/

Containerlab

  1. Log in to the clab Linux machine.
orb -m clab
  1. Change to the images directory.
cd ~/images
  1. Import the compressed archive with Docker.
docker import cEOSarm-lab-4.33.1-EFT3.tar.xz ceos:4.33.1-EFT3
  1. Verify the Arista cEOS container image is now listed.
docker images ceos

output:

REPOSITORY   TAG           IMAGE ID       CREATED          SIZE
ceos         4.33.1-EFT3   27eded449f3e   5 seconds ago    2.76GB

Lab

  1. Change to the eos directory.
cd ~/labs/eos
  1. Deploy the lab.
clab deploy

output:

INFO[0000] Containerlab v0.64.0 started
INFO[0000] Parsing & checking topology file: eos.clab.yml
INFO[0000] Creating docker network: Name="clab", IPv4Subnet="172.20.20.0/24", IPv6Subnet="3fff:172:20:20::/64", MTU=1500
INFO[0000] Creating lab directory: /home/marc/labs/eos/clab-eos
INFO[0000] Creating container: "sw1"
INFO[0000] Running postdeploy actions for Arista cEOS 'sw1' node
INFO[0012] Adding containerlab host entries to /etc/hosts file
INFO[0012] Adding ssh config for containerlab nodes
╭──────────────┬──────────────────┬─────────┬───────────────────╮
│     Name     │    Kind/Image    │  State  │   IPv4/6 Address  │
├──────────────┼──────────────────┼─────────┼───────────────────┤
│ clab-eos-sw1 │ ceos             │ running │ 172.20.20.2       │
│              │ ceos:4.33.1-EFT3 │         │ 3fff:172:20:20::2 │
╰──────────────┴──────────────────┴─────────┴───────────────────╯
  1. Test SSH connectivity to the management interface of the node.
sshpass -padmin ssh clab-eos-sw1 show version

output:

Arista cEOSLab
Hardware version:
Serial number:
Hardware MAC address: 001c.730c.6262
System MAC address: 001c.730c.6262

Software image version: 4.33.1F-39308076.liffeyceoslabarm (engineering build)
Architecture: aarch64
Internal build version: 4.33.1F-39308076.liffeyceoslabarm
Internal build ID: 98fc6c22-9c8e-4226-9f9f-083a36d0bcb3
Image format version: 1.0
Image optimization: None
Kernel version: 6.12.13-orbstack-00304-gede1cf3337c4

Uptime: 0 minutes
Total memory: 8188720 kB
Free memory: 5674304 kB
  1. Destroy the lab.
clab destroy -c