GNS3 Server 3 on Ubuntu 24.04 on Azure User Guide
Overview
This guide covers the deployment and configuration of GNS3 Server 3 on Ubuntu 24.04 on Azure using cloudimg Azure Marketplace images. GNS3 is the widely used open source network emulation platform for designing, building and testing network topologies without physical hardware. It runs virtual labs made of emulated Cisco routers, Docker containers, QEMU virtual machines and lightweight virtual PCs, wired together into topologies you can start, stop and inspect.
GNS3 3 is the current major release. It brings a new controller with its own user accounts, roles and access control, a version 3 REST API in which every call carries a token issued to a user, and a refreshed web interface. This image ships the server: the controller and compute engine that runs the labs. You drive it from the web interface in your browser, or from the GNS3 3 desktop client. (cloudimg also sells GNS3 Server 2.2 as a separate image, for teams that stay on the 2.2 client.)
The image installs GNS3 Server 3.0.6 from the Python Package Index into its own Python environment (/opt/gns3), with the release file checked against its published SHA-256 before it is installed. The emulators come from the official GNS3 package archive, whose signing key is verified by full fingerprint, and from Ubuntu. Every baked version is recorded in /var/lib/gns3/VERSION. GNS3 runs under systemd as the unprivileged gns3 system user, bound to loopback only (127.0.0.1:3080). nginx is the only network facing component: it terminates TLS on port 443 and passes requests to GNS3. Port 80 redirects to HTTPS.
Secure by default. A GNS3 user can create and start containers and virtual machines on the server, so access matters more here than for most software. On each virtual machine's first boot the image creates the GNS3 administrator (admin) with a unique password, generates the key that signs the API tokens, and sets a unique compute password. Nothing usable is baked into the image and no two deployments share a secret; GNS3 stores only a bcrypt hash of the administrator password, and the plain password is written to a root only file. The server cannot start on a customer VM until first boot has written these secrets. Device consoles are bound to the loopback interface.
What is included:
-
GNS3 Server 3.0.6 under systemd as the unprivileged
gns3user, with projects, images, appliances and the user database under/var/lib/gns3 -
The emulation stack: Dynamips 0.2.25 (Cisco IOS routers), ubridge 1.0.1 (node networking), VPCS 0.8.5 (virtual PCs), QEMU (full virtual machines) and Docker (container nodes)
-
A ready to run Docker node image (
alpine:3.24.1, pinned by digest) so you can start a real node without downloading anything -
The GNS3 3 web interface, served by the server itself and reached at
https://<public-ip>/ -
nginx terminating TLS on :443, with HSTS and security headers; port
:80redirects to HTTPS except for an unauthenticated/healthzprobe -
A unique administrator password, token signing key and compute password made on each VM's first boot
-
Device consoles on loopback: open them in the web interface, or over an SSH tunnel
-
A self signed TLS certificate made per VM on first boot; replace it with your own for production (Step 11)
-
A built in self test,
/usr/local/bin/gns3-selftest, that proves sign in, the API and a running node end to end -
Ubuntu 24.04 LTS with the latest security patches at build time and unattended security upgrades on
-
cloudimg's support team on hand 24 hours a day by email (support@cloudimg.co.uk), with a guaranteed response within 24 hours
Prerequisites
-
An Azure subscription with permission to deploy virtual machines
-
An SSH key pair for the
azureuseraccount -
A network security group that allows inbound
443from your users and22from your management network only -
A VM size chosen for the emulation you need (Step 1)
Step 1: Choose a VM size for the emulation you need
GNS3 emulates devices in several ways, and they do not all need the same hardware.
| Node type | What it emulates | Needs nested virtualisation? |
|---|---|---|
| Dynamips | Classic Cisco IOS routers | No, runs on any size |
| Docker | Container based hosts and appliances | No, runs on any size |
| VPCS | Lightweight virtual PCs | No, runs on any size |
| Ethernet switch, hub, cloud, NAT | Built in switching and connectivity | No, runs on any size |
| QEMU | Full virtual machines (vendor appliances, firewalls, operating systems) | Yes, for hardware acceleration (/dev/kvm) |
QEMU nodes are accelerated through KVM, which on Azure needs nested virtualisation. The B series does not support it, so /dev/kvm is absent there and QEMU nodes run slowly, without acceleration. The Dv3, Dsv3, Dv5, Dsv5 series and later do support it.
-
For Dynamips, Docker and VPCS nodes only, any size works;
Standard_B2sis enough to start. -
For QEMU nodes, deploy on
Standard_D2s_v3or larger. This is the recommended size for this image.
Step 2: Deploy from the Azure Portal
-
Find GNS3 Server 3 on Ubuntu 24.04 by cloudimg in the Azure Marketplace and select Create.
-
Choose your subscription, resource group and region.
-
Pick a VM size from Step 1 and enter your SSH public key for the
azureuseraccount. -
On the Networking tab allow inbound
443from your users and restrict22to your management network. -
Select Review + create, then Create. First boot finishes about two minutes after the VM shows Running.
Step 3: Deploy from the Azure CLI
az vm create makes a rule named default-allow-ssh that lets every address reach port 22; the last command narrows it. Replace the placeholder values with your own:
# Accept the Marketplace terms once per subscription
az vm image terms accept --urn cloudimg1647283583153:gns3-server-3-ubuntu-24-04:default:latest
az vm create \
--resource-group my-resource-group \
--name gns3-server \
--image cloudimg1647283583153:gns3-server-3-ubuntu-24-04:default:latest \
--size Standard_D2s_v3 \
--admin-username azureuser \
--ssh-key-values ~/.ssh/id_rsa.pub \
--public-ip-sku Standard
# Open HTTPS, then limit SSH to your management network
az vm open-port --resource-group my-resource-group --name gns3-server --port 443 --priority 1001
az network nsg rule update --resource-group my-resource-group --nsg-name gns3-serverNSG \
--name default-allow-ssh --source-address-prefixes <your-mgmt-cidr>
Step 4: Read your administrator password
First boot writes this VM's GNS3 administrator name and password to a root only file. Read it over SSH:
sudo cat /root/gns3-server-credentials.txt
# GNS3 Server 3 on Ubuntu 24.04 - per-VM instance info
# Generated: Mon Nov 30 19:26:40 UTC 2026
#
# This VM's GNS3 administrator was created on its first boot with the password below. No two VMs
# share it and none was baked into the image. GNS3 keeps only a bcrypt hash of it. Keep this file
# secret: a GNS3 administrator can run containers and virtual machines on this VM.
#
GNS3_USER=admin
GNS3_PASS=<unique-to-this-vm>
GNS3_URL=https://203.0.113.10/
...
GNS3_USER is admin on every VM; GNS3_PASS is unique to this VM. GNS3_URL is the address to open in your browser. Keep the password secret: a GNS3 administrator can run containers and virtual machines on this server. If you change the password in GNS3 later, this file is not updated.
If GNS3_URL shows a private address (10.x.x.x) because Azure did not tell the VM its public IP, point the VM at its public IP or DNS name. This updates the file, the login banner and the certificate:
sudo cloudimg-set-public-address <public-ip>
Step 5: Sign in to the web interface
Browse to https://<public-ip>/. The certificate is self signed per VM, so your browser warns the first time; accept it to continue (or install your own certificate, Step 11). The GNS3 web interface opens on its sign in page. Sign in with admin and the password from Step 4.

Step 6: Create a project and build a topology
After signing in, the Projects page lists the projects on this server. Add a blank project, or open one you have.

Open a project to reach its topology canvas. Add nodes with the + button on the toolbar (the built in templates include the Ethernet switch, Ethernet hub, VPCS, NAT and Cloud nodes, and you can add Docker, QEMU and Dynamips templates for your own images), drag links between their ports, and start, suspend or stop the whole lab from the toolbar. The Map topology panel lists every node with its state (green when started) and its console address. Projects are stored on the VM under /var/lib/gns3/projects.

Step 7: Users and access
GNS3 3 has its own user accounts. Open Management from the menu at the top right (the three dots) to add a user for each engineer, put users in groups, give them roles and limit them to resource pools with access control lists, so no one needs to share the administrator password.

Step 8: Use the API
Every API call carries a token issued to a GNS3 user. Sign in once with your user name and password to get a token, then send it as a bearer token. Without one, the API answers 401:
curl -sk -o /dev/null -w 'no token -> HTTP %{http_code}\n' https://127.0.0.1/v3/projects
TOKEN=$(sudo jq -n --arg u "$(sudo sed -n 's/^GNS3_USER=//p' /root/gns3-server-credentials.txt)" \
--arg p "$(sudo sed -n 's/^GNS3_PASS=//p' /root/gns3-server-credentials.txt)" '{username:$u,password:$p}' \
| curl -sk -X POST -H 'Content-Type: application/json' --data @- \
https://127.0.0.1/v3/access/users/authenticate | jq -r .access_token)
curl -sk -H "Authorization: Bearer $TOKEN" https://127.0.0.1/v3/access/users/me | jq '{username, is_superadmin}'
curl -sk -H "Authorization: Bearer $TOKEN" https://127.0.0.1/v3/templates | jq -r '.[] | "\(.name) (\(.template_type))"'
no token -> HTTP 401
{
"username": "admin",
"is_superadmin": true
}
Cloud (cloud)
NAT (nat)
VPCS (vpcs)
Ethernet switch (ethernet_switch)
Ethernet hub (ethernet_hub)
Frame Relay switch (frame_relay_switch)
ATM switch (atm_switch)

A token lasts 24 hours. The same calls create projects and nodes. This creates a project, adds a Docker node from the bundled alpine:3.24.1 image, starts it and removes the project again (the first command signs in again, for a new shell):
TOKEN=$(sudo jq -n --arg u "$(sudo sed -n 's/^GNS3_USER=//p' /root/gns3-server-credentials.txt)" \
--arg p "$(sudo sed -n 's/^GNS3_PASS=//p' /root/gns3-server-credentials.txt)" '{username:$u,password:$p}' \
| curl -sk -X POST -H 'Content-Type: application/json' --data @- \
https://127.0.0.1/v3/access/users/authenticate | jq -r .access_token)
PID=$(curl -sk -H "Authorization: Bearer $TOKEN" -X POST -H 'Content-Type: application/json' \
--data '{"name":"api-demo"}' https://127.0.0.1/v3/projects | jq -r .project_id)
NID=$(curl -sk -H "Authorization: Bearer $TOKEN" -X POST -H 'Content-Type: application/json' \
--data '{"name":"host1","node_type":"docker","compute_id":"local","console_type":"telnet","properties":{"image":"alpine:3.24.1","adapters":1,"start_command":"/bin/sh"}}' \
https://127.0.0.1/v3/projects/$PID/nodes | jq -r .node_id)
curl -sk -H "Authorization: Bearer $TOKEN" -X POST -H 'Content-Type: application/json' --data '{}' \
-o /dev/null -w 'start -> HTTP %{http_code}\n' https://127.0.0.1/v3/projects/$PID/nodes/$NID/start
curl -sk -H "Authorization: Bearer $TOKEN" https://127.0.0.1/v3/projects/$PID/nodes/$NID | jq -r .status
curl -sk -H "Authorization: Bearer $TOKEN" -X DELETE -o /dev/null -w 'delete -> HTTP %{http_code}\n' \
https://127.0.0.1/v3/projects/$PID
start -> HTTP 204
started
delete -> HTTP 204
The full API reference is served by the server itself at https://<public-ip>/docs.
Step 9: Reach a device console
Device telnet consoles are bound to the loopback interface, so they are never reachable from the network. Open a console from the node's menu in the web interface, or forward the console port over SSH from your workstation (the node panel shows each console port):
ssh -L 5000:127.0.0.1:5000 azureuser@<public-ip>
telnet 127.0.0.1 5000
Step 10: Verify the deployment
Confirm the services are running and GNS3 listens on loopback only:
systemctl is-active gns3-server nginx docker
sudo ss -tlnp | grep -E ':(80|443|3080) ' | awk '{print $4, $6}' | sed 's/,fd=[0-9]*//g'
active
active
active
127.0.0.1:3080 users:(("gns3server",pid=10839))
0.0.0.0:80 users:(("nginx",pid=10845),("nginx",pid=10844),("nginx",pid=10843))
0.0.0.0:443 users:(("nginx",pid=10845),("nginx",pid=10844),("nginx",pid=10843))
[::]:80 users:(("nginx",pid=10845),("nginx",pid=10844),("nginx",pid=10843))
[::]:443 users:(("nginx",pid=10845),("nginx",pid=10844),("nginx",pid=10843))

Run the self test. It reads this VM's password and proves the whole path: the health probe, the API refusing calls without a token and a token signed with GNS3's published default key, the administrator signing in, a project created and a real Docker node started. It also reports whether this VM size has hardware virtualisation:
sudo /usr/local/bin/gns3-selftest
OK gns3 self-test passed: healthz 200, API without a token 401, forged default-key token 401, compute default login 401, administrator signed in, GNS3 3.0.6, project created, Docker node started
hardware virtualisation (/dev/kvm): absent: this VM size has no nested virtualisation, so QEMU appliance nodes run without acceleration. Dynamips, Docker and VPCS nodes (proven above) are unaffected; use a D-series v3 or later size for accelerated QEMU nodes.
On a Dv3 or later size the last line reports /dev/kvm present instead.

Step 11: Replace the certificate for production
The per VM certificate is self signed, so browsers and the desktop client warn on first use. For a real deployment, point a DNS name at the VM, move the VM to that name, then get a free certificate with Certbot. Certbot proves you control the name over port 80, so allow inbound TCP 80 first (and keep it for renewals):
az vm open-port --resource-group my-resource-group --name gns3-server --port 80 --priority 1002
Then, on the VM:
sudo cloudimg-set-public-address <your-domain>
sudo apt-get update
sudo apt-get install -y certbot python3-certbot-nginx
sudo certbot --nginx -d <your-domain>
Step 12: Connect the GNS3 desktop client
Install a GNS3 3.0.x desktop client (it must match the server's major version). Add this server as a remote controller: host <public-ip> or your DNS name, port 443, protocol HTTPS, and sign in with your GNS3 user name and password. With the self signed certificate, accept it when the client asks, or install your own first (Step 11).
Step 13: Versions and service management
The baked versions, the emulators and the hardware virtualisation state:
sudo sed -n '1,8p' /var/lib/gns3/VERSION
dynamips --version 2>&1 | head -1; sudo ubridge -v; qemu-system-x86_64 --version | head -1
ls -l /dev/kvm
gns3_server_version=3.0.6
gns3_server_wheel_sha256=6293f06431135305a18323cb893f69395d84470818ac5711360433bc01b38bc9
dynamips_package=0.2.25-1~noble1
ubridge_package=1.0.1-1~noble1
vpcs_package=1:0.8.5-1~noble2
docker_node_template=alpine:3.24.1@sha256:28bd5fe8b56d1bd048e5babf5b10710ebe0bae67db86916198a6eec434943f8b
ppa_signing_key=B83AAABFFBD82D21B543C8EA86C22C2EC6A24D7F
baked_at=2026-11-30T19:26:54Z
Cisco Router Simulation Platform (version 0.2.25-amd64/Linux stable)
ubridge version 1.0.1
QEMU emulator version 8.2.2 (Debian 1:8.2.2+ds-0ubuntu1.18)
ls: cannot access '/dev/kvm': No such file or directory

On a B series VM /dev/kvm is absent; that affects only QEMU nodes. Manage the service with systemd:
systemctl status gns3-server --no-pager | head -5
sudo tail -5 /var/log/gns3/gns3-server.log
Projects, images, appliances and the user database live under /var/lib/gns3: back that directory up to keep your labs and users.
Security notes
-
No default login. The administrator password, the token signing key and the compute password are made on each VM's first boot. GNS3 keeps only a bcrypt hash of the password; the plain password is in the root only
/root/gns3-server-credentials.txt. The GNS3 configuration,/var/lib/gns3/.config/GNS3/3.0/gns3_server.conf, and the token signing key beside it,gns3_jwt_secret_key, are readable by thegns3user only. Restartgns3-serverafter editing the configuration. -
One user per person. Add GNS3 users with the roles they need (Step 7) rather than sharing the administrator, and change the administrator password from the web interface if you wish.
-
Loopback only. GNS3 listens on
127.0.0.1:3080and is reachable only through nginx on:443. Device consoles are on loopback too: reach them through the web interface or an SSH tunnel. -
Restrict access. Allow
443only from the networks that need it, keep22to your management network, and use a CA signed certificate for production. -
Updates. Ubuntu security updates install automatically. GNS3 Server itself is installed in
/opt/gns3and is updated by you when you choose, for examplesudo /opt/gns3/bin/pip install 'gns3-server==3.0.*'followed bysudo systemctl restart gns3-server.
Support
cloudimg's support team is on hand 24 hours a day by email (support@cloudimg.co.uk), with a guaranteed response within 24 hours. GNS3 is open source software under the GNU General Public License v3.0; the cloudimg charge covers packaging, hardening, security patching, image maintenance and support. GNS3 is a trademark of its respective owner; cloudimg is not affiliated with or endorsed by it.