You are on page 1of 4

12/13/21, 7:35 AM How to upload the downloaded image into EVE-NG on Virtual machine?

How to upload the downloaded image into EVE-NG on


Virtual machine?

Posted on August 3, 2017August 4, 2017 by leelawadees


1. use WinSCP

Web for load WinSCP

https://sourceforge.net/projects/winscp/?source=typ_redirect
(https://sourceforge.net/projects/winscp/?source=typ_redirect)

2. The location of WinSCP

C:\User\User\Downloads\Programs\WinSCP-5.10.1.beta-Setup.exe

3. After setup WinSCP, open the WinSCP from destop 

4. Click login

https://leelawadee607.wordpress.com/2017/08/03/how-to-upload-the-downloaded-image-into-eve-ng-on-virtual-machine/ 1/4
12/13/21, 7:35 AM How to upload the downloaded image into EVE-NG on Virtual machine?

5. Click “Yes”

6. Password : eve
7. The interface of WinSCP which have 2 side.

left hand side of page for directory in your computer

in my computer

D:\Training-CAT\Cisco IOL

right hand side of page for directory in WinSCP

/opt/unetlab/addons/iol/bin/

8. Copy (drag) the file from your computer to WinSCP

there are the file that should copy

L2-ADVENTERPRISE-M-15.1-20140814.bin

L3-ADVENTERPRISEK9-M-15.4-2T.bin

script.py

https://leelawadee607.wordpress.com/2017/08/03/how-to-upload-the-downloaded-image-into-eve-ng-on-virtual-machine/ 2/4
12/13/21, 7:35 AM How to upload the downloaded image into EVE-NG on Virtual machine?

9. for file script.py copy from the internet paste into the notepad

## create file “scripts.py”               , save file, and then upload to /opt/unetlab/addons/iol/bin/

##———————————————————————————————–##

#! /usr/bin/python

#print “*********************************************************************”

#print “Cisco IOU License Generator – Kal 2011, python port of 2006 C version”

import os

import socket

import hashlib

import struct

# get the host id and host name to calculate the hostkey

hostid=os.popen(“hostid”).read().strip()

hostname = socket.gethostname()

ioukey=int(hostid,16)

for x in hostname:

ioukey = ioukey + ord(x)

print “hostid=” + hostid +”, hostname=”+ hostname + “, ioukey=” + hex(ioukey)[2:]

# create the license using md5sum

iouPad1=’\x4B\x58\x21\x81\x56\x7B\x0D\xF3\x21\x43\x9B\x7E\xAC\x1D\xE6\x8A’

iouPad2=’\x80′ + 39*’\0′

md5input=iouPad1 + iouPad2 + struct.pack(‘!i’, ioukey) + iouPad1

iouLicense=hashlib.md5(md5input).hexdigest()[:16]
print “\nAdd the following text to ~/.iourc:”

print “[license]\n” + hostname + ” = ” + iouLicense + “;\n”

https://leelawadee607.wordpress.com/2017/08/03/how-to-upload-the-downloaded-image-into-eve-ng-on-virtual-machine/ 3/4
12/13/21, 7:35 AM How to upload the downloaded image into EVE-NG on Virtual machine?

print “You can disable the phone home feature with something like:”

print ” echo ‘127.0.0.127 xml.cisco.com’ >> /etc/hosts\n”

##———————————————————————————————–##

Note::

Here is the script: (https://leelawadee607.wordpress.com/iou-python)

EVE-NG Load IOL Images


Posted in network

One thought on “How to upload the downloaded image


into EVE-NG on Virtual machine?”

leelawadees says: August 3, 2017 at 5:07 AM


Gg goldgood

Reply

Website Built with WordPress.com.

https://leelawadee607.wordpress.com/2017/08/03/how-to-upload-the-downloaded-image-into-eve-ng-on-virtual-machine/ 4/4

You might also like