Voice lab – Running GNS3 as root
Posted by Josh on Mon 13 Oct 2008Categories: Cisco , Dynamips , GNS3 , Linux , Voice LAB - [21] Comments
In the Virtual Voice lab series, I am using an Ubuntu Linux environment. To eliminate permissions issues, it is best that you run GNS3 as root.
Here are a couple issues I have experienced when running GNS3 as a normal user.
Not able to start dynamips.
Error msg: Can’t Connect to the hypervisor on port 7200
Not able to connect to a cloud object.
Error Msg: 206-unable to create Linux raw ethernet NIO
Error Msg: 206-unable to create Linux generic ethernet NIO
Error Msg: 206-unable to create UDP NIO
Here are a couple ways to run GNS3 as root.
- Use the sudo command:
- Open a terminal window
- Navigate to the gns3 folder. Example: ‘cd /home/josh/GNS3′
- Preceed gns3 command with the sudo command. ‘sudo ./gns3′
- Create a launcher icon
- Right click on the desktop
- Select ‘Create new launcher’
- Browse to the gns3 executable.
- Add ‘gksudo’ before the gns3 executable path.

Right Click and select ‘Save Image As’ to download the logo

December 25th, 2008 at 11:20 am
Thanks for your job.
May be problems with running as a normal user can solve setuid-bit?
chmod +s dynamips
December 27th, 2008 at 3:21 pm
nucleo,
Thanks for this tip! I will give it a try.
Josh
December 30th, 2008 at 4:54 am
Works like a charm…Thnx!
March 31st, 2009 at 11:14 pm
this is great… I do not have the error message anymore.
I am looking for a tutorial on how to use the setup the cloud with my topology,do you have one…?
May 7th, 2009 at 1:51 pm
First of thanks for the tip, I am able to run GNS3 as root and connect to the real network, however something broke after doing this, I am unable to run a terminal for any device when running gns3 as root, here is the command I added to the terminal:
“gnome-terminal -t %d -e ‘telnet %h %p’ > /dev/null 2>&1 &”
Please HELP! cause what’s the point of it if no terminal is available!!!
((((
June 20th, 2009 at 6:01 am
How to save scenario in GNS3
July 17th, 2009 at 8:57 am
I was having trouble running gns3 in opensuse with the sudo command… Here is what worked for me…
xdg-su -u root -c gns3
I hope it helps somebody…
–Joe
January 18th, 2010 at 5:53 pm
[...] Voice lab – Running GNS3 as root [...]
January 18th, 2010 at 5:59 pm
[...] GNS3 as root (this is necessary for bridging to the [...]
March 16th, 2010 at 2:14 am
thanks buddy. you solved my issue
March 30th, 2010 at 3:17 pm
have made a silly mistake with (actually without) “NOT”
Do not really anderstand WHY to se +x, or even run as root, when THE problem is NOT permission related…
It is port binding problem.. People ar being confused !!!
Performe this steps to resolve problem’s root:
1 check your dynamips config (preferences) settings >> default setting are that Base UDP uses 10000 UDP port.
Just typed >> netstat |grep 10000 got
unix 3 [ ] STREAM CONNECTED 10000 ;
UPD 1000 is ALREADY being used by your lihnux/unix system (socket connection), thats why it doesn’t work!!!!!!!!
Increase UPD base port to be like 10045 (after that make changes in your net file) and EVERETHING will work fine.
April 3rd, 2010 at 3:48 pm
Thanks for your lab Josh.
I would like to ask you a question.
I follow your lab, and I was able to create a link between a 7200 router and a cloud on Ubuntu. Unfortunately, there is no connectivity between the devices.
Any ideas?
Thanks again!
April 5th, 2010 at 8:58 pm
Chiguidagui,
I am not sure what you are trying to do. How are you trying to connect the devices?
Josh
April 7th, 2010 at 10:55 pm
Hi Josh, I am sorry for the delay.
Let me explain it in my limited English…
I am attempting to run SDM on Ubuntu (to which I am new)…
I already put SDM to work through wine, and it runs…
I logged on to Ubuntu as root, and created a topology consisting in:
1. – Just one Router “R1”, with ios 7200, at 10.0.0.2/29;
2. – And a Cloud, associated to nio_gen_eth:eth0 at 10.0.0.5/29,
All done as your tutorial indicates.
The link went on immediately with no errors.
Well, the thing is that I am non able to ping any of these devices from the other…
Meaning: the Cloud do not ping R1, neither R1 pings the Cloud…
Ironically, I can ping both from a wired XP box, located at 10.0.0.4/29, from which it
is possible to run SDM to manage R1.
The .net file is as follows…
autostart = False
[localhost:7200]
workingdir = sdm_working
udp = 10000
[[7200]]
image = /home/tony/Desktop/GNS3/Cisco_ios/ios-7200/c7200-jk9o3s-mz.124-17/C7200-JK.BIN
ghostios = True
[[ROUTER R1]]
console = 2000
cnfg = /root/Desktop/GNS3/General/SDM/sdm_configs/R1.cfg
slot0 = C7200-IO-2FE
f0/0 = nio_gen_eth:eth0
x = -139.0
y = -104.0
[GNS3-DATA]
configs = sdm_configs
workdir = sdm_working
[[Cloud C2]]
x = -7.5
y = -105.0
connections = R1:f0/0:nio_gen_eth:eth0
P.S. I am ignorant on hardware, but it seems to me that GNS3 needs lots, and
lots, and even more lots of resources…
I am planning to build a PC to run much more complicated topologies…
Which hardware combinations you suggest?
Thank you again,
Tony
April 8th, 2010 at 12:31 am
Chiguidagui,
If you are not able to ping the xp machine from the ubuntu machine or the router, the problem is most likely the windows firewall. It needs to be disabled.
It looks like all machines are on the same subnet. You might check arp tables on both machines and the router.
Windows – arp -a
IOS – show arp
Linux – arp -a
In regards to purchasing a new machine…I would suggest anything with at least a dual-core processor and 8GB RAM for complex topologies.
Josh
April 8th, 2010 at 3:13 pm
Hi Josh,
The problem is on the Ubuntu machine…
I am able to ping from both Ubuntu/GNS3 devices to XP and from XP to both Ubuntu/GNS3 devices.
I am not able to ping none of the devices on Ubuntu from the other Ubuntu device…
Meaning: I am not able to ping the Cloud (Ubuntu/GNS3 “nio_gen_eth:eth0″ at 10.0.0.5/29), from R1 (Ubuntu/GNS3 – ios 7200, at 10.0.0.2/29) neither the other way around.
The problem is on the Ubuntu/GNS3 devices.
Ubuntu eth0 does not see GNS3 R1 and vice versa…
Thanks
April 9th, 2010 at 2:42 am
Hi Josh,
I forgot to tell you that:
1.- I have try clearing arp on both machines (XP and Ubuntu);
2.- I had rebooted all the PCs and restarted all conections from scratch;
3.- I had sniffed the traffic;
4.- I had controlled the arp table over and over again.
5.- I had debugged the ip and arp traffic from R1
6.- I had manually populated the arp table with the missing values, but it does not help at all…
No matter what I try the arp table has always an “incomplete” value for the other device on the Ubuntu machine…
Meaning (and this happens only on the Ubuntu PC):
1.- On R1, there is an incomplete entry for the Cloud (“nio_gen_eth:eth0″ – 10.0.0.5/29)
2.- On the Cloud, there is and incomplete entry for R1 (on GNS3 – ios 7200, – 10.0.0.2/29)
Do you think that there may be a default firewall (on Ubuntu) protecting any of these devices ???
Thank you,
Tony
April 9th, 2010 at 8:36 am
Chiguidagui,
It sounds like you are having a problem with bridging. Try this tutorial.
http://www.blindhog.net/linux-bridging-for-gns3-lan-communications/
Josh
April 9th, 2010 at 9:46 am
Ok I will…
Thanks again…
April 9th, 2010 at 10:44 pm
It works !!! Thank you very much !!!
August 19th, 2010 at 2:35 am
“May be problems with running as a normal user can solve setuid-bit?
chmod +s dynamips”
You MUST change owner to root and only then +s will make a job done… else the dynamips will be launched with your UID (and your permission accordingly) so it doesn’t make a sence…