Pages

Tuesday, June 5, 2012

Installing GNS3 v0.8.2 on Ubuntu 12.04

Below are the basic steps for installing GNS3 0.8.2 on Ubuntu 12.04 and get it started. Video tutorials on  gns3 website .

(check out the three step installation for GNS3 v0.8.6 Installing GNS3 v0.8.6 on Linux)


Step 1: Update and Install dependencies
 sudo apt-get update  
 sudo apt-get install python  
 sudo apt-get install qt4-dev-tools  
 sudo apt-get install pyqt4-dev-tools  

Step 2 : Install GNS3
 cd /opt  
 sudo wget http://downloads.sourceforge.net/project/gns-3/GNS3/0.8.2/GNS3-0.8.2-src.tar.bz2   
 sudo tar -xjvf GNS3-0.8.2-src.tar.bz2  
 sudo mv GNS3-0.8.2-src /opt/GNS3   
 sudo rm GNS3-0.8.2-src.tar.bz2  

Step 3 : Create folders
 cd /opt/GNS3   
 sudo mkdir Dynamip   
 sudo mkdir Images   
 sudo mkdir Project  
 sudo mkdir tmp  
 sudo chmod o+rw -R ./Project  

Step 4 : Install Dynamips
Create a folder under GNS3 and download the latest Dynamips version and then make it executable.
 cd Dynamips  
 sudo wget http://downloads.sourceforge.net/project/gns-3/Dynamips/0.2.8-RC3-community/dynamips-0.2.8-RC3-community-x86.bin   
 sudo chmod +x ./dynamips-0.2.8-RC3-community-x86.bin  

Step 5 :  Create the shortcut icon and run the application
If you don't like Unity then install the gnome panel, logout and login selecting "Gnome Classic"
 sudo apt-get install gnome-panel  

 Create the Launcher on the Desktop by using the old GUI dialog.
 gnome-desktop-item-edit --create-new ~/Desktop  

 use gksu (if use GNOME in Linux) or kdesu (for KDE)
command : gksu python "/opt/GNS3/gns3"

if you run it only using  python "/opt/GNS3/gns3"  you may get any of the Dynamips error message  below (depending on the operating system you use):
206-unable to create UDP NIO
206-unable to create generic ethernet NIO
206-unable to create Linux raw  Ethernet NIO


Step 6 : Edit Parameters in GNS3
start GNS3 . Goto Edit




Getting Started Step1 - Dynamips

Executable path to Dynamips: /opt/GNS3/Dynamips/dynamips-0.2.8-RC3-community-x86.bin
Working directory for Dynamips : /opt/GNS3/tmp




Getting Started Step2 - General 
General settingsPathsProject directory : /opt/GNS3/ProjectImage Directory :/opt/GNS3/Images

terminal settings Preconfigured Terminal commands
select "Gnome Terminal (Linux/BSD) " then click on "Use"

Getting Started Step3 - IOS Images
Here add your preferable IOS

Edit | preferences | Capture |
working directory for capture files : /opt/GNS3/Project

Step 7 : Fine Tuning
Uncompressed Cisco IOS 
To get rid of a slow Cisco router IOS self decompressing image sequence, uncompress the image and then use the uncompressed image.

unzip -p c3660-jk9o3s-mz.124-17.bin > c3660-jk9o3s-mz.124-17.image  
 warning [c3660-jk9o3s-mz.124-17.bin]: 101960 extra bytes at beginning or within zipfile  
  (attempting to process anyway)   

Then set GNS3 to load the .image IOS

Delay between device start and Autosave
If you have many devices, while starting all at same time , it will choke you CPU.
Add delays between each device start.

Edit | preferences |General | General Settings
Delay between each device start when starting all devices: 5 secondsAutosave: 300 seconds

Use Konsole instead of Gnome Terminal
start GNS3 and goto
Edit|preferences |General |terminal settings Preconfigured Terminal commands
 select "Kosnole (Linux KDE) " then click on "Use"

Preconfigured Terminal commands :
 /usr/bin/konsole --new-tab -p tabtitle=%d -e telnet %h %p >/dev/null 2>&1 &  



6 comments:

Anonymous said...

Here is my problem.
I need to install GNS3 on a version of Linux like Lubuntu.
I have equipment for a CCIE LAB and need to run Linux so I can use 802.1q tunnels out my NIC to a breakout box supporting 4 3560 switche’s. Windows strips off the 802.1q header so I need to use Linux.
Problem: LAB and PC located in an area that cannot have internet access. I have to be able to download a Linux image with GNS3 installed or down Load all files to a DVD and load all files manually.
I know only “BASIC” Linux commands. How do I get and install GNS3 this way.
1: All files that are needed including dependencies?
2: Where to get them to download?
3: With DVD in hand. Wow to put on and install to a Linux machine?

PS Also something like “SetSerial” and TACACS Server would be useful to install with this.

Homelab said...

Hi,
I believe the free and open source application Remastersys should do what you are looking for. Never try it but looks that it can do the job. Check their website and wiki.
http://www.remastersys.com/
http://klikit.pbworks.com/w/page/7315119/Remastersys

Install Lubuntu and all applications (GNS3, TACACS etc) on another machine that has internet, update it. Run remastersys and create the ISO. Install that ISO on the other PC with no internet.

Unknown said...
This comment has been removed by the author.
Unknown said...

Hei .. after installing gnom pannel gui ,

it is not responding when i tried to open gns3 from desktop.. help me out yaar

Homelab said...

sakkeer,
try to run the command : gksu python "/opt/GNS3/gns3" from command line. If it runs then it is probably something wrong on the gui installed. You can try also to create another launcher for any other application just to test the gui.

Unknown said...

Thank you sir, This guide helps a lot ^_^