How to use Arista vEOS on CML
Tags: homelab, cisco, cml, arista
Published: 2022-08-13 17:57:48

# Summary
In CML (Cisco Modeling Labs), the available platforms can be defined and used by yourself in addition to the standard ones.

This procedure is shown in the user guide.
https://developer.cisco.com/docs/modeling-labs/#!custom-vm-images


Arista EOS also offers vEOS/cEOS available for virtual machines and containers.
At the time of this writing, the software is available for download by anyone with user registration, and examples of its use in various network simulators are introduced.

Setting up EVE-NG, CloudVision Portal and vEOS
https://aristanetworks.force.com/AristaCommunity/s/article/setting-up-eve-ng-cloudvision-portal-and-veos

vEOS/cEOS GNS3 Labs
https://aristanetworks.force.com/AristaCommunity/s/article/veos-ceos-gns3-labs

Running vEOS in GNS3 1.5
https://aristanetworks.force.com/AristaCommunity/s/article/running-veos-in-gns3-1-5


We can also see examples of attempts to use the system in CML.

Using Arista with CML
https://www.youtube.com/watch?v=Bg8aHL48n5g&t=2s

Importing Arista Devices into Cisco CML
https://www.youtube.com/watch?v=LfivGQa03sM&t=1166s


This time, I tried to set up EOS 4.28.1F in CML 2.2.3 environment (installed on [the previously built ESXi host](https://dev.to/rhira777/getting-128gb-esxi-host-for-my-home-lab-year-2022-948)), and was able to start using it.
The following is a record of that.

# Detail of what I did
### Get vEOS
- Obtain from Arista's website
	- https://www.arista.com/en/support/software-download
	- Download vmdk vEOS file
		- Select the non-64-bit one this time
		- "vEOS-lab-XXXX.vmdk"

---

### Define node
- Select "Node and Image Definition" from "TOOLS"
- Confirm that the "Node Definition" tab is selected and click the "ADD" button.
- Select/enter the following information in the "General" field
	- ID: "veos"
	- Nature: "switch"
- Select/enter the following information in the "User Interface" field
	- Prefix: "veos-"
	- Icon: "switch"
	- Label: "Arista vEOS"

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u240f116iyvkclflpxii.JPG)


---

- Select/enter the following information in the "Linux Native Simulation" field
	- Domain Driver: "KVM"
	- Simulation Driver: "server"
	- Disk Driver: "IDE"
	- Memory: "2048" in this case
	- CPUs: "2" in this case
	- CPU Limit: "100"
	- Network Driver: "E1000"
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1uvqphlu9u436ab9x9gh.JPG)

---

- Select/enter the following information in the "Interfaces" field
	- Loopback name: "Loopback0"
	- Number of serial ports: "1"
	- Default number of physical interfaces: "9" in this case
	- interface 0："Management1"

- In the same field, press the "ADD INTERFACE" button and enter the following information
	- interface 1: "Ethernet1"

- In the same field, press the "INCREMENT LAST INTERFACE" button until the number specified in the "Default number of physical interfaces" is displayed.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lp69obj28jesaa9y1ikh.JPG)


---

- Enter the following information in the "Boot" field
	- Timeout: "480" in this case

- In the same field, click the "ADD BOOT LINE button" and enter the following information
	- "localhost login"

- Click the CREATE button
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8jtsxl0dxd9x1d233wg2.JPG)


### Define image

- Select "Node and Image Definition" from "TOOLS"
- Select the "Image Definition" tab
- Click the "MANAGE" button
- Select "Choose a file" in the "Upload New Image File" field and specify the downloaded vEOS file
- Click the "UPLOAD IMAGE" button
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/88fvwdcpv7zvne72b05p.JPG)

---

- After confirming the display of the file specified in the "Uploaded Images" field, press the "CREATE NEW IMAGE DEFINITION" button.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n25k9osmr9gmrcnd2d1q.JPG)

---

- Select/enter the following information in the "General" field
	- ID: "veos-4-28-1f"
	- Label: "Arista vEOS 4.28.1F"
	- Disk Image: The uploaded vEOS file
	- Node Definition: The defined node

- Press "CREATE IMAGE DEFINITION" button
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oejumhrxqvwqzxxom956.JPG)

---

### Confirmation of operation
I created a lab using the registered node and it was successfully started.
It was also confirmed that communication with neighboring nodes was possible.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xshwxgpi2pdr86tyhxmt.JPG)

# Supplemental information and others
The Aboot file was not used in this work.
Also, the conversion to qcow2 was not performed.