GNS3 on Fedora Linux

Here are mu notes about installation GNS3 version on Fedora Linux. It shows the basic steps required to successfully install and configure GNS3 for VirtualBox, Qemu, IOU, and Dynamips support. Configuration of individual VirtualBox, Qemu, IOU and IOS images is not discussed.

1. GNS3 GUI and Server Installation and Configuration

1.1 Install Dependencies

$ sudo yum install python3 python3-setuptools.noarch python3-PyQt4 python3-devel gcc

1.2 Download and Extract GNS3 GUI and Server

$ git clone https://github.com/GNS3/gns3-gui.git
$ git clone https://github.com/GNS3/gns3-server.git

$ cd gns3-gui/
$ sudo python3 setup.py install
$ cd ..

$ cd gns3-server/
$ sudo python3 setup.py install

1.3 Configure GNS3 Server Settings

Navigate to Edit-> Preferences-> GNS3 server-> Local server and change path to gns3server.

2. IOU Installation and Configuration

IOU stands for IOS on Unix. IOU images are IOS images that are compiled for x86 / Sparc CPU architecture.

2.1 Install Dependencies

$ sudo yum install gcc gcc-c++ git

2.2 Create Symbolic Link and Prevent IOU to Call Home

$ cd /usr/lib
$ sudo ln -s ./libcrypto.so.10 libcrypto.so.4
$ su -c "echo '127.0.0.127 xml.cisco.com' >> /etc/hosts"

2.3 Generate IOU License

To run IOU on Linux, a license file named iourc must be created with a valid license number tied with the hostname. The format of the file is following.

[license]
localhost = aaaaaaaaaaaaaaaa;

The length of the license key is 16 hex number and the hostname is localhost. If it is needed, the hostname can be changed in /etc/hostname.

2.4 Install IOUYAP

Iouyap bridges IOU to tap, UDP and Ethernet interfaces.

$ sudo yum install bison flex
$ git clone https://github.com/GNS3/iouyap.git
$ cd iouyap

$ git clone https://github.com/ndevilla/iniparser.git
$ cd iniparser
$ make
$ sudo cp libiniparser.so.0 libiniparser.a /usr/lib
$ sudo cp src/iniparser.h src/dictionary.h /usr/local/include

$ cd ..
$ make
$ sudo cp iouyap /usr/local/bin

2.5 Configure IOU Settings

Navigate to Edit-> Preferences-> IOS on Unix-> General Settings and select path to licence file iourc.
Navigate to Edit-> Preferences-> IOS on Unix-> General Settings and set path to iouyap.

3. VirtualBox Installation and Configuration

3.1 Vboxwrapper Installation

VirtualBox wrapper is needed for control VirtualBox on Linux.

$ sudo yum install python python-setuptools.noarch

$ git clone https://github.com/GNS3/vboxwrapper.git
$ cd vboxwrapper
$ sudo python setup.py install

Navigate to Edit-> Preferences-> VirtualBox-> General Settings and set path to Virtual box wrapper.

3.2 VirtualBox Installation

VirtualBox installation on Fedora is explained here:

4. Qemu Installation and Configuration

To successfully compile Qemu on Fedora, following Dependencies must be installed.

$ sudo yum group install 'C Development Tools and Libraries'

Qemu installation on Fedora Linux is explained here.

5. Dynamips Installation and Configuration

Dynamips installation on Fedora can be found here.

To configure path to Dynamips binary, navigate to Edit-> Preferences-> Dynamips-> General Settings  and configure an option path to Dynamips.

End.

One thought on “GNS3 on Fedora Linux

  1. Hello,

    Followin the instructions in:

    https://brezular.com/2014/09/28/gns3-on-fedora-linux/

    I managed to install all the required packages except python3-PyQt4:

    This is what I have installed

    [root@jotasansci gns3-server]# yum list installed | grep python3
    python32.x86_64 3.2.6-1.ius.centos6 @ius
    python32-devel.x86_64 3.2.6-1.ius.centos6 @ius
    python32-setuptools.noarch 7.0-1.ius.centos6 @ius
    gcc.x86_64 4.4.7-11.el6 @sl6x/6.5
    gcc-c++.x86_64 4.4.7-11.el6 @sl6x/6.5
    gcc-gfortran.x86_64 4.4.7-11.el6 @sl6x/6.5
    libgcc.i686 4.4.7-11.el6 @sl6x/6.5
    libgcc.x86_64 4.4.7-11.el6 @sl6x/6.5
    PyQt4.x86_64 4.6.2-9.el6 @sl/6.4 <<<<<< This is not the python3-PyQt4 required, right?
    PyQt4-devel.x86_64 4.6.2-9.el6 @sl/6.4

    My linux is sl linux:
    Linux version 2.6.32-431.29.2.el6.x86_64 (mockbuild@sl6.fnal.gov) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) ) #1 SMP Tue Sep 9 13:45:55 CDT 2014

    However, it fails in the gns3 server installation with the error:

    # Copyright (C) 2013 GNS3 Technologies Inc.

    File "/tmp/easy_install-fwxl8s/jsonschema-2.4.0/jsonschema/__init__.py", line 18, in

    File "/tmp/easy_install-fwxl8s/jsonschema-2.4.0/jsonschema/validators.py", line 41

    if u"id" in cls.META_SCHEMA:

    Any hints of what I am doing wrong?

    Thanks a lot

Leave a Reply

Your email address will not be published. Required fields are marked *

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