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 $ mkdir build $ cd build $ cmake .. $ sudo make install
You should find that you get similar output to what is displayed below;
Install the project... -- Install configuration: "" -- Up-to-date: /usr/local/share/doc/dynamips/ChangeLog -- Up-to-date: /usr/local/share/doc/dynamips/COPYING -- Up-to-date: /usr/local/share/doc/dynamips/MAINTAINERS -- Up-to-date: /usr/local/share/doc/dynamips/README -- Up-to-date: /usr/local/share/doc/dynamips/README.hypervisor -- Up-to-date: /usr/local/share/doc/dynamips/RELEASE-NOTES -- Up-to-date: /usr/local/share/doc/dynamips/TODO -- Up-to-date: /usr/local/share/man/man1/dynamips.1 -- Up-to-date: /usr/local/share/man/man1/nvram_export.1 -- Up-to-date: /usr/local/share/man/man7/hypervisor_mode.7 -- Installing: /usr/local/bin/nvram_export -- 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/ $ 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/ 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 Cloning into 'iouyap'... remote: Counting objects: 78, done. remote: Total 78 (delta 0), reused 0 (delta 0), pack-reused 78 Unpacking objects: 100% (78/78), done. Checking connectivity... done. [toby@thebay GNS3-1.3.9]$ ls 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 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 [toby@thebay GNS3-1.3.9]$ cd iouyap [toby@thebay iouyap]$ ls config.c dictionary.h iouyap.c iouyap.ini Makefile netmap.c netmap_parse.y README.rst config.h iniparser.h iouyap.h LICENSE NETMAP netmap.h netmap_scan.l [toby@thebay iouyap]$ make gcc -g -DDEBUG -Wall -c -o iouyap.o iouyap.c bison -y -d netmap_parse.y mv -f y.tab.c netmap_parse.c gcc -g -DDEBUG -Wall -c -o netmap_parse.o netmap_parse.c flex -t netmap_scan.l netmap_scan.c gcc -g -DDEBUG -Wall -c -o netmap_scan.o netmap_scan.c gcc -g -DDEBUG -Wall -c -o netmap.o netmap.c gcc -g -DDEBUG -Wall -c -o config.o config.c gcc iouyap.o netmap_parse.o netmap_scan.o netmap.o config.o -liniparser -lpthread -o iouyap rm netmap_scan.c netmap_parse.c [toby@thebay iouyap]$ sudo make install [sudo] password for toby: chmod +x iouyap sudo cp iouyap /usr/local/bin 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.
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 [toby@thebay Downloads]$ ./vpcs_0.6_Linux64 Welcome to Virtual PC Simulator, version 0.6 Dedicated to Daling. Build time: Nov 21 2014 08:28:12 Copyright (c) 2007-2014, Paul Meng (firstname.lastname@example.org) All rights reserved. VPCS is free software, distributed under the terms of the "BSD" licence. Source code and license can be found at vpcs.sf.net. For more information, please visit wiki.freecode.com.cn. Press '?' to get help. VPCS
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