设为首页收藏本站language 语言切换
查看: 2088|回复: 3
收起左侧

[unetlab] UNetLab 启动不了设备

[复制链接]
发表于 2017-1-3 09:37:52 | 显示全部楼层 |阅读模式

UNetLab按教程安装完后启动不了设备。试了4次,修改几次操作错误后,点击start有提示启动失败:Failed to start node (12)    求解?? 5.png
发表于 2017-1-23 15:26:47 | 显示全部楼层
镜像不对,或者没有执行权限修正命令
沙发 2017-1-23 15:26:47 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2017-3-2 09:13:47 | 显示全部楼层
我研究了一下 有 3 个方面的问题  1.查看nano /etc/hosts
127.0.0.1       localhost
“unl的ip”   unl01.example.com       unl01

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.0.127 xml.cisco.com


2权限修复
/opt/unetlab/wrappers/unl_wrapper -a fixpermissions


3。iol 许可
#! /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('!L', 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")

板凳 2017-3-2 09:13:47 回复 收起回复
回复 支持 反对

使用道具 举报

发表于 2017-3-20 13:03:07 | 显示全部楼层
hh63656890 发表于 2017-3-2 09:13
我研究了一下 有 3 个方面的问题  1.查看nano /etc/hosts
127.0.0.1       localhost
“unl的ip”   unl0 ...

哥们能详细说一下吗?我也碰到不能启动的问题了,不知道怎么搞
地板 2017-3-20 13:03:07 回复 收起回复
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-2-3 15:13 , Processed in 0.077091 second(s), 16 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表