It is currently Sat Aug 19, 2017 1:38 am


All times are UTC




Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: GNS3 1.0alpha1 install on Ubuntu 14.04 beta2
PostPosted: Thu Apr 03, 2014 4:23 am 
Offline

Joined: Fri Dec 23, 2011 8:29 pm
Posts: 32
Ubuntu 14.04 LTS is due out on April 17th, but you can download the latest beta (the release candidate) at http://releases.ubuntu.com/trusty/ -- it should be pretty stable by this point.

Then, once installed and updated, install the following packages to prep for building/installing the latest Dynamips, GNS3 1.0a1 server, and 1.0a1 GUI --

Code:
sudo apt-get install build-essential libelf-dev uuid-dev libpcap-dev python3-dev python3-pyqt4


(the python3-pyqt4 package will also pull in python3-sip package as a dep, which is also needed for the GUI.)

Then, download the latest Dynamips code from github - https://github.com/GNS3/dynamips/archive/master.zip
Unzip into the location of your choice (I made a "GNS3-1.0-alpha1" dir for these builds)

Then cd into the dynamips-master dir, and do
Code:
make && sudo make install

This should install dynamips into /usr/bin
Test it out to make sure it works:
Code:
$ dynamips -H 7200
Cisco Router Simulation Platform (version 0.2.13-dev-amd64/Linux stable)
Copyright (c) 2005-2011 Christophe Fillot.
Build date: Apr  2 2014 21:03:37

Local UUID: ceab9ce9-cf6e-48b1-9902-d49bd83e9eb1

Hypervisor TCP control server started (port 7200).
^CHypervisor: closing control sockets.
Hypervisor: closing remote client connections.
Shutdown in progress...
Shutdown completed.


Then we'll need to make sure that we have pip and setuptools installed for Python 3.x -- easiest way to do this is the following:
Code:
wget -O get-pip.py https://raw.github.com/pypa/pip/master/contrib/get-pip.py
sudo python3 get-pip.py


Now let's use pip to get some pre-req python modules for GNS3...
Code:
sudo pip3 install pyzmq
sudo pip3 install tornado
sudo pip3 install netifaces-py3


These will all download and compile code, and then install the resulting modules. The pyzmq one in particular will compile a lot of things, and warn early on that it can't find an existing libzmq installation -- that's OK, it will build it's own one during the compilation. Just let it run after the warning.

OK, now onto the new GNS3 server... Grab the server code from Github, https://github.com/GNS3/gns3-server/archive/master.zip
Unzip into the location of your choice, and then cd into the resulting gns3-server-master directory.
Then follow the instructions on the Github page to install it:
Code:
sudo python3 setup.py install


Now let's make sure that runs...
Code:
$ gns3server
GNS3 server version 1.0a2.dev1
Copyright (c) 2007-2014 GNS3 Technologies Inc.
Running with Python 3.4.0 and has PID 14044
[W 140403 00:11:40 config:82] no configuration file could be found or read
[I 140403 00:11:40 base:122] dynamips module running with PID 14046
[I 140403 00:11:40 base:75] ZeroMQ client (dynamips) connecting to 127.0.0.1:50052
[I 140403 00:11:40 server:194] ZeroMQ server listening to 127.0.0.1:50052
Starting server on 0.0.0.0:8000
[I 140403 00:11:40 base:122] iou module running with PID 14047
[I 140403 00:11:40 base:75] ZeroMQ client (iou) connecting to 127.0.0.1:50052
[C 140403 00:11:40 server:142] socket in use for port 8000
^CError in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/lib/python3.4/multiprocessing/popen_fork.py", line 30, in poll
[W 140403 00:11:51 base:111] Module dynamips got signal 2, exiting...
    pid, sts = os.waitpid(self.pid, flag)
KeyboardInterrupt
[W 140403 00:11:51 base:111] Module iou got signal 2, exiting...
^C

(Yes, it hangs at the last "exiting...", I use another Ctrl-C to terminate the process, which doesn't seem to hurt anything.)

Lastly, download and install the GUI --
Grab the GUI code from Github, https://github.com/GNS3/gns3-gui/archive/master.zip
Unzip into the location of your choice, and then cd into the resulting gns3-gui-master directory.
Then, follow the instructions on the Github page to install it:
Code:
sudo python3 setup.py install


Lastly, start up the server in one terminal window:
Code:
$ gns3server
GNS3 server version 1.0a2.dev1
Copyright (c) 2007-2014 GNS3 Technologies Inc.
Running with Python 3.4.0 and has PID 14071
[W 140403 00:21:32 config:82] no configuration file could be found or read
[I 140403 00:21:32 base:122] dynamips module running with PID 14073
[I 140403 00:21:32 base:75] ZeroMQ client (dynamips) connecting to 127.0.0.1:49055
[I 140403 00:21:32 server:194] ZeroMQ server listening to 127.0.0.1:49055
Starting server on 0.0.0.0:8000
[I 140403 00:21:32 base:122] iou module running with PID 14074
[C 140403 00:21:32 server:142] socket in use for port 8000
[I 140403 00:21:32 base:75] ZeroMQ client (iou) connecting to 127.0.0.1:49055


And then in another terminal window, fire up the GNS3 GUI --
Code:
$ gns3
GNS3 GUI version 1.0-alpha1
Copyright (c) 2007-2014 GNS3 Technologies Inc.
INFO:gns3.modules.dynamips:Dynamips module reset
INFO:gns3.modules.iou:IOU module reset
INFO:gns3.topology:topology has been reset
INFO:gns3.main_window:creating temporary topology file: /tmp/gns3-2m0823n0.net
INFO:gns3.main_window:creating temporary project files directory: /tmp/gns3-2m0823n0-files
INFO:gns3.modules.dynamips:local working directory for Dynamips module: /tmp/gns3-2m0823n0-files
INFO:gns3.servers:new local server connection ws://127.0.0.1:8000 registered
INFO:gns3.modules.iou:local working directory for IOU module: /tmp/gns3-2m0823n0-files


Now, enjoy exploring new GNS3! :)




Top
 Profile  
 
 Post subject: Re: GNS3 1.0alpha1 install on Ubuntu 14.04 beta2
PostPosted: Thu Apr 03, 2014 9:09 am 
Offline

Joined: Wed Apr 02, 2014 4:28 pm
Posts: 8
thx mate


Top
 Profile  
 
 Post subject: Re: GNS3 1.0alpha1 install on Ubuntu 14.04 beta2
PostPosted: Thu Apr 03, 2014 10:24 am 
Offline

Joined: Sun Sep 16, 2012 9:55 pm
Posts: 541
Location: England
As a side note, Ubuntu trusty has Dynamips 0.2.11 in the multiverse repository. I shall shortly be uploading 0.2.12 to the GNS3 PPA as well.

There may also be some more news regarding the packaging of Dynamips etc, in the coming days/weeks... Stay tuned!

_________________
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: GNS3 1.0alpha1 install on Ubuntu 14.04 beta2
PostPosted: Thu Apr 03, 2014 7:20 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
Excellent :) thanks!

Just a few things.

Quote:
(Yes, it hangs at the last "exiting...", I use another Ctrl-C to terminate the process, which doesn't seem to hurt anything.)


I'll fix that.

Quote:
GNS3 server version 1.0a2.dev1


Be careful, you were using a dev version, not the alpha1 anymore. It can be good or it can be bad ;)

Cheers,

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: GNS3 1.0alpha1 install on Ubuntu 14.04 beta2
PostPosted: Thu Apr 03, 2014 8:39 pm 
Offline

Joined: Fri Dec 23, 2011 8:29 pm
Posts: 32
YOLO :)

(They're all "dev versions" at this point, yes? ;)


Top
 Profile  
 
 Post subject: Re: GNS3 1.0alpha1 install on Ubuntu 14.04 beta2
PostPosted: Fri Apr 04, 2014 12:15 am 
Offline

Joined: Tue Apr 01, 2014 2:11 pm
Posts: 43
Location: Ohio, US
This guide helped me a lot, but I needed some extra steps to get IOU working on 64-bit. I'm going to quote my post from another thread:

josephraa wrote:
@CiscoStud:
Are you using a 64-bit distro? I'm beginning to think there is good reason why the Debian Jessie guide recommends 32-bit. I got to that same point on my 64-bit Ubuntu 14.04, but discovered that I needed some additional libraries (sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0). Then, even though I had created the symlink for libcrypto, I still go the not found error for that, which I determined was due to the fact that my libcrypto.so.1.0.0 file was in a different location, so I needed a different symlink (ln -s /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/libcrypto.so.4). Of course, then I started getting this error:
Code:
error while loading shared libraries: libcrypto.so.4: wrong ELF class: ELFCLASS64


Turns out, I needed the 32-bit version of libcrypto.so.1.0.0. To make a long story short, here are the exact steps that ended up working for me on 64-bit Ubuntu 14.04. YMMV

Code:
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0
sudo apt-get install libssl1.0.0:i386
sudo apt-get install libtinfo5:i386
sudo ln -s /lib/i386-linux-gnu/libcrypto.so.1.0.0 /usr/lib/libcrypto.so.4


Note1: I'm not sure that libtinfo5:i386 is necessary, but it didn't seem to hurt.
Note2: If you're using a different distro, it helps to do "find / -name libcrypto.so.1.0.0" from the root dir to figure out where you need to link to. You should get two results and you should be able to tell which is 64-bit and which is 32-bit based on the directories in which they reside.

Links that helped me figure this out:
http://evilrouters.net/2011/01/18/cisco-iou-faq/
https://bugs.launchpad.net/ubuntu/+sour ... bug/939810


Also, don't forget iouyap. From the Debian Jessie guide:
"4 - Install iouyap
Download iouyap.tar.gz from: http://sourceforge.net/projects/gns-3/f ... z/download
tar zxvf iouyap.tar.gz
cp iouyap /usr/local/bin/iouyap"

_________________
Joe Amen - Enterprise IT Consultant
CompTIA A+, Net+
CCNA in progress


Last edited by rednectar on Sat Apr 26, 2014 9:04 pm, edited 1 time in total.
Fixed link to:http://sourceforge.net/projects/gns-3/files/Tools/iouyap.tar.gz/download


Top
 Profile  
 
 Post subject: Re: GNS3 1.0alpha1 install on Ubuntu 14.04 beta2
PostPosted: Sun Apr 06, 2014 1:05 am 
Offline

Joined: Sun Apr 06, 2014 12:53 am
Posts: 3
Location: Costa Rica
Hello all;

I hope you are doing great;

Has some one face the following error message:

$ gns3GNS3 GUI version 1.0a2.dev1
Copyright (c) 2007-2014 GNS3 Technologies Inc.
---------Traceback lines (saved in exception.log)----------
Traceback (most recent call last):

File "/usr/local/bin/gns3", line 9, in <module>
load_entry_point('gns3-gui==1.0a2.dev1', 'console_scripts', 'gns3')()

File "/usr/local/lib/python3.2/dist-packages/gns3_gui-1.0a2.dev1-py3.2.egg/gns3/main.py", line 60, in main
raise RuntimeError("Python 3.3 or higher is required")

RuntimeError: Python 3.3 or higher is required


-- I already installed python 3.4 but I still get the same error when trying to start the gns3server and gns3.

Best regards;

I'm running ubuntu 12.04 64 bits, I am not totally new to linux but I am not a master.
If you can help me I would really appreciate it.


Top
 Profile  
 
 Post subject: Re: GNS3 1.0alpha1 install on Ubuntu 14.04 beta2
PostPosted: Sun Apr 06, 2014 1:17 am 
Offline

Joined: Fri Dec 23, 2011 8:29 pm
Posts: 32
Here's a brief tale of my experience trying to get GNS3 1.0a1 running on Ubuntu 12.04 amd64: topic8984.html

I suppose it may be doable, but I for one ran out of time trying to get it to work... Hence using the beta (RC) of Ubuntu 14.04. That basically just worked.

Good luck,
Will


Top
 Profile  
 
 Post subject: Re: GNS3 1.0alpha1 install on Ubuntu 14.04 beta2
PostPosted: Sun Apr 06, 2014 2:04 am 
Offline

Joined: Sun Apr 06, 2014 12:53 am
Posts: 3
Location: Costa Rica
Thanks;

I give up, I'll download the Ubuntu 14.04 to see what happens.


Top
 Profile  
 
 Post subject: Re: GNS3 1.0alpha1 install on Ubuntu 14.04 beta2
PostPosted: Sun Apr 06, 2014 6:39 pm 
Offline

Joined: Sun Apr 06, 2014 6:36 pm
Posts: 25
Location: Bydgoszcz, POL
Good Evening,

I just followed procedure mentioned above and it works fine on freshly installed Ubuntu 13.10.
Many Thanks for this instructions.

Regards,
UWillC



_________________
UWillC
http://www.sprawdzony.net

Cisco Certified Entry Networking Technician
ITIL Foundation Certificate in IT Service Management
Windows® Server 2008 Certified Professional


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ]  Go to page 1, 2  Next

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