Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GNS3 version 2.1.8 does returns unknown error on Ubuntu 18.04 with dynamips version 0.2.18 #124

Open
balajig opened this issue Jun 25, 2018 · 53 comments
Assignees
Labels

Comments

@balajig
Copy link

balajig commented Jun 25, 2018

I am using gns3 version 2.1.8 on Ubuntu 18.04. On loading any IOS image with dynamips installed, i get the following error

Dynamips hypervisor process has stopped, return code: -11
C3745 'Ghost': generic_nvram_extract_config: Unknown error -61605

I have tried with many IOS images and all return the same error. These IOS images used to work in Ubuntu 16.04.

Please note: I installed gns3-gui using the apt-get method from the GNS3 Ubuntu PPA and didnt compile dynamips or any other package separately.

@balajig balajig changed the title GNS3 2.1.8 does returns unknown error on Ubuntu 18.04 with dynamips version 0.2.18 GNS3 version 2.1.8 does returns unknown error on Ubuntu 18.04 with dynamips version 0.2.18 Jun 26, 2018
@balajig
Copy link
Author

balajig commented Jun 26, 2018

Would be happy to provide any more information required to debug/narrow down this issue

@grossmj grossmj self-assigned this Jun 28, 2018
@retlaw
Copy link

retlaw commented Jul 10, 2018

I am also affected by this bug. Glad it's getting attention. Thank you.
This only happens when I install on physical hardware. If I install ubuntu 18.04 in a VM, dynamips doesn't give the error.

@grossmj
Copy link
Member

grossmj commented Jul 10, 2018

We suspect an issue with a library used by Dynamips.

See #84 and #83

Compiling Dynamips for x86 may solve the problem.

@grossmj
Copy link
Member

grossmj commented Jul 10, 2018

This only happens when I install on physical hardware. If I install ubuntu 18.04 in a VM, dynamips doesn't give the error.

I confirm I don't have the issue when running Ubuntu 18.04 in a VM.

@grossmj
Copy link
Member

grossmj commented Jul 10, 2018

Compiling Dynamips for x86 may solve the problem.

Can you try the 32-bit version of Dynamips on physical hardware please?

You can compile it yourself or download it from https://drive.google.com/open?id=16cpF6CP6KuzbXRS2QTcGcST0vcNmvom5 (you still need to install the 32-bit libraries with sudo apt install libelf-dev:i386 libpcap0.8-dev:i386)

To compile from scratch:

sudo apt install libc6-dev-i386
sudo apt install libelf-dev:i386 libpcap0.8-dev:i386
sudo apt install git cmake
git clone https://github.com/GNS3/dynamips.git
cd dynamips
mkdir build
cd build
cmake .. -DDYNAMIPS_ARCH=x86
make
sudo make install

Thanks!

@retlaw
Copy link

retlaw commented Jul 10, 2018 via email

@grossmj
Copy link
Member

grossmj commented Jul 10, 2018

Try this command: sudo apt install libelf-dev libpcap0.8-dev then start again from cmake .. -DDYNAMIPS_ARCH=x86

Thanks!

@retlaw
Copy link

retlaw commented Jul 10, 2018 via email

@grossmj
Copy link
Member

grossmj commented Jul 10, 2018

What is the content of /home/walter/dynamips/build/CMakeFiles/CMakeError.log?

@retlaw
Copy link

retlaw commented Jul 10, 2018 via email

@balajig
Copy link
Author

balajig commented Jul 10, 2018

Hi

I tried installing gns3 from the same Ubuntu repos ppa in version 16.04 and everything works. Just curious if it’s something to do with some dependencies specific to 18.04 ?

Thanks
Balaji

@retlaw
Copy link

retlaw commented Jul 10, 2018 via email

@retlaw
Copy link

retlaw commented Jul 11, 2018 via email

@grossmj
Copy link
Member

grossmj commented Jul 11, 2018

Thanks for your help Jeremy. Hopefully you can assist with a fix now
without going the 32bit route.

Thanks for the feedback. I think we going to stick to the 32-bit route for now since we have no idea how we can fix the 64-bit version at the moment.

@balajig
Copy link
Author

balajig commented Jul 11, 2018

Hi Walter

If you could document the steps on how to make this work in Ubuntu 18.04, it would be really helpful.

Thanks for your help

@retlaw
Copy link

retlaw commented Jul 12, 2018 via email

@balajig
Copy link
Author

balajig commented Jul 12, 2018

Hi Walter

Thanks a lot. Would try this out. I had to move back to 16.04 just because GNS3 was not working. Now i could happily move to 18.04 :)

Thanks for your help in testing out the recommendations and also for the quick how to :)

  • Balaji

@superwolfboy
Copy link

I have the same issue with VM.
Lubuntu 18.04
...

@t3mp30r3k
Copy link

same issue with linux mint 19 (ubuntu 18.04)

Error: Could not send Dynamips command 'vm get_status "AUTOIDLEPC"' to 127.0.0.1:59775: Connection lost, process running: False

this how to not successfully fix the problem

sudo add-apt-repository ppa:gns3/ppa sudo apt update sudo apt install gns3-gui sudo apt install libc6-dev-i386 gcc-multilib libelf-dev libelf-dev:i386 libpcap0.8-dev libpcap0.8-dev:i386 git cmake git clone https://github.com/GNS3/dynamips.git cd dynamips/ mkdir build && cd build cmake .. -DDYNAMIPS_ARCH=x86 make sudo make install

@grossmj
Copy link
Member

grossmj commented Aug 5, 2018

I noticed we already build Dynamips 32-bit on our PPA. Something like this should be enough to install:

$ sudo add-apt-repository ppa:gns3/ppa
$ sudo apt update
$ sudo apt install dynamips:i386
$ dynamips
Cisco Router Simulation Platform (version 0.2.18-x86/Linux stable)
Copyright (c) 2005-2011 Christophe Fillot.
Build date: Apr  3 2018 09:35:00

Please let us know if this fixes the problem.

@superwolfboy
Copy link

superwolfboy commented Aug 7, 2018

once I run sudo apt install dynamips:i386,the dynamips(64) and gns3-gui,gns3-server would be automatically removed.
after installed dynamips:i386, I install gns3-gui back, it said dynamips:i386 will be removed,once choose yes , the dynamips:i386 also would be automatically removed
don't know how to break this dependence

@superwolfboy
Copy link

superwolfboy commented Aug 7, 2018

I have try like this :
1, apt remove the dynamips 64 with gns3-gui and gns3-server automatically,
2, Install dynamips:i386,
3, copy usr/bin/dynamips (32bit version ) to another path
4, install gns3-gui and gns3-server , the dynamips:i386 will be removed.
5, use ln -s the dynamips 32 which copied beford,to /usr/bin/dynamips
then run a topo with dynamips device like c3745 it's working.

@grossmj
Copy link
Member

grossmj commented Aug 8, 2018

I think the reason is that dynamips is a dependency of gns3-server. I am considering moving it to a recommendation instead so users are free to install the 64-bit or 32-bit version or nothing at all if they don't need dynamips at all.

Current control file for the gns3-server package is:

Source: gns3-server
Section: net
Priority: extra
Maintainer: GNS3 team <[email protected]>
Build-Depends: debhelper (>= 9), python3, python3-setuptools, python3-dev, dh-virtualenv, python-setuptools
Standards-Version: 3.9.5
X-Python3-Version: >= 3.4, <= 3.6

Package: gns3-server
Architecture: amd64
Pre-Depends: dpkg (>= 1.16.1), python3.4 | python3.5  | python3.6
Depends: python3, vpcs, dynamips, ubridge (>= 0.9.14), qemu-system-x86, qemu-system-arm, qemu-kvm, qemu-utils, cpulimit, x11vnc, xvfb, libvirt-bin | libvirt-daemon-system, ${misc:Depends}, ${shlibs:Depends}
Enhances: gns3-iou
Description: GNS3 server

We would remove dynamips from Depends and add Recommends: dynamips

@ziajka @Ehlers what do you think?

@ghost
Copy link

ghost commented Aug 8, 2018

I'm installing GNS3 from source, so the following is just theoretical.

Here a documentation about the dependencies: https://www.debian.org/doc/debian-policy/ch-relationships.html#binary-dependencies-depends-recommends-suggests-enhances-pre-depends

I think, that the gns3-server package depends on packages, that are not really necessary to use the server, so something like the following might be an alternative:

Depends: python3, ubridge (>= 0.9.14), x11vnc, xvfb, libvirt-bin | libvirt-daemon-system, ${misc:Depends}, ${shlibs:Depends}
Recommends: vpcs, dynamips, qemu-system-x86, qemu-kvm, qemu-utils, cpulimit
Suggests: qemu-system-arm

Maybe even x11vncand xvfb might be moved to Recommends as these packages are only used by docker VMs, but that must be verified. Same for libvirt-bin | libvirt-daemon-system, it's needed for the NAT cloud. Is this core functionality or is it only recommended? And what about docker? Currently it's missing.

But the drawback moving package to Recommends or Suggests is, that GNS3 can't expect that these packages are installed. GNS3 must cope with absent packages. I think, that it already does that, but it has to be verified. And it must be clear to the user, that leaving out some packages reduces the functionality of GNS3.

@superwolfboy
Copy link

superwolfboy commented Aug 8, 2018

@Ehlers So that shoud make some other support package, just like gns3-docker,gns3-nat-cloud for docker and nat could support.
@grossmj dynamips should be weak dependency.

@grossmj
Copy link
Member

grossmj commented Aug 13, 2018

I will only have Dynamips as a weak dependency (move it to the recommends field) for now to try to fix this current issue and we will consider moving more things like vpcs and Qemu in GNS3 version 2.2. Also, I think libvirt-bin is a core functionality.

@grossmj
Copy link
Member

grossmj commented Aug 28, 2018

Starting with version 2.1.9 packages, the Dynamips package is not installed by default anymore.

I installed Dynamips 32-bit on a fresh Ubuntu 18.04 64-bit VM using the following commands and tested with c3725 and c7200 images and got no crash. However, the headache with this Dynamips crash is that it apparently doesn't happen when running Ubuntu 18.04 in a VM. The only thing we can do at the moment is to let our Ubuntu users know about the problem and how to install Dynamips 32-bit as a work around, then get feedback.

sudo add-apt-repository ppa:gns3/ppa
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install dynamips:i386

@GNS3 GNS3 deleted a comment from Orobas-D Sep 19, 2018
@bhagavansprasad
Copy link

bhagavansprasad commented Oct 8, 2018

Walter, thank you very much for your workaround, it helped me, its working (vm ubuntu18.04 64bit)

@shiblovich
Copy link

hi bro gns3 worked for only 1 day and after restarting the pc it gives me this error and i made and run all previous command and this is not work
Dynamips hypervisor process has stopped, return code: -11
C7200 'Ghost': generic_nvram_extract_config: Unknown error -61605

@grossmj
Copy link
Member

grossmj commented Dec 30, 2018

@shiblovich can you try the following workaround?

#91 (comment)

Thanks

@kvoitic
Copy link

kvoitic commented Jan 17, 2019

I noticed we already build Dynamips 32-bit on our PPA. Something like this should be enough to install:

$ sudo add-apt-repository ppa:gns3/ppa
$ sudo apt update
$ sudo apt install dynamips:i386
$ dynamips
Cisco Router Simulation Platform (version 0.2.18-x86/Linux stable)
Copyright (c) 2005-2011 Christophe Fillot.
Build date: Apr  3 2018 09:35:00

Please let us know if this fixes the problem.

just worked like a charm! thank you.

@shiblovich
Copy link

Yup , it's solved thank you very much

@grossmj
Copy link
Member

grossmj commented Jan 19, 2019

This issue should be fixed by installing Dynamips v0.2.19. No need to specifically install the 32-bit version or to set the timezone.

See #91 (comment) for details.

@grossmj grossmj closed this as completed Jan 19, 2019
@islamwanas
Copy link

perfect thanks a lot
it's working now

@ericmalatji
Copy link

docker support?

@grossmj
Copy link
Member

grossmj commented Apr 15, 2019

@ericmalatji do you mean we could Dockerize Dynamips?

@ericmalatji
Copy link

ericmalatji commented Apr 16, 2019 via email

@vivekest
Copy link

How to use this fix on Windows?

@Mohamedhabi
Copy link

Mohamedhabi commented Jan 24, 2021

I'm using ubuntu 20.10 and the last release of GNS3 but i still get this problem, any help ?
Cisco Router Simulation Platform (version 0.2.21-amd64/Linux stable)
i tried changing the timezone but it doesn't work

=> Dynamips hypervisor process has stopped, return code: -11
C7200 'Ghost': generic_nvram_extract_config: Unknown error -61605

@ShaneEverittM
Copy link

I'm using ubuntu 20.10 and the last release of GNS3 but i still get this problem, any help ?
Cisco Router Simulation Platform (version 0.2.21-amd64/Linux stable)
i tried changing the timezone but it doesn't work

=> Dynamips hypervisor process has stopped, return code: -11
C7200 'Ghost': generic_nvram_extract_config: Unknown error -61605

Yeah, it seems that after updating to 20.10 this problem came back. Wasn't an issue on 20.04.

@pouriyabp
Copy link

I'm using ubuntu 20.10 and the last release of GNS3 but i still get this problem, any help ?
Cisco Router Simulation Platform (version 0.2.21-amd64/Linux stable)
i tried changing the timezone but it doesn't work

=> Dynamips hypervisor process has stopped, return code: -11
C7200 'Ghost': generic_nvram_extract_config: Unknown error -61605

Yeah, it seems that after updating to 20.10 this problem came back. Wasn't an issue on 20.04.

any solution?

@grossmj grossmj reopened this Sep 6, 2021
@grossmj
Copy link
Member

grossmj commented Sep 6, 2021

I am going to investigate. Have you tried 21..04?

@pouriyabp
Copy link

pouriyabp commented Sep 6, 2021

I am going to investigate. Have you tried 21..04?

No, Do you think its gonna fix on version 21.04?
i have these errors on version 20.10:

=> Dynamips hypervisor process has stopped, return code: -11
C7200 'Ghost': generic_nvram_extract_config: Unknown error -61605

No data returned from localhost:36991, Dynamips process running: False
Could not send Dynamips command 'vm set_ghost_status "R1" 2' to localhost:36991: Connection lost, process running: False

@grossmj
Copy link
Member

grossmj commented Sep 8, 2021

Please try to run Dynamips directly to narrow down the issue: dynamips -P 7200 <path_to_ios_image>. Thanks :)

@pouriyabp
Copy link

thanks for trying to help; i got this output:

Cisco Router Simulation Platform (version 0.2.21-amd64/Linux stable)
Copyright (c) 2005-2011 Christophe Fillot.
Build date: Jul 12 2019 11:00:00

IOS image file: c7200-adventerprisek9-mz.124-24.T8.bin

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  : c7200-adventerprisek9-mz.124-24.T8.bin

Loading ELF file 'c7200-adventerprisek9-mz.124-24.T8.bin'...
ELF entry point: 0x80008000

C7200 'default': starting simulation (CPU0 PC=0xffffffffbfc00000), JIT enabled.
ROMMON emulation microcode.

Segmentation fault (core dumped)
 

@devopstales
Copy link

Same on Ubuntu 21.04

@ayazban
Copy link

ayazban commented Sep 21, 2021

I tried following the code to build using:
sudo add-apt-repository ppa:gns3/ppa
sudo apt update
sudo apt install gns3-gui
sudo apt install libc6-dev-i386 gcc-multilib libelf-dev libelf-dev:i386
libpcap0.8-dev libpcap0.8-dev:i386 git cmake
git clone https://github.com/GNS3/dynamips.git
cd dynamips/
mkdir build && cd build
cmake .. -DDYNAMIPS_ARCH=x86
make
sudo make install

I got stuck on cmake .. -DDYNAMIPS_ARCH=x86 with error:
-- CMAKE_MODULE_PATH=/home/ayaz/dynamips/cmake
-- The C compiler identification is GNU 10.3.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- dependencies - BEGIN
-- Performing Test ARCH_AMD64
-- Performing Test ARCH_AMD64 - Success
-- Performing Test ARCH_X86
-- Performing Test ARCH_X86 - Success
-- ARCH_AMD64=1
-- ARCH_X86=1
-- DYNAMIPS_ARCH=x86
-- Performing Test FLAG__MDYNAMIC_NO_PIC
-- Performing Test FLAG__MDYNAMIC_NO_PIC - Failed
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- USE_LIBRT=1
-- Looking for connect in socket
-- Looking for connect in socket - not found
-- Looking for gethostbyname in nsl
-- Looking for gethostbyname in nsl - found
-- USE_LIBNSL=1
CMake Error at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
Could NOT find LibElf (missing: LIBELF_LIBRARIES)
Call Stack (most recent call first):
/usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
cmake/FindLibElf.cmake:52 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
cmake/dependencies.cmake:137 (find_package)
CMakeLists.txt:32 (include)

-- Configuring incomplete, errors occurred!
See also "/home/ayaz/dynamips/build/CMakeFiles/CMakeOutput.log" -Attached.
See also "/home/ayaz/dynamips/build/CMakeFiles/CMakeError.log" -Attached.
laptop:~/dynamips/build$ make
make: *** No targets specified and no makefile found. Stop.
CMakeError.log
CMakeOutput.log

How can I fix this?

@grossmj grossmj transferred this issue from GNS3/gns3-server Oct 8, 2021
@grossmj grossmj added the bug label Oct 8, 2021
@grossmj
Copy link
Member

grossmj commented Oct 9, 2021

Yeah, it seems that after updating to 20.10 this problem came back. Wasn't an issue on 20.04.

@dmmarkov I was wondering if you could help with that issue since you were the one who fixed a similar crash with older Ubuntu versions (#97). Thanks 👍

@dmmarkov
Copy link

Yeah, it seems that after updating to 20.10 this problem came back. Wasn't an issue on 20.04.

@dmmarkov I was wondering if you could help with that issue since you were the one who fixed a similar crash with older Ubuntu versions (#97). Thanks +1

Hello! I'm just a bit busy for last time. Maybe I will find some time for this issue in next two week.

@grossmj
Copy link
Member

grossmj commented Oct 27, 2021

Hello! I'm just a bit busy for last time. Maybe I will find some time for this issue in next two week.

No worries, thanks a lot :)

@vitamins
Copy link

You can use the following workaround

wget http://ppa.launchpad.net/gns3/ppa/ubuntu/pool/main/d/dynamips/dynamips_0.2.21-1~eoan1_i386.deb
sudo dpkg -i dynamips_0.2.21-1~eoan1_i386.deb
sudo apt --fix-broken install

Maybe someone can suggest a better way to install the dependencies, but it works.

@littleliguang
Copy link

hello ,
I have fixed this issue , but the status was still stuck on 'press ENTER to get the prompt' when I login the ios-router?

@flaviojs
Copy link
Contributor

If someone else gets this issue, getting a gdb backtrace would help a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests