GNS3 in Arch Linux

First, download and install package-query from the AUR. This will provide search functions for AUR packages, along with their dependencies.

curl -O
tar zxvf package-query.tar.gz
cd package-query
makepkg -si

After this is done downloading and installing, proceed with installing yaourt in a similar fashion.

curl -O 
tar zxvf yaourt.tar.gz 
cd yaourt 
makepkg -si

After yaourt is installed, install elfutils with pacman

pacman -S elfutils

These are a dependancy for dynamips. Now, you can start the GNS3 install with:

[dave@ZERO yaourt]$ yaourt gns3
 <strong>1</strong> aur/dynamips-community 0.2.8RC3-1 (13)
 Dynamips version develloped by gns3 team
 <strong>2</strong> aur/gns3 (138)
 Graphical network simulator based on Dynamips. With pemu included.
 <strong>3</strong> aur/gns3-unofficial 0.8.2BETA2-1 (0)
 Gns3 beta version that allows simulation of complex networks.
 <strong>4</strong> aur/gns3-vbe 0.8.1-1 (Out of Date) (5)
 Unofficial version with VirtualBox support of Graphical network simulator that allows
 simulation of complex networks.
 <strong>5</strong> aur/qemu-mcast 0.14.1-2 (19)
 QEMU is a generic and open source processor emulator which achieves a good emulation
 speed by using dynamic translation. This version has been patched to provide multicast
 functionality (used for GNS3 and Dynamips).
 ==> <strong>Enter n° of packages to be installed (ex: 1 2 3 or 1-3)</strong>
 ==> -------------------------------------------------------

Your output should appear similar to the above although I’m sure the versions may differ. I installed 1, 2, and 5, one at a time, leaving the VirtualBox for a later hack session.

During the build process, you will be asked if you want to edit any build files. I didn’t make any changes, and just affirmed any prompts to continue the build process. While installing qemu-mcast however, I ran into a linker issue that needed some massaging. After you select qemu-mcast from the build menu, it will ask if you want to edit the build files. Select yes, and add this after the make line after ./configure.

make LDFLAGS=-lrt

This is unfortunately due to an upstream change in ld that has broken a number of packages, and this temporary fix will workaround the break.

GNS3 should now be installed, and can be run from the shell with “gns3”. All that’s left is to configure it; a topic worthy of another post.