Generate License IOL @eve-ng

3 hari terakhir ini mencoba menginstall eve-ng di laptop baru dari laptop lama. Semua vmdk-nya diexport. Saat membuka lab yg lama, ternyata tidak bisa ping p2p, walaupun cdp dan arp terbentuk. Aneh. Akhirnya dikasih masukan sama temen, coba install eve baru lagi.  Eve lama versi yang ada di laptop adalah versi 2.0.3-89, eve baru versi *-95.

Saya coba create lab dengan ios 7200 dan berhasil ping p2p. Lalu export beberapa lab yg ada di versi eve *-89 dimana terdapat IOL, masalah muncul dimana routernya tidak bisa distart. Dicoba ngutak-ngatik iourc file, namun tidak berhasil. Generate beberapa license, juga nihil. Intinya, system tidak bisa membaca iourc file alias lisensinya bermasalah.

IOURC: Could not open iourc file

begini lognya.

root@192.168.119.129’s password:
Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.9.40-eve-ng-ukms-2+ x86_64)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
root@eve-ng:~# ls -ltr /opt/unetlab/addons/iol/bin/
total 432228
-rwxr-xr-x 1 root root 0 Apr 18 2015 i86bi-linux-l2-adventerprisek9-15. 1a.bin
-rwxr-xr-x 1 root root 0 Jan 5 2016 i86bi-linux-l3-adventerprisek9-15. 4.2T4.bin
-rwxr-xr-x 1 root root 131580216 Apr 1 2016 i86bi-linux-l3-adventerprisek9-15. 2.4M1.bin
-rwxr-xr-x 1 root root 126226692 Jul 18 06:17 i86bi_LinuxL2-AdvEnterpriseK9-M_15 2_May_2018.bin
-rwxr-xr-x 1 root root 184759244 Sep 11 13:40 i86bi_LinuxL3-AdvEnterpriseK9-M2_1 57_3_May_2018.bin
-rw-r–r– 1 root root 0 Sep 11 13:44 NETMAP
-rwxr-xr-x 1 root root 1201 Sep 12 05:14 CiscoIOUKeygen3f.py
-rw-r–r– 1 root root 37 Sep 12 13:32 iourc.txt
-rw-r–r– 1 root root 37 Sep 12 13:37 iourc
-rw-r–r– 1 root root 1608 Sep 13 09:11 IOUkeygen.py
root@eve-ng:~# cd /opt/unetlab/addons/iol/bin/

root@eve-ng:/opt/unetlab/addons/iol/bin# chmod 0755 IOUkeygen.py
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# ls
CiscoIOUKeygen3f.py
i86bi-linux-l2-adventerprisek9-15.1a.bin
i86bi_LinuxL2-AdvEnterpriseK9-M_152_May_2018.bin
i86bi-linux-l3-adventerprisek9-15.2.4M1.bin
i86bi-linux-l3-adventerprisek9-15.4.2T4.bin
i86bi_LinuxL3-AdvEnterpriseK9-M2_157_3_May_2018.bin
IOUkeygen.py
iourc
iourc.txt
NETMAP
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# python2
python2 python2.7
root@eve-ng:/opt/unetlab/addons/iol/bin# hostname
eve-ng
root@eve-ng:/opt/unetlab/addons/iol/bin# cat iourc
[license]
eve-ng = 972f30267ef51616;
root@eve-ng:/opt/unetlab/addons/iol/bin# vi iourc
root@eve-ng:/opt/unetlab/addons/iol/bin# vi iourc
root@eve-ng:/opt/unetlab/addons/iol/bin# vi iourc
root@eve-ng:/opt/unetlab/addons/iol/bin# vi iourc
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# cd ..
root@eve-ng:/opt/unetlab/addons/iol# cd /
root@eve-ng:/#
root@eve-ng:/#
root@eve-ng:/#
root@eve-ng:/#
root@eve-ng:/# cd /opt/unetlab/addons/iol/
root@eve-ng:/opt/unetlab/addons/iol# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/i86bi-linux-l3-adventerprisek9-15.5.2T.bin 1
-bash: /opt/unetlab/addons/iol/bin/i86bi-linux-l3-adventerprisek9-15.5.2T.bin: N o such file or directory
root@eve-ng:/opt/unetlab/addons/iol# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/i86bi-linux-l3-adventerprisek9-15.2.4M1.bin 1
***************************************************************
IOS On Unix – Cisco Systems confidential, internal use only
Under no circumstances is this software to be provided to any
non Cisco staff or customers. To do so is likely to result
in disciplinary action. Please refer to the IOU Usage policy at
wwwin-iou.cisco.com for more information.
***************************************************************

IOURC: Could not open iourc file
root@eve-ng:/opt/unetlab/addons/iol# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/i86bi_LinuxL3-AdvEnterpriseK9-M2_157_3_May_2018.bin 1
***************************************************************
IOS On Unix – Cisco Systems confidential, internal use only
Under no circumstances is this software to be provided to any
non Cisco staff or customers. To do so is likely to result
in disciplinary action. Please refer to the IOU Usage policy at
wwwin-iou.cisco.com for more information.
***************************************************************

IOURC: Could not open iourc file
root@eve-ng:/opt/unetlab/addons/iol# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/i86bi-linux-l3-adventerprisek9-15.4.2T4.bin 1
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/i86bi-linux-l2-adventerprisek9-15.1a.bin 1
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol# hostname
eve-ng
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol# cat /opt/unetlab/addons/iol/bin/iourc
[license]
eve-ng = c14c3909c793ee19;
root@eve-ng:/opt/unetlab/addons/iol# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/L3-ADVENTERPRISE9-15.5.2T.bin 1
-bash: /opt/unetlab/addons/iol/bin/L3-ADVENTERPRISE9-15.5.2T.bin: Permission den ied
root@eve-ng:/opt/unetlab/addons/iol# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/L3-ADVENTERPRISE9-15.5.2T.bin 1
***************************************************************
IOS On Unix – Cisco Systems confidential, internal use only
Under no circumstances is this software to be provided to any
non Cisco staff or customers. To do so is likely to result
in disciplinary action. Please refer to the IOU Usage policy at
wwwin-iou.cisco.com for more information.
***************************************************************

IOURC: Could not open iourc file
root@eve-ng:/opt/unetlab/addons/iol# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/i86bi-linux-l2-adventerprisek9-15.2d.bin 1
***************************************************************
IOS On Unix – Cisco Systems confidential, internal use only

IOURC: Could not open iourc file
root@eve-ng:/opt/unetlab/addons/iol# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/i86bi-linux-l2-adventerprisek9-15.2d.bin 1
***************************************************************
IOS On Unix – Cisco Systems confidential, internal use only

IOURC: Could not open iourc file
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol#
root@eve-ng:/opt/unetlab/addons/iol# cd bin
root@eve-ng:/opt/unetlab/addons/iol/bin# ls
CiscoIOUKeygen3f.py
i86bi-linux-l2-adventerprisek9-15.1a.bin
i86bi-linux-l2-adventerprisek9-15.2d.bin
i86bi_LinuxL2-AdvEnterpriseK9-M_152_May_2018.bin
i86bi-linux-l3-adventerprisek9-15.2.4M1.bin
i86bi-linux-l3-adventerprisek9-15.4.2T4.bin
i86bi-linux-l3-adventerprisek9-15.5.2T.bin
i86bi_LinuxL3-AdvEnterpriseK9-M2_157_3_May_2018.bin
IOUkeygen.py
iourc
iourc.txt
L3-ADVENTERPRISE9-15.5.2T.bin
NETMAP
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# cd /
root@eve-ng:/# /opt/unetlab/wrappers/unl_wrapper -a fixpermissions

root@eve-ng:/# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/i ol/bin/i86bi-linux-l3-adventerprisek9-15.5.2T.bin 1
***************************************************************
IOS On Unix – Cisco Systems confidential, internal use only
Under no circumstances is this software to be provided to any
non Cisco staff or customers. To do so is likely to result
in disciplinary action. Please refer to the IOU Usage policy at
wwwin-iou.cisco.com for more information.
***************************************************************

IOURC: Could not open iourc file
root@eve-ng:/# hostname
eve-ng
root@eve-ng:/# cd /opt/unetlab/addons/iol/bin/
root@eve-ng:/opt/unetlab/addons/iol/bin# ls
CiscoIOUKeygen3f.py
i86bi-linux-l2-adventerprisek9-15.1a.bin
i86bi-linux-l2-adventerprisek9-15.2d.bin
i86bi_LinuxL2-AdvEnterpriseK9-M_152_May_2018.bin
i86bi-linux-l3-adventerprisek9-15.2.4M1.bin
i86bi-linux-l3-adventerprisek9-15.4.2T4.bin
i86bi-linux-l3-adventerprisek9-15.5.2T.bin
i86bi_LinuxL3-AdvEnterpriseK9-M2_157_3_May_2018.bin
IOUkeygen.py
iourc
iourc.txt
L3-ADVENTERPRISE9-15.5.2T.bin
NETMAP
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# rename iourc iourc_rifki
Bareword “iourc” not allowed while “strict subs” in use at (eval 1) line 1.
root@eve-ng:/opt/unetlab/addons/iol/bin# ls -lt
total 1099316
-rw-r–r– 1 root root 37 Sep 13 09:28 iourc
-rw-r–r– 1 root root 1608 Sep 13 09:11 IOUkeygen.py
-rwxr-xr-x 1 root root 172982492 Sep 13 03:08 i86bi-linux-l3-adventerprisek9-15. 5.2T.bin
-rwxr-xr-x 1 root root 105036380 Sep 13 02:58 i86bi-linux-l2-adventerprisek9-15. 2d.bin
-rw-r–r– 1 root root 37 Sep 12 13:32 iourc.txt
-rw-r–r– 1 root root 1201 Sep 12 05:14 CiscoIOUKeygen3f.py
-rw-r–r– 1 root root 0 Sep 11 13:44 NETMAP
-rwxr-xr-x 1 root root 184759244 Sep 11 13:40 i86bi_LinuxL3-AdvEnterpriseK9-M2_1 57_3_May_2018.bin
-rwxr-xr-x 1 root root 126226692 Jul 18 06:17 i86bi_LinuxL2-AdvEnterpriseK9-M_15 2_May_2018.bin
-rwxr-xr-x 1 root root 172982492 Mar 2 2019 L3-ADVENTERPRISE9-15.5.2T.bin
-rwxr-xr-x 1 root root 131580216 Apr 1 2016 i86bi-linux-l3-adventerprisek9-15. 2.4M1.bin
-rwxr-xr-x 1 root root 159350476 Jan 5 2016 i86bi-linux-l3-adventerprisek9-15. 4.2T4.bin
-rwxr-xr-x 1 root root 72726092 Apr 18 2015 i86bi-linux-l2-adventerprisek9-15. 1a.bin
root@eve-ng:/opt/unetlab/addons/iol/bin# chmode 677 iourc
-bash: chmode: command not found
root@eve-ng:/opt/unetlab/addons/iol/bin# chmod 677 iourc
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# ls -lt
total 1099316
-rw-rwxrwx 1 root root 37 Sep 13 09:28 iourc
-rw-r–r– 1 root root 1608 Sep 13 09:11 IOUkeygen.py
-rwxr-xr-x 1 root root 172982492 Sep 13 03:08 i86bi-linux-l3-adventerprisek9-15. 5.2T.bin
-rwxr-xr-x 1 root root 105036380 Sep 13 02:58 i86bi-linux-l2-adventerprisek9-15. 2d.bin
-rw-r–r– 1 root root 37 Sep 12 13:32 iourc.txt
-rw-r–r– 1 root root 1201 Sep 12 05:14 CiscoIOUKeygen3f.py
-rw-r–r– 1 root root 0 Sep 11 13:44 NETMAP
-rwxr-xr-x 1 root root 184759244 Sep 11 13:40 i86bi_LinuxL3-AdvEnterpriseK9-M2_1 57_3_May_2018.bin
-rwxr-xr-x 1 root root 126226692 Jul 18 06:17 i86bi_LinuxL2-AdvEnterpriseK9-M_15 2_May_2018.bin
-rwxr-xr-x 1 root root 172982492 Mar 2 2019 L3-ADVENTERPRISE9-15.5.2T.bin
-rwxr-xr-x 1 root root 131580216 Apr 1 2016 i86bi-linux-l3-adventerprisek9-15. 2.4M1.bin
-rwxr-xr-x 1 root root 159350476 Jan 5 2016 i86bi-linux-l3-adventerprisek9-15. 4.2T4.bin
-rwxr-xr-x 1 root root 72726092 Apr 18 2015 i86bi-linux-l2-adventerprisek9-15. 1a.bin
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# rename iourc iourc_rifki
Bareword “iourc” not allowed while “strict subs” in use at (eval 1) line 1.
root@eve-ng:/opt/unetlab/addons/iol/bin# vi iourc
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# sudo hostnamectl set-hostname gns3-iouv m
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# hostname
gns3-iouvm
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# cd /
root@eve-ng:/# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/i ol/bin/i86bi-linux-l3-adventerprisek9-15.5.2T.bin 1
***************************************************************
IOS On Unix – Cisco Systems confidential, internal use only
Under no circumstances is this software to be provided to any
non Cisco staff or customers. To do so is likely to result
in disciplinary action. Please refer to the IOU Usage policy at
wwwin-iou.cisco.com for more information.
***************************************************************

IOURC: Could not open iourc file
root@eve-ng:/#

Setelah beberapa kali generate akhirnya berhasil. Brikut stepnya:

  1. Change hostname ke sebuah hostname, kita sebut saja eve-ng

root@eve-ng:/# sudo hostnamectl set-hostname eve-ng
root@eve-ng:/#

2. Execute file python “IOUkegen.py” dimana akan mengenerate license dan menambahkan info di file /etc/hosts. Jangan lupa, pastikan scrip *.py ini harus executable, pake chmod 755 aja biar semua user/group bs exe.

root@eve-ng:/opt/unetlab/addons/iol/bin# python2 IOUkeygen.py

*********************************************************************
Cisco IOU License Generator – Kal 2011, python port of 2006 C version
hostid=007f0100, hostname=eve-ng, ioukey=7f0342

*********************************************************************
Create the license file $HOME/.iourc with this command:
echo -e ‘[license]\neve-ng = 48b8e49645f76b04;’ | tee $HOME/.iourc

The command adds the following text to $HOME/.iourc:
[license]
eve-ng = 48b8e49645f76b04;

*********************************************************************
Disable the phone home feature with this command:
grep -q -F ‘127.0.0.1 xml.cisco.com’ /etc/hosts || echo ‘127.0.0.1 xml.cisco.co m’ | sudo tee -a /etc/hosts

The command adds the following text to /etc/hosts:
127.0.0.1 xml.cisco.com

*********************************************************************
root@eve-ng:/opt/unetlab/addons/iol/bin# cat /etc/hosts
127.0.0.1 eve-ng
127.0.1.1 .

# The following lines are desirable for IPv6 capable hosts

127.0.0.127 xml.cisco.com
root@eve-ng:/opt/unetlab/addons/iol/bin#

3.  Lalu create file ‘iourc’. isinya adalah license yg digenerate di step 2 diata, samplenya seperti berikut.

root@eve-ng:/opt/unetlab/addons/iol/bin# vi iourc
root@eve-ng:/opt/unetlab/addons/iol/bin#
root@eve-ng:/opt/unetlab/addons/iol/bin# cat iourc
[license]
#gns3-iouvm=cd11acbc599f2364
eve-ng = 48b8e49645f76b04;

4. Test salah satu image IOL dengan command berikut:

root@eve-ng:/opt/unetlab/addons/iol/bin# LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/i86bi-linux-l3-adventerprisek9-15.5.2T.bin 1

Lalu akan muncul status kalo kita bisa mem-play IOL ini.

***************************************************************
IOS On Unix – Cisco Systems confidential, internal use only
Under no circumstances is this software to be provided to any
non Cisco staff or customers. To do so is likely to result
in disciplinary action. Please refer to the IOU Usage policy at
wwwin-iou.cisco.com for more information.
***************************************************************

Restricted Rights Legend

Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software – Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

cisco Systems, Inc.
170 West Tasman Drive
San Jose, California 95134-1706

Cisco IOS Software, Linux Software (I86BI_LINUX-ADVENTERPRISEK9-M), Version 15.5(2)T, DEVELOPMENT TEST SOFTWARE
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2015 by Cisco Systems, Inc.
Compiled Thu 26-Mar-15 07:36 by prod_rel_team

This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

Linux Unix (Intel-x86) processor with 87588K bytes of memory.Installed image archive

Processor board ID 1
8 Ethernet interfaces
8 Serial interfaces
64K bytes of NVRAM.

— System Configuration Dialog —

Would you like to enter the initial configuration dialog? [yes/no]: no

Press RETURN to get started!

*Sep 13 07:56:56.553: %CTS-6-ENV_DATA_START_STATE: Environment Data Download in start state
*Sep 13 07:56:59.158: %LINEPROTO-5-UPDOWN: Line protocol on Interface VoIP-Null0, changed state to up
*Sep 13 07:56:59.158: %LINK-3-UPDOWN: Interface Ethernet0/0, changed state to up

5. Step berikutnya seperti biasa, create lab dan masukan IOL sesuai yg diinginkan.

Selamat nge-lab.

Thanks to Bos Wowo, bang Helmi, dan Rifki yang udah ngasih masukan.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s