=====EVE-NG===== ====Change Log==== [[http://www.dergenterprises.com/wiki/doku.php?id=eve-ng:eve_change_log|Change Log]] ====Notes==== HTML5 console seems to have a lot of bugs. Recommend using the Legacy console. ====Images Supported==== [[http://www.dergenterprises.com/wiki/doku.php?id=eve-ng:images_supported|Images Supported]] ====Do at start==== * For Python 2 * python /opt/unetlab/addons/iol/bin/CiscoIOUKeygen.py * Then replace the key under the license section of /opt/unetlab/addons/iol/bin/iourc * For Python 3 * rm /opt/unetlab/addons/iol/bin/CiscoIOUKeygen.py touch /opt/unetlab/addons/iol/bin/CiscoIOUKeygen.py nano /opt/unetlab/addons/iol/bin/CiscoIOUKeygen.py * Paste into CiscoIOUKeygen.py (should be an empty file first) * 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 = b'\x4B\x58\x21\x81\x56\x7B\x0D\xF3\x21\x43\x9B\x7E\xAC\x1D\xE6\x8A' iouPad2 = b'\x80' + 39*b'\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") with open("iourc.txt", "wt") as out_file: out_file.write("[license]\n" + hostname + " = " + iouLicense + ";\n") print("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nCopied to the file iourc.txt\n ") print("You can disable the phone home feature by:") print("echo '127.0.0.127 xml.cisco.com' >> /et[c]/hosts\n") * python3 /opt/unetlab/addons/iol/bin/CiscoIOUKeygen.py * /opt/unetlab/wrappers/unl_wrapper -a fixpermissions __Update EVE-NG__ apt-get update -y apt-get upgrade -y reboot Then you will probably have to power off/on the VM. __Check EVE Version__ dpkg -l eve-ng dpkg -l eve-ng-pro __Add More Storage__ - Just add a new HDD and EVE will auto-magically do the rest upon start up. - Then for a Linux machine: - Only need to add a second hdd in image folder **virtiob.qcow2** - To expand the Linux partition - /opt/qemu/bin/qemu-img create -f qcow2 virtioa.qcow2 40G __Check Free Space__ df -h ====Arista vEOS==== veos-4.15.5M login: admin ====Cisco CSR 1000v==== csr1000v-3.16.00.S.155-3.S csr1000v-universalk9.03.14.00.S.155-1.S-std ====Cisco IOS 3725 (Dynamips)==== c3725-adventerprisek9-mz.124-15.T14.image ====Cisco IOS 7206 VXR (Dynamips)==== c7200-adventerprisek9-mz-152-4.S7.image ====Cisco ASA==== asa-842-k8 ====Cisco ASAv==== asav-952-204 ====Cisco XRv==== xrv-k9-6.0.1 ====Cisco vIOS L2==== viosl2-adventerprisek9-m-15.2.4055 ====Juniper Olive==== olive-12.1.R1.9\\ login: root\\ cli ====Ostinato==== ostinato-0.7-v1 [[https://www.youtube.com/watch?v=5hoyZOgjqIg/|YouTube]] login: tc ====Palo Alto VM==== paloalto-7.0.1 Will have to use VNC to login in. Telnet will not work initially. Login: admin Password: admin ====F5 BigIP==== Default CLI username/password: admin/default https://support.f5.com/csp/article/K13148 May not be needed for version 13 bigip-12.0 How to enable Telnet: cd /opt/unetlab/addons/qemu/bigip-xxxx rmmod nbd modprobe nbd max_part=16 /opt/qemu/bin/qemu-nbd -c /dev/nbd0 hda.qcow2 mount /dev/nbd0p1 /mnt/ sed -e 's/ \(console=tty0 \)\([^c]\)/ \1 console=ttyS0 \2/' -e 's/\(^splashimage.*\)/#\1\nserial --unit=0 --speed=9600\nterminal --timeout=8 console serial\n/' -i /mnt/grub/grub.conf umount /mnt/ /opt/qemu/bin/qemu-nbd -d /dev/nbd0 rmmod nbd ====vPC==== Works ====vIOS==== vios-adventerprisek9-m-15.6.2T ====Linux==== linux-tinycore-6.4 not working yet ====L2 IOL==== L2-ADVENTERPRISEK9-M-15.2-20150703.bin L2-ADVENTERPRISEK9-M-15.2-IRON-20151103.bin Type the following via SSH to start: LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/L2-ADVENTERPRISEK9-M-15.2-20150703.bin 1 LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/L2-ADVENTERPRISEK9-M-15.2-IRON-20151103.bin 2 ====L3 IOL==== * Router * L3-ADVENTERPRISEK9-M-15.2-M5.3.bin * L3-ADVENTERPRISEK9-M-15.4-2T.bin LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/L3-ADVENTERPRISEK9-M-15.2-M5.3.bin 1 LD_LIBRARY_PATH=/opt/unetlab/addons/iol/lib /opt/unetlab/addons/iol/bin/L3-ADVENTERPRISEK9-M-15.4-2T.bin 1 ====Troubleshooting==== [[https://www.eve-ng.net/index.php/faq|EVE-ng FAQ]] * EVE is showing: “Eve host license host error (97)” * systemctl restart licserver * /opt/unetlab/wrappers/unl_wrapper -a fixpermissions * or * /opt/unetlab/wrappers/unl_wrapper -a fixpermissions dummy ====Ostinato Traffic Generator==== - Installs on Ubuntu 18.04 - Have to install Ubuntu first, then the Ostinato package - [[linux:ostinato|Ostinato addon for Ubuntu]] ====Ubuntu Mate 20.04==== - IP Configuration via nmtui - en3 - IP: 192.1.255.100/24 - GW: 192.1.255.254 - DNS: 8.8.8.8 - en4 - 10.82.83.101/24 - Firefox - Homepage: https://192.1.255.101 - Username: admin - Password: admin ====Notes==== Try setting your quality level to high in the VNC client session configuration instead of Auto.\\ https://www.eve-ng.net/index.php/documentation/howtos/howto-create-own-linux-host-image/\\ https://cloudmoran.wordpress.com/2019/04/18/eve-ng-qemu-modify-base-images/\\ - /opt/qemu/bin/qemu-img convert -c -O qcow2 /opt/unetlab/tmp/0/8/4760155f-e4bd-4bce-befa-04b9b544fe43/37/hda.qcow2 /tmp/hda.qcow2\\ # ip addr add 192.168.1.100/24 dev eth0 broadcast 192.168.1.255\\ # ip link set eth0 up\\ https://maunium.net/blog/resizing-qcow2-images/\\ - qemu-img resize image.qcow2 +SIZE\\