GNS3 1.3.8 – The Complete installation guide for Fedora 22

Posted on Posted in GNS3, Networks

Following on from previous posts about getting GNS3 up and running, here is the next installment.  In the future I plan to release a shell script which will automate all of the steps below and therefore simply things greatly for my fellow Fedora users.

Get the required packages installed ahead of time.

sudo dnf install python3-setuptools python3-devel python3-sip.i686 python3-sip.x86_64 python3-PyQt4.i686 python3-PyQt4.x86_64 python3-PyQt4-devel.i686 python3-net* gcc gcc-c++ elfutils-libelf-devel libuuid-devel libuuid-devel cmake flex bison glibc-devel iniparser-devel

Lets start in alphabetical order;

Install dynamips – 0.2.14

The process to build remains the same as in my previous posts;

$ cd .../dynamips_extracted_folder<br />
$ mkdir build<br />
$ cd build<br />
$ cmake ..<br />
$ sudo make install

You should find that you get similar output to what is displayed below;

Install the project...<br />
-- Install configuration: &amp;quot;&amp;quot;<br />
-- Up-to-date: /usr/local/share/doc/dynamips/ChangeLog<br />
-- Up-to-date: /usr/local/share/doc/dynamips/COPYING<br />
-- Up-to-date: /usr/local/share/doc/dynamips/MAINTAINERS<br />
-- Up-to-date: /usr/local/share/doc/dynamips/README<br />
-- Up-to-date: /usr/local/share/doc/dynamips/README.hypervisor<br />
-- Up-to-date: /usr/local/share/doc/dynamips/RELEASE-NOTES<br />
-- Up-to-date: /usr/local/share/doc/dynamips/TODO<br />
-- Up-to-date: /usr/local/share/man/man1/dynamips.1<br />
-- Up-to-date: /usr/local/share/man/man1/nvram_export.1<br />
-- Up-to-date: /usr/local/share/man/man7/hypervisor_mode.7<br />
-- Installing: /usr/local/bin/nvram_export<br />
-- Installing: /usr/local/bin/dynamips

Install gns3-gui – 1.3.9

Building the GUI is one of the simpler packages to get built and installed, requiring only one line of commands once you are in the right directory.

$ cd ../../gns3-gui-1.3.9/<br />
$ sudo python3 setup.py install

At the end of the installation process you should see something similar to;

Finished processing dependencies for gns3-gui==1.3.9

Install gns3-server – 1.3.9

Next step, lets get the server binaries built so that we can actually start to use the GNS3 GUI.

cd ../gns3-server-1.3.9/<br />
sudo python3 setup.py install

Once the install has been completed you should have a line similar too;

Finished processing dependencies for gns3-server==1.3.8

Install iouyap – 0.95

Now, for this particular package I struggled to get things working (see my other post GNS3 – Problems Compiling IOUYAP) if you want to experience the same pain that I went through, or if you want to tell me what I could have done to rectify things, then that would be awesome too.

Anyway, what I ended up doing was checking out a copy of the current code from the GIT repository.

[toby@thebay GNS3-1.3.9]$ git clone https://github.com/GNS3/iouyap.git<br />
Cloning into 'iouyap'...<br />
remote: Counting objects: 78, done.<br />
remote: Total 78 (delta 0), reused 0 (delta 0), pack-reused 78<br />
Unpacking objects: 100% (78/78), done.<br />
Checking connectivity... done.<br />
[toby@thebay GNS3-1.3.9]$ ls<br />
dynamips-0.2.14      gns3-gui-1.3.9      gns3-server-1.3.9      iouyap       iouyap-0.95.zip  ubridge-0.9.0.zip  vpcs-0.6.1.zip<br />
dynamips-0.2.14.zip  gns3-gui-1.3.9.zip  gns3-server-1.3.9.zip  iouyap-0.95  ubridge-0.9.0    vpcs-0.6.1<br />
[toby@thebay GNS3-1.3.9]$ cd iouyap<br />
[toby@thebay iouyap]$ ls<br />
config.c  dictionary.h  iouyap.c  iouyap.ini  Makefile  netmap.c  netmap_parse.y  README.rst<br />
config.h  iniparser.h   iouyap.h  LICENSE     NETMAP    netmap.h  netmap_scan.l<br />
[toby@thebay iouyap]$ make<br />
gcc  -g -DDEBUG -Wall   -c -o iouyap.o iouyap.c<br />
bison -y -d netmap_parse.y<br />
mv -f y.tab.c netmap_parse.c<br />
gcc  -g -DDEBUG -Wall   -c -o netmap_parse.o netmap_parse.c<br />
flex  -t netmap_scan.l netmap_scan.c<br />
gcc  -g -DDEBUG -Wall   -c -o netmap_scan.o netmap_scan.c<br />
gcc  -g -DDEBUG -Wall   -c -o netmap.o netmap.c<br />
gcc  -g -DDEBUG -Wall   -c -o config.o config.c<br />
gcc    iouyap.o netmap_parse.o netmap_scan.o netmap.o config.o  -liniparser -lpthread -o iouyap<br />
rm netmap_scan.c netmap_parse.c<br />
[toby@thebay iouyap]$ sudo make install<br />
[sudo] password for toby:<br />
chmod +x iouyap<br />
sudo cp iouyap /usr/local/bin<br />
sudo setcap cap_net_admin,cap_net_raw=ep iouyap

As you can see from the above output this worked for me so hopefully it will also work for you.

Installing VPCS

This also proved to be a pain.  I’m guessing the issue is that the source code has not been update since 2014 and the OS has moved on since then and as such the shared library files it was trying to access no longer existed.

It turns out the simple solution for this one is to download the the VPCS, ready made binary from the website; http://sourceforge.net/projects/vpcs/.

Save the downloaded executable and make sure to do a chmod +x against the file otherwise you may have problems launching it.

[toby@thebay Downloads]$ chmod +x vpcs_0.6_Linux64<br />
[toby@thebay Downloads]$ ./vpcs_0.6_Linux64</p>
<p>Welcome to Virtual PC Simulator, version 0.6<br />
Dedicated to Daling.<br />
Build time: Nov 21 2014 08:28:12<br />
Copyright (c) 2007-2014, Paul Meng (mirnshi@gmail.com)<br />
All rights reserved.</p>
<p>VPCS is free software, distributed under the terms of the &quot;BSD&quot; licence.<br />
Source code and license can be found at vpcs.sf.net.<br />
For more information, please visit wiki.freecode.com.cn.</p>
<p>Press '?' to get help.</p>
<p>VPCS[1]

Last on the list is ubridge

For the time being, as it is very much under construction and its primary use relates interacting with VMware, I am going to skip this part.  Sorry, but everything above short of the required Cisco images should get you up and running.

I based this decision on this post; https://vanity-gns3.jiveon.com/thread/8540

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.