It is currently Thu Nov 26, 2020 11:06 pm


All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: BUG Dynamips 0.2.8 and 0.2.9 Hang on Linux
PostPosted: Sat Aug 03, 2013 11:56 am 
Offline

Joined: Fri Mar 05, 2010 11:33 am
Posts: 1494
Location: Australia
This started out as topic6742.html but I have discovered that the problem has nothing to do with the .deb package, but to do with the changes made between dynamips 0.2.8 RC4 and the release dynamips 0.2.8. The problem exists also exists for dynamips 0.2.9

The easiest way to show that a problem exists is to simply run dynamips on a Linux distro. I don't know how many versions are affected, but I have tested and verified that the problem exists on:

Linux Mint (32-bit) 15.0 Cinnamon
Linux Mint (64-bit) 15.0 Cinnamon
Linux Mint (32-bit) 13.2
Ubuntu 12.04 (32-bit)

Symptoms

dynamips simply hangs. Sometimes - perhaps once every three or four instances, perhaps as little as one every ten launches. In the case of Ubuntu - 100% of the timeEdit 2013-08-04
To test, open a terminal window, and enter the command
dynamips
or
dynamips --help

If all is well, dynamips will spit out a large page of information, and return to the prompt

If all is NOT well, you will see the same large page of info - BUT THE PROCESS WILL HANG - you will have to hit ^c to kill it: (See below)

There will be a file left behind called c7200_i0log.txt with the following line:
Aug 03 21:38:11.597 VM: trying to shutdown an inactive VM.



Code:
Cisco Router Simulation Platform (version 0.2.9-x86/Linux stable)
Copyright (c) 2005-2011 Christophe Fillot.
Build date: Aug  3 2013 21:24:44

Local UUID: 3eb3b870-49f1-4f4e-b13a-d097b0b4a2e0

Usage: ./dynamips [options] <ios_image>

Available options:
  -H [<ip_address>:]<tcp_port> : Run in hypervisor mode

  -P <platform>      : Platform to emulate (7200, 3600, 2691, 3725, 3745, 2600 or 1700) (default: 7200)

  -l <log_file>      : Set logging file (default is dynamips_log.txt)
  -j                 : Disable the JIT compiler, very slow
  --idle-pc <pc>     : Set the idle PC (default: disabled)
  --timer-itv <val>  : Timer IRQ interval check (default: 1000)

  -i <instance>      : Set instance ID
  -r <ram_size>      : Set the virtual RAM size (default: 256 Mb)
  -o <rom_size>      : Set the virtual ROM size (default: 4 Mb)
  -n <nvram_size>    : Set the NVRAM size (default: 128 Kb)
  -c <conf_reg>      : Set the configuration register (default: 0x2102)
  -m <mac_addr>      : Set the MAC address of the chassis
                       (default: automatically generated)
  -C <cfg_file>      : Import an IOS configuration file into NVRAM
  -X                 : Do not use a file to simulate RAM (faster)
  -G <ghost_file>    : Use a ghost file to simulate RAM
  -g <ghost_file>    : Generate a ghost RAM file
  --sparse-mem       : Use sparse memory
  -R <rom_file>      : Load an alternate ROM (default: embedded)
  -k <clock_div>     : Set the clock divisor (default: 4)

  -T <port>          : Console is on TCP <port>
  -U <si_desc>       : Console in on serial interface <si_desc>
                       (default is on the terminal)

  -A <port>          : AUX is on TCP <port>
  -B <si_desc>       : AUX is on serial interface <si_desc>
                       (default is no AUX port)

  --disk0 <size>     : Set PCMCIA ATA disk0: size (default: 64 Mb)
  --disk1 <size>     : Set PCMCIA ATA disk1: size (default: 0 Mb)

  --noctrl           : Disable ctrl+] monitor console
  --notelnetmsg      : Disable message when using tcp console/aux
  --filepid filename : Store dynamips pid in a file

  -t <npe_type>      : Select NPE type (default: "npe-200")
  -M <midplane>      : Select Midplane ("std" or "vxr")
  -p <pa_desc>       : Define a Port Adapter
  -s <pa_nio>        : Bind a Network IO interface to a Port Adapter
  -I <serialno>      : Set Processor Board Serial Number

  -a <cfg_file>      : Virtual ATM switch configuration file
  -f <cfg_file>      : Virtual Frame-Relay switch configuration file
  -E <cfg_file>      : Virtual Ethernet switch configuration file
  -b <cfg_file>      : Virtual bridge configuration file
  -e                 : Show network device list of the host machine

<si_desc> format:
   "device{:baudrate{:databits{:parity{:stopbits{:hwflow}}}}}}"

<pa_desc> format:
   "slot:sub_slot:pa_driver"

<pa_nio> format:
   "slot:port:netio_type{:netio_parameters}"

Available C7200 NPE drivers:
  * npe-100
  * npe-150
  * npe-175
  * npe-200
  * npe-225
  * npe-300
  * npe-400
  * npe-g1 (NOT WORKING)
  * npe-g2 (NOT WORKING)

Available C7200 Port Adapter (PA) drivers:
  * NPE-G2
  * C7200-IO-FE
  * C7200-IO-2FE (NOT WORKING)
  * C7200-IO-GE-E (NOT WORKING)
  * PA-FE-TX
  * PA-2FE-TX (NOT WORKING)
  * PA-GE (NOT WORKING)
  * PA-4E
  * PA-8E
  * PA-4T+
  * PA-8T
  * PA-A1
  * PA-POS-OC3
  * PA-4B (NOT WORKING)
  * PA-MC-8TE1 (NOT WORKING)
  * C7200-JC-PA

Available NETIO types:
  * unix       : UNIX local sockets
  * vde        : Virtual Distributed Ethernet / UML switch
  * tap        : Linux/FreeBSD TAP device
  * udp        : UDP sockets
  * udp_auto   : Auto UDP sockets
  * tcp_cli    : TCP client
  * tcp_ser    : TCP server
  * mcast      : Multicast bus
  * linux_eth  : Linux Ethernet device
  * gen_eth    : Generic Ethernet device (PCAP)
  * fifo       : FIFO (intra-hypervisor)
  * null       : Null device



Testing Environment:

In each case I was running a Virtual Machine, but have reproduced the problem on VMs running under both VMware Fusion and Parallels and on two different host machines with 3 different Linux 15.0 base images. The Ubuntu and Linux Mint 13.2 were run under VMware Fusion on the same machine,



_________________
RedNectar
http://rednectar.net
@rednectarchris
GNS3 WorkBench-a VMware image of Ubuntu with GNS3 and VPCS installed and a collection of exercises/labs


Last edited by rednectar on Sun Aug 04, 2013 6:05 am, edited 2 times in total.
Added Linux Mint (64-bit) 15.0 Cinnamon to list of tested OS


Top
 Profile  
 
 Post subject: Re: BUG Dynamips 0.2.8 and 0.2.9 Hang on Linux
PostPosted: Sat Aug 03, 2013 5:13 pm 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
I've had a look through the source code and confirm the dynamips doesn't have '--help' as a command line option. What happens is any unknown command line option is caught by a catch-all case which causes the help page to be shown.

I've also been doing some more testing using just Dynamips running on Ubuntu 13.04 (using instantserver.io). So far this is what I've found:

dynamips-0.2.8-RC3 : Works fine
dynamips-0.2.8-RC4 : Works fine
dynamips-0.2.8-RC5 : Works fine
dynamips-0.2.8-RC6 : Works fine

dynamips-0.2.8 & dynamips-0.2.9 : This is where it gets interesting!

I noticed that if I ran 0.2.8-RC6 before running 0.2.8/0.2.9, then 0.2.8/0.2.9 would run correctly. So I looked further into this, after running 0.2.8-RC6, two files were left in the current directory

  • c7200_i0_log.txt
  • c7200_i0_lock

The important file being the lock file. If I removed both files and created the lock file using
Code:
touch c7200_i0_lock
0.2.8 and 0.2.9 would again both run correctly.

Again looking further I ran 0.2.8 (without the lock file, so it would hang) and from a seperate terminal looked at the folder contents. The lock file hadn't been created.

So... if your still following my train of thought, the problem seems to be 0.2.8 and above not creating the required lock file. What I can't answer is why the problem dynamips doesn't seem to hang every time on Linux Mint but does on Ubuntu?

I shall report back if I discover anything else!

_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
 Post subject: Re: BUG Dynamips 0.2.8 and 0.2.9 Hang on Linux
PostPosted: Sun Aug 04, 2013 6:06 am 
Offline

Joined: Fri Mar 05, 2010 11:33 am
Posts: 1494
Location: Australia
More discussion at https://github.com/GNS3/dynamips/issues/17

_________________
RedNectar
http://rednectar.net
@rednectarchris
GNS3 WorkBench-a VMware image of Ubuntu with GNS3 and VPCS installed and a collection of exercises/labs


Top
 Profile  
 
 Post subject: Re: BUG Dynamips 0.2.8 and 0.2.9 Hang on Linux
PostPosted: Mon Aug 05, 2013 4:40 am 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
Looks like I was right not to rush the next release ;) Anyway, I hope this is gonna be fixed soon. Right now I am traveling and following this from a distance...

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: BUG Dynamips 0.2.8 and 0.2.9 Hang on Linux
PostPosted: Tue Aug 06, 2013 5:14 pm 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
This bug has now been fixed and will be included with 0.2.10 release of dynamips.

https://github.com/GNS3/dynamips/issues/17

_________________
Daniel
Forum Moderator & Debian Package Maintainer for GNS3, Dynamips & VPCS.
Standalone DEB Packages are available from http://gns3.serverb.co.uk - To be updated!


Top
 Profile  
 
 Post subject: Re: BUG Dynamips 0.2.8 and 0.2.9 Hang on Linux
PostPosted: Wed Aug 07, 2013 7:05 am 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
I will release when Dynamips 0.2.10 is ready then :)



_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO