IOL类型节点启动后自动停止,可以用尝试以下方法:
-
修复系统权限
在CLI命令行输入以下命令
/opt/unetlab/wrappers/unl_wrapper -a fixpermissions\n
-
重新生成许可
通过以下步骤重新生成IOL许可:
-
覆盖许可生成脚本。
清空并使用nano编辑器打开
CiscoIOUKeygen.py
许可生成脚本。echo "" > /opt/unetlab/addons/iol/bin/CiscoIOUKeygen.py && nano /opt/unetlab/addons/iol/bin/CiscoIOUKeygen.py
将以下内容覆盖到
CiscoIOUKeygen.py
许可生成脚本中。#! /usr/bin/python print("*********************************************************************") print("Cisco IOU License Generator - Kal 2011, python port of 2006 C version") print("Modified to work with python3 by c_d 2014") 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") print("You can disable the phone home feature with something like:") print(" echo '127.0.0.127 xml.cisco.com' >> /etc/hosts\n") lic = ["[license]\n" + hostname + " = " + iouLicense + ";" + "\n"] f = open('/opt/unetlab/addons/iol/bin/iourc','w') f.writelines(lic) f.close()
-
使用以下命令生成许可。
python3 /opt/unetlab/addons/iol/bin/CiscoIOUKeygen.py >/opt/unetlab/addons/iol/bin/iourc /opt/unetlab/wrappers/unl_wrapper -a fixpermissions
-
将LAB中的IOL节点重置(擦拭/还原)后,再次启动测试。
-
IOL v17.12.1修复
指导入x86_64_crb_linux-adventerprisek9-ms.bin
和x86_64_crb_linux_l2-adventerprisek9-ms.bin
后镜像无法正常启动。
-
导入新的IOL镜像;
-
修复系统权限;
/opt/unetlab/wrappers/unl_wrapper -a fixpermissions\n
-
删除或注释掉
/etc/hosts
文件中的127.0.0.127 xml.cisco.com
即可; -
重新生成IOL许可;
python3 /opt/unetlab/addons/iol/bin/CiscoIOUKeygen.py >/opt/unetlab/addons/iol/bin/iourc /opt/unetlab/wrappers/unl_wrapper -a fixpermissions
-
重新添加镜像测试;