Unable to initialize router instance

Before posting something, READ the changelog, WATCH the videos, howto and provide following:
Your install is: Bare metal, ESXi, what CPU model, RAM, HD, what EVE version you have, output of the uname -a and any other info that might help us faster.

Moderator: mike

Post Reply
ikuranoff
Posts: 2
Joined: Tue Apr 10, 2018 1:22 pm

Unable to initialize router instance

Post by ikuranoff » Fri Apr 13, 2018 11:12 am

I made everything according to "How to's" but can't run C1710 or any other *.image by dynamips, or by EVE-NG.
It just displays this:

Code: Select all

root@eve-ng:~# dynamips -P 1700 -t 1710 /opt/unetlab/addons/dynamips/c1710-bk9no3r2sy-mz.124-23.image
Cisco Router Simulation Platform (version 0.2.12-amd64/Linux stable)
Copyright (c) 2005-2011 Christophe Fillot.
Build date: Nov 25 2016 21:35:03

Local UUID: fe478ca4-a655-4f08-ba4a-f13d2e2406f5

IOS image file: /opt/unetlab/addons/dynamips/c1710-bk9no3r2sy-mz.124-23.image

ILT: loaded table "mips64j" from cache.
ILT: loaded table "mips64e" from cache.
ILT: loaded table "ppc32j" from cache.
ILT: loaded table "ppc32e" from cache.
CPU0: carved JIT exec zone of 64 Mb into 2048 pages of 32 Kb.
NVRAM is empty, setting config register to 0x2142
C1700 instance 'default' (id 0):
  VM Status  : 0
  RAM size   : 64 Mb
  NVRAM size : 32 Kb
  IOS image  : /opt/unetlab/addons/dynamips/c1710-bk9no3r2sy-mz.124-23.image

Loading BAT registers
load_elf_image: invalid ELF file
C1700 'default': failed to load Cisco IOS image '/opt/unetlab/addons/dynamips/c1710-bk9no3r2sy-mz.124-23.image'.
Unable to initialize router instance.
I've already tried to increase RAM value, but for no avail..

Uldis (UD)
Posts: 5086
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: Unable to initialize router instance

Post by Uldis (UD) » Fri Apr 13, 2018 12:28 pm

Looks like your image is not prepared correctly, unzipped image failure...

and check if your file is 0kb

Code: Select all

root@eve-ng:/opt/unetlab/addons/dynamips# ls -l
total 453736
-rw-r--r-- 1 root root  37540240 Nov 29 18:00 c1710-bk9no3r2sy-mz.124-23.image
-rw-r--r-- 1 root root  97859480 Nov 28 21:58 c3725-adventerprisek9-mz.124-15.T14.image
-rw-r--r-- 1 root root 107125192 Jan 27 20:35 c7200-adventerprisek9-mz.150-1.M10.image
-rw-r--r-- 1 root root 128487680 Jan 20 12:47 c7200-adventerprisek9-mz.152-4.M11.image
-rw-r--r-- 1 root root  93595460 Nov 28 21:59 c7200-adventerprisek9-mz.152-4.S7.image

Code: Select all

root@eve-ng:~# dynamips -P 1700 -t 1710 /opt/unetlab/addons/dynamips/c1710-bk9no3r2sy-mz.124-23.image
Cisco Router Simulation Platform (version 0.2.12-amd64/Linux stable)
Copyright (c) 2005-2011 Christophe Fillot.
Build date: Nov 25 2016 21:35:03

Local UUID: 2d803912-a24d-4e15-8b5a-640c51f33f20

IOS image file: /opt/unetlab/addons/dynamips/c1710-bk9no3r2sy-mz.124-23.image

CPU0: carved JIT exec zone of 64 Mb into 2048 pages of 32 Kb.
NVRAM is empty, setting config register to 0x2142
C1700 instance 'default' (id 0):
  VM Status  : 0
  RAM size   : 64 Mb
  NVRAM size : 32 Kb
  IOS image  : /opt/unetlab/addons/dynamips/c1710-bk9no3r2sy-mz.124-23.image

Loading BAT registers
Loading ELF file '/opt/unetlab/addons/dynamips/c1710-bk9no3r2sy-mz.124-23.image'...
ELF entry point: 0x80008000

C1700 'default': starting simulation (CPU0 IA=0xfff00100), JIT enabled.
ROMMON emulation microcode.

Launching IOS image at 0x80008000...


Smart Init is disabled. IOMEM set to: 15



PMem allocated: 57042944 bytes; IOMem allocated: 10065920 bytes

              Restricted Rights Legend

Use, duplication, or disclosure by the Government is
subject to restrictions as set forth in subparagraph
(c) of the Commercial Computer Software - Restricted
Rights clause at FAR sec. 52.227-19 and subparagraph
(c) (1) (ii) of the Rights in Technical Data and Computer
Software clause at DFARS sec. 252.227-7013.

           cisco Systems, Inc.
           170 West Tasman Drive
           San Jose, California 95134-1706



Cisco IOS Software, C1700 Software (C1710-BK9NO3R2SY-M), Version 12.4(23), RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2008 by Cisco Systems, Inc.
Compiled Sat 08-Nov-08 18:44 by prod_rel_team


This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.

A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

If you require further assistance please contact us by sending email to
export@cisco.com.

Cisco 1710 (MPC860T) processor (revision 0x202) with 55706K/9830K bytes of memory.
Processor board ID FTX0945W0MY (4279256517), with hardware revision 0000
MPC860T processor: part number 0, mask 0
1 Ethernet interface
1 FastEthernet interface
32K bytes of NVRAM.
4096K bytes of processor board System flash (Read/Write)


         --- System Configuration Dialog ---

Would you like to enter the initial configuration dialog? [yes/no]: 

ikuranoff
Posts: 2
Joined: Tue Apr 10, 2018 1:22 pm

Re: Unable to initialize router instance

Post by ikuranoff » Sat Apr 14, 2018 10:06 am

Must be you're right...

Code: Select all

root@eve-ng:/opt/unetlab/addons/dynamips# ls -l
total 24
-rw-r--r-- 1 root root 83 Apr 13 14:37 c1700-adventerprisek9-mz.124-8.image
-rw-r--r-- 1 root root 79 Apr 13 13:43 c1710-bk9no3r2sy-mz.124-23.image
-rw-r--r-- 1 root root 84 Apr 13 12:46 c3725-adventerprisek9-mz.123-26.image
-rw-r--r-- 1 root root 87 Apr 13 12:47 c3725-adventerprisek9-mz.124-15.T8.image
-rw-r--r-- 1 root root 87 Apr 13 12:48 c7200-adventerprisek9-mz.124-11.T2.image
-rw-r--r-- 1 root root 87 Apr 13 12:48 c7200-adventerprisek9-mz.124-24.T5.image
root@eve-ng:/opt/unetlab/addons/dynamips# 
The size of files looks incorrect. Also if I open *.bin file with 7Zip it shows me this:
2018-04-14_130437.png

UPD! I found mistake. I didn't use -p when unzip "*.bin" files.
You do not have the required permissions to view the files attached to this post.

Uldis (UD)
Posts: 5086
Joined: Wed Mar 15, 2017 4:44 pm
Location: London
Contact:

Re: Unable to initialize router instance

Post by Uldis (UD) » Sat Apr 14, 2018 3:24 pm

:)

Post Reply