Seeing as OVH had gotten rid of the setup fees on their servers for a short while, i decided to grab myself a new server, its got an i5 in it and 16GB of ram and a 2TB HDD. I didnt actually know what to do with such a beasty machine, but i figured, seeing as im working on my CCNA, id use it as a platform for testing using GNS3 and Qemu.
So here is a little run down on install GNS3 With qemu support on 64bit Ubuntu 10.10
So first obviously, we need to make sure our machine is up to date:
sudo apt-get update
sudo apt-get upgrade
So once your happy your system is up to date, we can continue with installing GNS3
sudo apt-get install python
sudo apt-get install qt4-dev-tools
sudo apt-get install pyqt4-dev-tools
Your system will likely already have python installed, But there is no harm in checking that.
sudo apt-get install dynagen python-qt4
So that is basicly all the dependencies installed, Now to actually install GNS3
First just change directory to /opt
cd /opt
Then download the GNS3 Source
sudo wget http://space.dl.sourceforge.net/project/gns-3/GNS3/0.7.3/GNS3-0.7.3-src.tar.bz2
Next we are just moving the source around and tidying up our system
This Extracts the Source
sudo tar -xjvf GNS3-0.7.3-src.tar.bz2
This Removes the .tar.bz2
sudo rm GNS3-0.7.3-src.tar.bz2
And this moves the source to another folder
sudo mv GNS3-0.7.3-src /opt/GNS3
Next we just need to create and apply the correct permissions to our working directories
cd /opt/GNS3
sudo mkdir Dynamips
sudo mkdir IOS
sudo mkdir Project
sudo mkdir Cache
sudo mkdir tmp
sudo chmod o+rw -R ./Project
sudo chmod o+rw -R ./tmp
sudo chmod o+rw -R ./IOS
Now we need to install dynamips and make it executable.
FOR 32BIT INSTALL, SEE THE RED SECTION BELOW
cd Dynamips
wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-amd64.bin
sudo chmod +x ./dynamips-0.2.8-RC2-amd64.bin
FOR 32BIT INSTALLS
cd Dynamips
sudo wget http://www.ipflow.utc.fr/dynamips/dynamips-0.2.8-RC2-x86.bin
sudo chmod +x ./dynamips-0.2.8-RC2-x86.bin
Now we just need to install Qemu with
sudo apt-get install qemu
Thats it, Thats both GNS3 and Qemu installed. All thats left to do now is to make a few changes to the GNS3 Config and we are done.
The first thing we should really do is make a launcher for GNS3 on your desktop. This is done by
Right click on Desktop;
Select Create Launcher;
In the ‘Name’ Just use GNS3
In the Command Type: python “/opt/GNS3/gns3″
Now that you have the launcher made, Double click it to bring up GNS3.
The first thing you need to change is the Terminal that being used, So select the terminal tab at the top and type in the command box:
gnome-terminal -t %d -e ‘telnet %h %p’ > /dev/null 2>&1 &
Then apply that.
Now, in the ‘Paths’ Section, change the following
Project directory
/opt/GNS3/Project
Image Directory
/opt/GNS3/IOS
Now Select the ‘Dynamips’ Option on the left.
On 64BIT versions, set this to
/opt/GNS3/Dynamips/dynamips-0.2.8-RC2-amd64.bin
And on 32BIT systems, set it to
/opt/GNS3/Dynamips/dynamips-0.2.8-RC2-x86.bin
Now also Change the ‘Working Directory’ to
/opt/GNS3/tmp
Then select the ‘Capture’ Option on the left,
And change the working directory to
/opt/GNS3/Project
All that we have to do now is change the directories for Qemu, So select Qemu on the left,
And change -
Path
/usr/bin/qemu
Qemu-img path
/usr/bin/qemu-img
And thats it. All working fine.

