How to Install and Configure GNS3 v0.8.2 ubuntu 11.10 x64

I spend a lot of time to make sure this all working fine . i googled and make this is possible to know all .

 

may be anyone can installGNS3 through this .

Step : 1

Installing dependencies

four-20@Pre-420:~/Desktop$ su
Password:
root@Pre-420:/home/four-20/Desktop# cd /
root@Pre-420:/#
root@Pre-420:/#apt-get update
root@Pre-420:/#apt-get install python
root@Pre-420:/#apt-get install qt4-dev-tools
root@Pre-420:/#apt-get install pyqt4-dev-tools
root@Pre-420:/#apt-get install libncurses5-dev zlib1g-dev libsdl-dev libpcap-dev

Step : 2

root@Pre-420:/# cd /opt/
root@Pre-420:/opt# mkdir GNS3
root@Pre-420:/opt# chmod 777 GNS3
root@Pre-420:/opt# cd GNS3/

Step : 3
Creating Folders

root@Pre-420:/opt#mkdir Dynamips
root@Pre-420:/opt#mkdir IOS
root@Pre-420:/opt#mkdir Project
root@Pre-420:/opt#mkdir Cache
root@Pre-420:/opt#mkdir tmp
root@Pre-420:/opt#mkdir qemu

Step : 4
Assign Folder Permissions

root@Pre-420:/opt#chmod 777 Dynamips
root@Pre-420:/opt#chmod 777 IOS
root@Pre-420:/opt#chmod 777 Project
root@Pre-420:/opt#chmod 777 Cache
root@Pre-420:/opt#chmod 777 tmp
root@Pre-420:/opt#chmod 777 qemu

 Step : 5

Download required files

5 a . GNS3 Download :

root@Pre-420:/opt/GNS3#wget http://sourceforge.net/projects/gns-3/files/GNS3/0.8.2-BETA2/GNS3-0.8.2-BETA2-src.tar.gz/download

5 b. Dynamips Download :

root@Pre-420:/opt/GNS3#cd Dynamips
root@Pre-420:/opt/GNS3/Dynamips#wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-amd64.bin

5 c . Qemu and patch download

root@Pre-420:/opt/GNS3#cd qemu
root@Pre-420:/opt/GNS3/qemu#wget http://download.savannah.gnu.org/releases/qemu/qemu-0.11.0.tar.gz

Step : 6

Setting up the GNS3 files and Permission

root@Pre-420:/opt/GNS3#tar -xjvf GNS3-0.8.2-src.tar.gz
root@Pre-420:/opt/GNS3#rm GNS3-0..8.2–src.tar.gz
root@Pre-420:/opt/GNS3#chmod 777 GNS3-0..8.2–src
root@Pre-420:/opt/GNS3#cd GNS3-0.8.2-src
root@Pre-420:/opt/GNS3#chmod 777 *.*

Step : 7
Settingup the permission for Dynamips
root@Pre-420:/opt/GNS3/Dynamips#chmod 777 dynamips-0.2.8-RC2-amd64.bin

Step : 8

installing and patching the Qemu

root@Pre-420:/opt/GNS3/qemu#tar xvzf qemu-0.11.0.tar.gz
root@Pre-420:/opt/GNS3/qemucd qemu-0.11.0
root@Pre-420:/opt/GNS3/qemu/qemu-0.11.0#wget http://downloads.sourceforge.net/gns-3/qemu-0.11.0-olive.patch?download
root@Pre-420:/opt/GNS3/qemu/qemu-0.11.0#patch -p1 -i qemu-0.11.0-olive.patch
root@Pre-420:/opt/GNS3/qemu/qemu-0.11.0#./configure –target-list=i386-softmmu
root@Pre-420:/opt/GNS3/qemu/qemu-0.11.0#make
root@Pre-420:/opt/GNS3/qemu/qemu-0.11.0#sudo make install

Step : 9

Setting a Shortcut on MainMenu

Type : Application

Name : GNS3

Command:/opt/GNS3/GNS3-0.8.2-src/gns3

Step : 10

Find the qemu path

root@Pre-420:~# which qemu
/usr/local/bin/qemu

root@Pre-420:~# which qemu-img
/usr/local/bin/qemu-img

Qemuwrapper.py

/opt/GNS3/GNS3-0.8.2-src/qemuwrapper/qemuwrapper.py

 

 


That is all .. good luck !!!

21 thoughts on “How to Install and Configure GNS3 v0.8.2 ubuntu 11.10 x64

  1. Pingback: Instalar GNS3 0.8.2, Dynamips 0.2.8-RC3 y Qemu 0.11 en Ubuntu 11.10 Oneiric Ocelot | openredes - Networking Open Source

  2. valamata says:

    i followed all the steps up step 8 successfully. am using ubuntu 12.04 lts. can you explain more about step 9. i cant find gui or how to start gns3

  3. valamata says:

    i have paste my final display after sudo make install….

    valamata@valamata-Inspiron-N5110:/opt/GNS3/qemu/qemu-0.11.0$ sudo make install
    [sudo] password for valamata:
    install -d -m0755 -p “/usr/local/bin”
    install -m0755 -p -s qemu-nbd qemu-io qemu-img “/usr/local/bin”
    install -d -m0755 -p “/usr/local/share/qemu”
    set -e; for x in bios.bin vgabios.bin vgabios-cirrus.bin ppc_rom.bin video.x openbios-sparc32 openbios-sparc64 openbios-ppc pxe-ne2k_pci.bin pxe-rtl8139.bin pxe-pcnet.bin pxe-e1000.bin bamboo.dtb petalogix-s3adsp1800.dtb multiboot.bin; do
    install -m0644 -p /opt/GNS3/qemu/qemu-0.11.0/pc-bios/$x “/usr/local/share/qemu”;
    done
    install -d -m0755 -p “/usr/local/share/qemu/keymaps”
    set -e; for x in da en-gb et fr fr-ch is lt modifiers no pt-br sv ar de en-us fi fr-be hr it lv nl pl ru th common de-ch es fo fr-ca hu ja mk nl-be pt sl tr; do
    install -m0644 -p /opt/GNS3/qemu/qemu-0.11.0/pc-bios/keymaps/$x “/usr/local/share/qemu/keymaps”;
    done
    for d in i386-softmmu x86_64-softmmu arm-softmmu cris-softmmu m68k-softmmu microblaze-softmmu mips-softmmu mipsel-softmmu mips64-softmmu mips64el-softmmu ppc-softmmu ppcemb-softmmu ppc64-softmmu sh4-softmmu sh4eb-softmmu sparc-softmmu sparc64-softmmu i386-linux-user x86_64-linux-user alpha-linux-user arm-linux-user armeb-linux-user cris-linux-user m68k-linux-user microblaze-linux-user mips-linux-user mipsel-linux-user ppc-linux-user ppc64-linux-user ppc64abi32-linux-user sh4-linux-user sh4eb-linux-user sparc-linux-user sparc64-linux-user sparc32plus-linux-user ; do
    make -C $d install || exit 1 ;
    done
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/i386-softmmu’
    install -m 755 -s qemu “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/i386-softmmu’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/x86_64-softmmu’
    install -m 755 -s qemu-system-x86_64 “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/x86_64-softmmu’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/arm-softmmu’
    install -m 755 -s qemu-system-arm “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/arm-softmmu’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/cris-softmmu’
    install -m 755 -s qemu-system-cris “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/cris-softmmu’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/m68k-softmmu’
    install -m 755 -s qemu-system-m68k “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/m68k-softmmu’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/microblaze-softmmu’
    install -m 755 -s qemu-system-microblaze “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/microblaze-softmmu’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/mips-softmmu’
    install -m 755 -s qemu-system-mips “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/mips-softmmu’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/mipsel-softmmu’
    install -m 755 -s qemu-system-mipsel “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/mipsel-softmmu’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/mips64-softmmu’
    install -m 755 -s qemu-system-mips64 “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/mips64-softmmu’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/mips64el-softmmu’
    install -m 755 -s qemu-system-mips64el “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/mips64el-softmmu’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/ppc-softmmu’
    install -m 755 -s qemu-system-ppc “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/ppc-softmmu’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/ppcemb-softmmu’
    install -m 755 -s qemu-system-ppcemb “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/ppcemb-softmmu’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/ppc64-softmmu’
    install -m 755 -s qemu-system-ppc64 “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/ppc64-softmmu’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/sh4-softmmu’
    install -m 755 -s qemu-system-sh4 “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/sh4-softmmu’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/sh4eb-softmmu’
    install -m 755 -s qemu-system-sh4eb “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/sh4eb-softmmu’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/sparc-softmmu’
    install -m 755 -s qemu-system-sparc “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/sparc-softmmu’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/sparc64-softmmu’
    install -m 755 -s qemu-system-sparc64 “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/sparc64-softmmu’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/i386-linux-user’
    install -m 755 -s qemu-i386 “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/i386-linux-user’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/x86_64-linux-user’
    install -m 755 -s qemu-x86_64 “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/x86_64-linux-user’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/alpha-linux-user’
    install -m 755 -s qemu-alpha “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/alpha-linux-user’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/arm-linux-user’
    install -m 755 -s qemu-arm “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/arm-linux-user’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/armeb-linux-user’
    install -m 755 -s qemu-armeb “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/armeb-linux-user’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/cris-linux-user’
    install -m 755 -s qemu-cris “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/cris-linux-user’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/m68k-linux-user’
    install -m 755 -s qemu-m68k “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/m68k-linux-user’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/microblaze-linux-user’
    install -m 755 -s qemu-microblaze “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/microblaze-linux-user’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/mips-linux-user’
    install -m 755 -s qemu-mips “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/mips-linux-user’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/mipsel-linux-user’
    install -m 755 -s qemu-mipsel “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/mipsel-linux-user’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/ppc-linux-user’
    install -m 755 -s qemu-ppc “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/ppc-linux-user’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/ppc64-linux-user’
    install -m 755 -s qemu-ppc64 “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/ppc64-linux-user’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/ppc64abi32-linux-user’
    install -m 755 -s qemu-ppc64abi32 “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/ppc64abi32-linux-user’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/sh4-linux-user’
    install -m 755 -s qemu-sh4 “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/sh4-linux-user’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/sh4eb-linux-user’
    install -m 755 -s qemu-sh4eb “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/sh4eb-linux-user’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/sparc-linux-user’
    install -m 755 -s qemu-sparc “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/sparc-linux-user’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/sparc64-linux-user’
    install -m 755 -s qemu-sparc64 “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/sparc64-linux-user’
    make[1]: Entering directory `/opt/GNS3/qemu/qemu-0.11.0/sparc32plus-linux-user’
    install -m 755 -s qemu-sparc32plus “/usr/local/bin”
    make[1]: Leaving directory `/opt/GNS3/qemu/qemu-0.11.0/sparc32plus-linux-user’

  4. Suhaib Nabiel (@Sohaeb) says:

    Thanks a lot for the tutorial ! Easy and understandable. However for step 10:

    I could not understand why do we need to do this step ? What is the purpose of the qemu ? the Qemuwrapper.py ? and the /opt/GNS3/GNS3-0.8.2-src/qemuwrapper/qemuwrapper.py ?

    Thanks

    • kartook says:

      Thanks for your visit suhiab ,

      purpose of Qemu :

      We can emulate ASA , IPS , junos and many more emulation .

      I hope i answered your question

      Ka~

  5. Andy says:

    Hi was going great with this until step 9. When I entered sudo ./configure —target-list=i386-softmmu
    ERROR: unknown option —target-list=i386-softmmu

    I the error above, had a read of the output (omitted from above) and tried:

    sudo ./configure –target-list=i386-softmmu

    Error: zlib check failed
    Make sure to have the zlib libs and headers installed.

    I started reading up on this, zlib, found loads of files in the software centre, but couldnt work out which I need, I’m really not sure what to do at this stage. I’m a network guy, not at all used to working with OS’s, all I want to do is run ASA on my GNS3.

    I’m running 64-bit Ubuntu 12.04, GNS3 0.8.3 which works well for routers.

    Can anyone help me with this zlib error, tell me what I need to load?

    Also, on the qemu download page there are lots of different versions, should I continue with the version in this tutorial or go for the latest?

  6. Bliss says:

    Good day. I’m sorry, maybe I do something wrong, but I have a problem with 6 step. When I enter “tar -xjvf GNS3-0.8.2-src.tar.gz”, I have a Error:

    tar (child): GNS3-0.8.2-src.tar.gz: function open has failed: No such file or directory
    tar (child): Error is not recoverable: exiting now
    tar: Child returned status 2
    tar: Error is not recoverable: exiting now

  7. Zidane says:

    root@ioudesk:/opt/GNS3/qemu/qemu-0.11.0# make
    Please call configure before running make!
    make: *** [config-host.mak] Error 1
    root@ioudesk:/opt/GNS3/qemu/qemu-0.11.0# sudo make install
    “”
    /bin/sh: 1: : Permission denied
    make: *** [install] Error 127

    I got the following error while installing GNS3 on ubuntu. Please help me on this..

  8. Zidane says:

    root@ioudesk:/# /opt/Gns3/GNS3-0.8.3.1-src/gns3
    Invalid MIT-MAGIC-COOKIE-1 keyInvalid MIT-MAGIC-COOKIE-1 keygns3: cannot connect to X server :0
    root@ioudesk:/#
    root@ioudesk:/#
    root@ioudesk:/#
    root@ioudesk:/#
    root@ioudesk:/# cd /opt/Gns3/GNS3-0.8.3.1-src/gns3
    bash: cd: /opt/Gns3/GNS3-0.8.3.1-src/gns3: Not a directory
    root@ioudesk:/#

    I am unable to get Gui Icon.. plaese help me on this

  9. phirum says:

    Hi Kartook,
    Thanks for your help here. However, at the end, when I test qemu ‘You’re running an old and unpatched version of qemu which won’t work’.
    Can you help?

    • kartook says:

      Do it below steps once again and thanks for the visit

      root@Pre-420:/opt/GNS3/qemu#tar xvzf qemu-0.11.0.tar.gz
      root@Pre-420:/opt/GNS3/qemucd qemu-0.11.0
      root@Pre-420:/opt/GNS3/qemu/qemu-0.11.0#wget http://downloads.sourceforge.net/gns-3/qemu-0.11.0-olive.patch?download
      root@Pre-420:/opt/GNS3/qemu/qemu-0.11.0#patch -p1 -i qemu-0.11.0-olive.patch
      root@Pre-420:/opt/GNS3/qemu/qemu-0.11.0#./configure —target-list=i386-softmmu
      root@Pre-420:/opt/GNS3/qemu/qemu-0.11.0#make
      root@Pre-420:/opt/GNS3/qemu/qemu-0.11.0#sudo make install

  10. Isaiah says:

    Error during step 8 when using the make command!

    LINK i386-softmmu/qemu
    /usr/bin/ld: vl.o: undefined reference to symbol ‘timer_settime@@GLIBC_2.3.3’
    /lib/x86_64-linux-gnu/librt.so.1: error adding symbols: DSO missing from command line
    collect2: error: ld returned 1 exit status
    make[1]: *** [qemu] Error 1
    make: *** [subdir-i386-softmmu] Error 2

    Help please!

Leave a Reply

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