GNS3
http://forum.gns3.net/

[SOLVED] IOU license error
http://forum.gns3.net/topic9508.html
Page 1 of 1

Author:  jespi [ Thu Apr 24, 2014 8:20 am ]
Post subject:  [SOLVED] IOU license error

Hey guys,

I am not exactly a noob when it comes to Unix/Linux, but I am also not an expert. Anyway, I have literally spent countless hours over the course of the last couple of weeks trying to get the IOU license to generate and let me begin to build my topology. I have read and followed the steps for cracking the license file outlined in this forum but I am still not able to get it to work. Here is my first issue when attempting to power on my IOUs:


IOU License Error: invalid license
License for key 3d8 required on host "gns3-iouvm".
Obtain a license for this key and host from the following location:

http://wwwin-enged.cisco.com/ios/iou/license/index.html

Place in your iourc file as follows (see also the web page
for further details on iourc file format and location)

[license]
gns3-iouvm = <16 char license>;

I tried executing the CiscoIOUKeygen.py that someone kindly posted (python command does not work) and this is the output I see:

[email protected]:/home# bash CiscoIOUKeygen.py

Warning: unknown mime-type for "*********************************************************************" -- using "application/octet-stream"
Error: no such file "*********************************************************************"
Warning: unknown mime-type for "Cisco IOU License Generator - Kal 2011, python port of 2006 C version" -- using "application/octet-stream"
Error: no such file "Cisco IOU License Generator - Kal 2011, python port of 2006 C version"
CiscoIOUKeygen.py: line 4: import: command not found
CiscoIOUKeygen.py: line 5: import: command not found
CiscoIOUKeygen.py: line 6: import: command not found
CiscoIOUKeygen.py: line 7: import: command not found
CiscoIOUKeygen.py: line 9: syntax error near unexpected token `('
CiscoIOUKeygen.py: line 9: `hostid=os.popen("hostid").read().strip()'[/color]

I am running Debian Jessie (same IOUvm provided on the GNS3 website). Also, here is are the contents of my IOURC file:

[license]
gns3-iouvm = 1020304050607080

*NOTE - I manually input the 16-character value seen above in the IOURC file.

Any help would be greatly appreciated.

Author:  claydon_dan [ Thu Apr 24, 2014 10:27 am ]
Post subject:  Re: IOU license error

The IOU license script shouldn't be run using bash (aka shell), as it is written in python. (They're different interpretors)

Grab the script from: post28850.html#p28850 which will work with python 2.7 or python 3

From the terminal type in:
Code:
python CiscoIOUKeygen.py


This will then generate your license code

Author:  jespi [ Fri Apr 25, 2014 2:43 am ]
Post subject:  Re: [SOLVED] IOU license error

Hi Dan,

Thanks for your response. I tried running the script after uploading it to my VM but it still comes up with errors:

[email protected]:/home/gns3/Documents/GNS3/images# python CiscoIOUKeygen10.py
bash: python: command not found

Any ideas?

Author:  grossmj [ Fri Apr 25, 2014 4:07 am ]
Post subject:  Re: [SOLVED] IOU license error

Quote:
Any ideas?


Yes, try python3

Author:  jespi [ Mon Apr 28, 2014 3:41 am ]
Post subject:  Re: [SOLVED] IOU license error

Hi Jeremy,

Thank you for the quick response and sorry for my delayed response! I ran the following command shortly after posting my last message to this thread:

python3 CiscoIOUKeygen.py


That command executed without issue. I added the license key to my IOURC file and it worked like a charm!

Thanks again to both you and Daniel for helping me out!!!

Author:  gmgtxus [ Fri May 30, 2014 3:19 pm ]
Post subject:  Re: [SOLVED] IOU license error

do you have to edit anything in the file? I got an error

python3 CiscoIOUKeygen.py
File "CiscoIOUKeygen.py", line 2
print "*********************************************************************"
^
SyntaxError: invalid syntax

Author:  claydon_dan [ Fri May 30, 2014 3:40 pm ]
Post subject:  Re: [SOLVED] IOU license error

gmgtxus wrote:
do you have to edit anything in the file? I got an error

python3 CiscoIOUKeygen.py
File "CiscoIOUKeygen.py", line 2
print "*********************************************************************"
^
SyntaxError: invalid syntax


Try the updated version of the script... post28850.html#p28850

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/