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
-
pants
- Posts: 4
- Joined: Tue Dec 05, 2017 3:42 am
Post
by pants » Thu Jan 04, 2018 10:37 pm
Hi All, I'm 100% new to eve-ng and I've done my best to attempt to figure this out but google isn't yielding much results
This is a basic and default installation of eve. 6 GB of Ram, 4 processors. 40 GB of hard disk.
The instructions I've found aren't clear for the 7200 image:
dynamips -P 1700 -t 1710 /opt/unetlab/addons/dynamips/c1710-bk9no3r2sy-mz.124-23.image
What should I be putting for the 7200?
Whenever I try and run a variation I get the following error:
load_elf_image: invalid ELF file
C7200 'default': failed to load Cisco IOS image '/opt/unetlab/addons/dynamips/c7200-adventerprisek9-mz.152-4.S7.image'.
Unable to initialize router instance.
It doesn't matter if it is the S6 or S7. In EVE-NG, I'll click start on the router, it will go blue and then just turn gray again. I suspect it is because I haven't finished the idle pc section.
Many thanks in advance.
-
Uldis (UD)
- Posts: 5086
- Joined: Wed Mar 15, 2017 4:44 pm
- Location: London
-
Contact:
Post
by Uldis (UD) » Fri Jan 05, 2018 12:26 am
######Run any image#######
Code: Select all
dynamips -P 7200 /opt/unetlab/addons/dynamips/c7200-adventerprisek9-mz.152-4.S7.image
dynamips -P 3725 /opt/unetlab/addons/dynamips/c3725-adventerprisek9-mz.124-15.T14.image
dynamips -P 1700 /opt/unetlab/addons/dynamips/c1710-bk9no3r2sy-mz.124-23.image
#####Calculate Idle PC#####
Code: Select all
0x62f20ff4 (count=39)
0x62f21000 (count=49)
0x62f22ac4 (count=60)
0x62a5b4a4 (count=75)
0x6238d5d0 (count=27)
0x6238d5d4 (count=54)
#######shutdown router#######
#########start with new idle############
Code: Select all
dynamips -P 7200 --idle-pc 0x62f20de8 /opt/unetlab/addons/dynamips/c7200-adventerprisek9-mz.152-4.S7.image
dynamips -P 3725 --idle-pc 0x60c09aa0 /opt/unetlab/addons/dynamips/c3725-adventerprisek9-mz.124-15.T14.image
#########check cpu############
#########open new ssh session to eve###########
Code: Select all
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
27727 root 20 0 547936 234160 222080 S 2.0 0.3 0:07.62 dynamips
CPU will show usage of cpu.
shutdown router and remember new idle pc.
-
pants
- Posts: 4
- Joined: Tue Dec 05, 2017 3:42 am
Post
by pants » Fri Jan 05, 2018 3:56 pm
Your post says "run any image"
Here is what I get:
Code: Select all
root@eve-ng:~# ls /opt/unetlab/addons/dynamips/
c3745-adventerprisek9-mz.124-15.T14.image
c7200-adventerprisek9-mz.152-4.M11.image
c7200-adventerprisek9-mz.152-4.S6.image
c7200-adventerprisek9-mz.152-4.S7.image
root@eve-ng:~# dynamips -P 7200 /opt/unetlab/addons/dynamips/c7200-adventerprisek9-mz.152-4.S7.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: 35c38f4e-9f7e-489c-99e7-bddd16a74123
IOS image file: /opt/unetlab/addons/dynamips/c7200-adventerprisek9-mz.152-4.S7.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
C7200 instance 'default' (id 0):
VM Status : 0
RAM size : 256 Mb
IOMEM size : 0 Mb
NVRAM size : 128 Kb
NPE model : npe-400
Midplane : vxr
IOS image : /opt/unetlab/addons/dynamips/c7200-adventerprisek9-mz.152-4.S7.image
load_elf_image: invalid ELF file
C7200 'default': failed to load Cisco IOS image '/opt/unetlab/addons/dynamips/c7200-adventerprisek9-mz.152-4.S7.image'.
Unable to initialize router instance.
root@eve-ng:~#
None of the idle-pc commands will help me if I can't get the router to initialize. And from what I can tell it is telling me there is a bad ELF file which means nothing to me since we're through the holiday season.
-
Uldis (UD)
- Posts: 5086
- Joined: Wed Mar 15, 2017 4:44 pm
- Location: London
-
Contact:
Post
by Uldis (UD) » Fri Jan 05, 2018 5:53 pm
just tested posted by me all commands and they works !!
then something is wrong with your image...
bin image downloaded from cisco, original, must be unzipped using rar...to get raw image file.
then rename it...
and dont use 3745 but 3725
UD
-
pants
- Posts: 4
- Joined: Tue Dec 05, 2017 3:42 am
Post
by pants » Tue Jan 09, 2018 11:14 pm
Uldis (UD) wrote: ↑Fri Jan 05, 2018 5:53 pm
just tested posted by me all commands and they works !!
then something is wrong with your image...
bin image downloaded from cisco, original, must be unzipped using rar...to get raw image file.
then rename it...
and dont use 3745 but 3725
UD
Well I tried to unzip (this is based off the eve-ng documentation)> I assume it will do unrar but this could be incorrect. I will dig into that as I am not incredibly familiar with linux cli.
Code: Select all
root@eve-ng:~# unzip -p c7200-adventerprisek9-mz.152-4.S7.bin > c7200-adventerprisek9-mz.152-4.S7.image
warning [c7200-adventerprisek9-mz.152-4.S7.bin]: 112960 extra bytes at beginning or within zipfile
(attempting to process anyway)
-
pants
- Posts: 4
- Joined: Tue Dec 05, 2017 3:42 am
Post
by pants » Tue Jan 09, 2018 11:29 pm
I wanted to follow up on this post. I used WinRAR and extracted the .bin file and then transferred that via ftp. This appears to be working.
Thanks for your help!