How do I add a virl Vios image to Eve Ng?

  • 1 Mart 2022

Merhabalar, bu yazımızda EVE-NG Cisco VIRL(Virtual Internet Routing Lab) için vIOS imajları kurulumunu yapacağız. Kurulum işlemi oldukça basit; Cisco vIOS bağlantısında yer alan indirme linkinden dosyayı indiriyoruz.

cisco-vios.zip isimli dosyanın içerisinde bulunan vios_l2-adventerprisek9-m.03.2017 ve vios-adventerprisek9-m.SPA.156-1.T isimli klasörler /opt/unetlab/addons/qemu/ dizinine aktarılır.

NOT : vios-adventerprisek9-m.SPA.156-1.T klasöründe  Router, vios_l2-adventerprisek9-m.03.2017 klasöründe ise L2 Switch imajı yer almaktadır.

Aktarma işlemi yapıldıktan sonra sanal makinede aşağıdaki kodun çalıştırılması gerekmektedir.

/opt/unetlab/wrappers/unl_wrapper -a fixpermissions

Komut çalıştırıldığında eğer herhangi bir hata mesajı alınmadıysa sorunsuz bir şekilde imaj kurulmuş demektir. Artık lablarda Cisco vIOS imajları kullanılabilir.

How do I add a virl Vios image to Eve Ng?

Bir sonraki yazıda görüşmek üzere.

How do I add a virl Vios image to Eve Ng?
Sample lab topology

Download eve-ng community edition and install it on your PC.
https://www.eve-ng.net/index.php/download/

How do I add a virl Vios image to Eve Ng?

For Qemu devices, make a separate directory and then name the qcow2 files as virtioa.qcow2.

Refer to the documentation for exact naming convention for respective devices.
https://www.eve-ng.net/index.php/documentation/qemu-image-namings/

For vIOS router:
root@eve-ng:~# mkdir /opt/unetlab/addons/qemu/vios-adventerprisek9-m.vmdk.SPA.156-2.T
root@eve-ng:~# ls /opt/unetlab/addons/qemu/vios-adventerprisek9-m.vmdk.SPA.156-2.T
virtioa.qcow2

For vIOS switch:
root@eve-ng:~# mkdir /opt/unetlab/addons/qemu/viosl2-adventerprisek9-m.03.2017
root@eve-ng:~# ls /opt/unetlab/addons/qemu/viosl2-adventerprisek9-m.03.2017
virtioa.qcow2

For vASA:
root@eve-ng:~# mkdir asav-961-5
root@eve-ng:~# ls /opt/unetlab/addons/qemu/asav-961-5
virtioa.qcow2

For IOS (under dynamips):

First move the bin file to /opt/unetlab/addons/dynamips directory, unzip it and give extension .image.
root@eve-ng:/opt/unetlab/addons/dynamips# unzip -p c7200-advipservicesk9-mz.152-4.S5.bin > c7200-advipservicesk9-mz.152-4.S5.image
root@eve-ng:/opt/unetlab/addons/dynamips# rm c7200-advipservicesk9-mz.152-4.S5.bin
root@eve-ng:/opt/unetlab/addons/dynamips# unzip -p c3725-adventerprisek9-mz.124-15.T14.bin > c3725-adventerprisek9-mz.124-15.T14.image
root@eve-ng:/opt/unetlab/addons/dynamips# rm c3725-adventerprisek9-mz.124-15.T14.bin

root@eve-ng:~# ls -lh /opt/unetlab/addons/dynamips/
total 178M
-rw-r–r– 1 root root 94M Jan 11 2021 c3725-adventerprisek9-mz.124-15.T14.image
-rw-r–r– 1 root root 84M Oct 2 05:29 c7200-advipservicesk9-mz.152-4.S5.image

To make the changes to take affect, run the unl_wrapper fixpermission command:

/opt/unetlab/wrappers/unl_wrapper -a fixpermissions

===============================================
VPCS configuration to NAT.

VPCS> show ip

NAME : VPCS[1]
IP/MASK : 0.0.0.0/0
GATEWAY : 0.0.0.0
DNS :
MAC : 00:50:79:66:68:01
LPORT : 20000
RHOST:PORT : 127.0.0.1:30000
MTU : 1500

VPCS> ip 192.168.183.221/22 192.168.183.2
Checking for duplicate address…
PC1 : 192.168.183.221 255.255.252.0 gateway 192.168.183.2

VPCS> ip dns 8.8.8.8

VPCS> show ip

NAME : VPCS[1]
IP/MASK : 192.168.183.221/22
GATEWAY : 192.168.183.2
DNS : 8.8.8.8
MAC : 00:50:79:66:68:01
LPORT : 20000
RHOST:PORT : 127.0.0.1:30000
MTU : 1500

VPCS> ping 192.168.183.2

84 bytes from 192.168.183.2 icmp_seq=1 ttl=128 time=0.220 ms
84 bytes from 192.168.183.2 icmp_seq=2 ttl=128 time=0.410 ms
84 bytes from 192.168.183.2 icmp_seq=3 ttl=128 time=0.651 ms
84 bytes from 192.168.183.2 icmp_seq=4 ttl=128 time=0.469 ms
84 bytes from 192.168.183.2 icmp_seq=5 ttl=128 time=0.473 ms

VPCS> ping http://www.google.com
http://www.google.com resolved to 142.250.66.228

84 bytes from 142.250.66.228 icmp_seq=1 ttl=128 time=10.375 ms
84 bytes from 142.250.66.228 icmp_seq=2 ttl=128 time=15.254 ms
84 bytes from 142.250.66.228 icmp_seq=3 ttl=128 time=10.741 ms
84 bytes from 142.250.66.228 icmp_seq=4 ttl=128 time=11.880 ms
84 bytes from 142.250.66.228 icmp_seq=5 ttl=128 time=11.086 ms

How do I add a virl Vios image in Eve Ng?

From the EVE cli, go to newly created image folder..
cd /opt/unetlab/addons/qemu/vios-adventerprisek9-m.SPA.156-1.T/.
/opt/qemu/bin/qemu-img convert -O qcow2 vios-adventerprisek9-m.SPA.156-1.T.vmdk virtioa.qcow2..
rm /opt/unetlab/addons/qemu/vios-adventerprisek9-m.SPA.156-1.T/vios-adventerprisek9-m.SPA.156-1.T.vmdk..

How do I import an image into Eve Ng?

Ready to go Linux image pack for EVE.
Using Putty or other telnet client, CLI SSH (TCP 22) to your EVE and go to location: cd /opt/unetlab/addons/qemu/.
Unzip your uploaded image file, make sure you are using right name of uploaded image. ... .
Remove raw zipped image file from EVE rm -f linux-ubuntu-desktop-16.04.4.tar.gz..

Where can I download Cisco virl images?

Hello Jose,.
VIRL installation images can be downloaded directly from your VIRL Medius account. ... .
Accessing your VIRL software..
Go to https://learningnetworkstore.cisco.com/myaccount. ... .
For installation documentation and basic tutorials: https://learningnetworkstore.cisco.com/virlfaq/support..