installing gns3

warnings

  1. dynamips i386 goes ubuntu/eoan legacy
  2. server mode is mandatory? there’s no 3080/tcp process listening otherwise

requirements

make sure you’re compliant with the KVM and Libvirt requirements – namely libvirt group and bridge-utils

for the Cloud connection to work, make sure you’ve got a bridge already, in which eth0 is part of. any bridge will do, it can be xenbr0 or virbr0 – you can validate it with a VPCS.

for the NAT connection to work, make sure you’ve got the virbr0 bridge already in place. see kvm/host.

install

dpkg --add-architecture i386
add-apt-repository ppa:gns3/ppa
apt update
cp -pi /etc/group /etc/group.before-gns3
apt install gns3-gui gns3-iou gns3-server

(non-root YES)
(non-root capture YES)

diff -bu /etc/group.before-gns3 /etc/group

we’ve got an issue with dynamips/amd64, we need the i386 flavor. last available was for eoan (http://ppa.launchpad.net/gns3/ppa/ubuntu/pool/main/d/dynamips/)

dpkg -l | grep dynamips
dpkg -r dynamips

wget http://ppa.launchpad.net/gns3/ppa/ubuntu/pool/main/d/dynamips/dynamips_0.2.21-1~eoan1_i386.deb
dpkg -i dynamips_0.2.21-1~eoan1_i386.deb
apt-get -f install

local server mode

#apt install python3-setuptools python3-aiohttp python3-psutil python3-jsonschema git

#cd /lib/systemd/system/
cd /etc/systemd/system/
wget https://raw.githubusercontent.com/GNS3/gns3-server/master/init/gns3.service.systemd
mv -i gns3.service.systemd gns3.service

which gns3server
vi gns3.service

HERE IS THE TRICK

(switch to /usr/bin/gns3server --local)

systemctl daemon-reload
systemctl list-unit-files | grep gns

guests take a lot of space, use a large partition for that purpose

useradd --system -s /sbin/nologin -m gns3
usermod -aG ubridge gns3
usermod -aG kvm gns3
grep gns3 /etc/group
grep gns3 /etc/passwd

systemctl status gns3
systemctl restart gns3
systemctl enable gns3

netstat -lntup | grep 3080
nmap -p 3080 localhost

also this will help share the IOS images across USER and gns3 users – apparently the UI and the server both look at the same place

usermod -aG gns3 USER

cd /home/
find gns3/ -type d -exec chmod g+rwx {} \;
find gns3/ -type f -exec chmod g+rw {} \;

and finally be ready to sniff the links

    grep ^wireshark /etc/group

check that you can reach that location as user

as user

newgrp gns3
    newgrp wireshark

cd ~gns3/
echo OK > OK
rm -f OK

and you might have to fix this once in a while

chmod 440 /home/gns3/GNS3/images/IOS/*

resources

local server mode

https://docs.gns3.com/docs/using-gns3/administration/running-gns3-server-as-daemon/

full server mode

https://docs.gns3.com/docs/getting-started/installation/remote-server

https://docs.gns3.com/docs/getting-started/installation/one-server-multiple-clients/


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Copyright © 2024 Pierre-Philipp Braun