GNS3 Installation in Centos 7

INGREDIENTS

1. Server with installed Centos 7 GUI.

PROCESSING

Stpe 1. First update the machine. And install epel repository after that restart the machine.....

# yum update
# yum install epel* -y
# init 6
# yum install gcc

Step 2. Now install the following packages

# yum install zlib-devel openssl-devel sqlite-devel bzip2-devel telnet

Step 3.Install Python-3.5

# cd ~/Downloads
# wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tar.xz
# xz -d Python-3.5.1.tar.xz
# tar xvf Python-3.5.1.tar
# cd Python-3.5.1
# ./configure
# make
# make test
# make install

Step 4.Install Python setuptools

# cd ~/Downloads
# wget https://pypi.python.org/packages/source/s/setuptools/setuptools-12.2.zip
# unzip setuptools-12.2.zip
# cd setuptools-12.2
# python3.5 setup.py install
# cd ..


Step 5.Install ws4py

# git clone https://github.com/Lawouach/WebSocket-for-Python
# cd WebSocket-for-Python
# python3.5 setup.py install
# cd ..

Step 6.Install Qt5

# yum install qt5*
# cd /usr/bin
# ln -s qmake-qt5 qmake

Step 7.Install sip

# wget http://sourceforge.net/projects/pyqt/files/sip/sip-4.17/sip-4.17.tar.gz
# tar zxvf sip-4.17.tar.gz
# cd sip-4.17
# python3.5 ./configure.py
# make
# make install
# cd ..

Step 8.Install pyqt5 (be patient - this takes a while to build)

# wget http://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.5.1/PyQt-gpl-5.5.1.tar.gz
# tar zxvf PyQt-gpl-5.5.1.tar.gz
# cd PyQt-gpl-5.5.1
# python3 ./configure.py 
     type: "yes" to accept the license
# make
# make install
# cd ..


Step 9.Install netifaces

# wget https://pypi.python.org/packages/source/n/netifaces/netifaces-0.10.4.tar.gz
# unzip netifaces-0.10.4.tar.gz
# cd netifaces-0.10.4
# python3.5 setup.py install


Step 10.Install Dynamips dependencies

# yum install cmake elfutils-libelf-devel libpcap-devel libuuid-devel


Step 11.Install IOU x86 dependencies

#   ln -s /usr/lib/libcrypto.so.10 /usr/lib/libcrypto.so.4
#   yum install libgcc_s.so.1


Step 12.Install other IOU dependencies

# wget http://ndevilla.free.fr/iniparser/iniparser-3.1.tar.gz
# tar zxf iniparser-3.1.tar.gz
# cd iniparser
# make
# cp libiniparser* /usr/lib
# cp src/*.h /usr/include


Step 13.Download and Unzip GNS3 Base files Download

# unzip GNS3-1.4.4.source.zip
     dynamips-0.2.14.zip  gns3-server-1.4.4.zip  vpcs-0.6.1.zip
     gns3-gui-1.4.4.zip   iouyap-0.97.zip

Install the gns3-server

# unzip gns3-server-1.4.4.zip
# cd gns3-server-1.4.4
# python3.5 setup.py install
# cd ..

Install the gns3-gui

# unzip gns3-gui-1.4.4
# cd gns3-gui-1.4.4
# python3.5 setup.py install
# cd ..


 Fix GNOME menu icons

# gconftool-2 --type Boolean --set /desktop/gnome/interface/menus_have_icons True


Install Dynamips

# unzip dynamips-0.2.14
# cd dynamips-0.2.14
# mkdir build
# cd build
# cmake ..
# make
# make install
# setcap cap_net_admin,cap_net_raw=ep /usr/local/bin/dynamips
# cd../..


Install IOU network support

# unzip iouyap-0.97.zip
# cd iouyap-0.97
# make
# make install
# cp iouyap /usr/local/bin/
# cd ..


Install VPCS

# yum install glibc-static
# unzip vpcs-0.6.1.zip
# cd vpcs-0.6.1/src/
# ./mk.sh
# cp vpcs /usr/local/bin/
# cd ../..


Step 14.Install cpulimit

# wget http://sourceforge.net/projects/cpulimit/files/cpulimit/cpulimit/cpulimit-1.1.tar.gz
# tar zxvf cpulimit-1.1.tar.gz
# cd cpulimit-1.1
# make
# cp cpulimit /usr/local/bin


Step 15.Install QEMU (from source)

#   yum install flex bison zlib-devel glib2-devel
# wget http://wiki.qemu-project.org/download/qemu-2.3.0.tar  OR wget http://wiki.qemu-project.org/download/qemu-2.3.0.tar.bz2
# bunzip2 qemu-2.3.0.tar.bz2
# tar xvf qemu-2.3.0.tar 
# cd qemu-2.3.0
# ./configure
# make
# make install


Step 16.Install wireshark

# yum install wireshark-gnome


Step 17.Install VirtualBox

No package is available, download from: Linux_Downloads – Oracle VM VirtualBox

Choose AMD64: Oracle Linux 7 ("OL7") / Red Hat Enterprise Linux 7 ("RHEL7") / CentOS 7 | AMD64

Open and Install as directed by CentOS (default's will get the job done)

\\\\\*** This is not necessary to install Virtualbox now, if you have already installed virtualbox, then it's good. OR you can install Virtualbox first and then start the above Steps..............


Launch GNS3
# gns3


After launching GNS3, go to Preferences (General/Console applications, and set your console to Gnome Terminal.


That's it. Add some image's and start lab'n it up!

2 comments:

  1. Hi, I'm new linux and I'm over 60. Trying to install GNS3 on Centos 7 followed all above steps but stuck i step 8. with folwng ERROR:

    [root@localhost PyQt-gpl-5.5.1]# python3 ./configure.py
    Querying qmake about your Qt installation...
    Determining the details of your Qt installation...
    This is the GPL version of PyQt 5.5.1 (licensed under the GNU General Public
    License) for Python 3.5.1 on linux.
    Error: This version of PyQt5 and the commercial version of Qt have incompatible
    licenses.

    Please assist
    Thank you / Bojan

    ReplyDelete
  2. Im also having this error. I search at the net for any possible solution but no luck.

    ReplyDelete