Skip to main content

Deploy an agent

From the Agents page click Deploy agent. You choose a platform, name the deployment, and get copy-paste install instructions. Linux deployments, the VMware appliance and the Windows agent upgrade themselves automatically. Single-container Docker and Kubernetes deployments upgrade by pulling the latest image.

The Deploy agent dialog with three platform choices: Linux server marked Recommended, Windows Server, and Other platforms, each noting that it self-upgrades
Choose a platform. Linux is the one-command option, VMware is an importable appliance, Windows drives the native roles, and Other covers Docker and Kubernetes.

Choose a platform​

PlatformWhat it does
Linux server (recommended)One command deploys DNS (BIND 9), DHCP (Kea), and discovery as Docker containers.
VMware applianceAn OVA for vSphere: a minimal, locked-down Debian that runs the same containers as a Linux server.
Windows ServerDrives the native Windows DNS/DHCP roles; also the start of a Windows migration.
Other platformsSingle Docker container or Kubernetes DaemonSet.

Name it and pick options​

  • Label (Linux) or agent name (Windows/other), e.g. hq-dns-01.
  • Site (optional) — assign so the agent serves only that site's config plus global.
  • Services (Linux) — Core (always on), DNS, DHCP, Discovery, Local UI.

Click Create & show instructions.

Linux​

Run the one-line installer on the host:

curl -fsSL https://<your-install-url> | sudo bash

It installs Docker if needed, deploys the selected services, and enrolls into your tenant. The install URL is single-use and expires in 24 hours — anyone with it can enroll an agent, so treat it as a secret.

Windows Server​

Install on a Windows Server that has the DNS Server and/or DHCP Server roles. Copy the PowerShell command (shown once) and run it in any PowerShell window:

powershell -ep bypass -c "irm https://api.subnetly.com/win/<token> | iex"

It self-elevates (one UAC prompt), downloads the checksum-verified agent, installs it as a Windows service with restart-on-failure, enables discovery, and verifies health. After install, open http://localhost:7474 on the server (Start Menu → Subnetly → Agent Status) to see connection, DNS/DHCP service health, config syncs, and logs.

Prefer a GUI? Expand "Download an installer instead" to download SubnetlyWindowsAgentSetup.exe and paste the token when prompted.

Other platforms​

You get a one-time bootstrap token plus tabbed instructions:

Docker​

A single container with --network host so BIND and Kea bind directly to the host NIC:

docker run -d --name subnetly-agent \
--network host \
--cap-add NET_ADMIN --cap-add NET_BIND_SERVICE \
--restart unless-stopped \
-v subnetly-data:/opt/subnetly/data \
-e SUBNETLY_TOKEN=<token> \
<your-agent-image>

Upgrade by pulling the latest image and recreating the container.

Kubernetes​

A DaemonSet with hostNetwork: true on labelled nodes:

kubectl create secret generic subnetly-agent-token \
--from-literal=token=<token> \
-n subnetly-system
kubectl label node <node-name> subnetly.io/agent=enabled
kubectl apply -f deploy/kubernetes/agent-daemonset.yaml

VMware appliance​

The appliance is a minimal Debian 12 VM that contains only what the agent containers need: Docker, VMware Tools, a DHCP client and time sync. There is no SSH. You manage it from Subnetly and, for first-time setup, from a menu on the VM console. On first boot it runs the same installer as a Linux server, so it gets the same containers (core, DNS, DHCP, discovery, local UI) and upgrades itself the same way.

  1. Choose VMware appliance, name the deployment and pick the services. Copy the install URL.
  2. In vSphere, Deploy OVF Template from https://downloads.subnetly.com/subnetly-agent-latest.ova. It needs 2 vCPU, 2 GB RAM and a 20 GB thin disk.
  3. Under Customize template, paste the install URL into Install URL.
  4. Set IPv4 addressing to static, then give the address, prefix length, gateway and upstream DNS servers. A DNS/DHCP server should have a fixed address.
  5. (Optional) Set an Admin password.
  6. Power it on. The VM console shows its address and enrollment status, and the agent appears on the Agents page within a few minutes.

Every setting in step 3 to 5 is optional. Anything you leave out, or want to change later, you set from the console menu.

The console menu​

Open the VM console and sign in as admin. If you didn't set an Admin password, the console shows an initial password, and you choose your own at the first sign-in.

admin gets a menu, not a command prompt:

Menu itemWhat it does
StatusAddress, gateway, DNS servers, enrollment state and the agent services.
Network settingsSet a static address, switch to DHCP, or go back to the settings from deployment. Applied at once.
Enroll this agentEnter the install URL (the part after the last / is enough) if you didn't set it at deployment.
Test the networkChecks the gateway, DNS, the connection to Subnetly and the clock.
View logsAgent installation, agent services, network and appliance logs.
Restart the agent servicesRestarts the containers.
Change the admin passwordAlso changes the local UI password.
Restart / Shut downRestarts or powers off the appliance.

The console also shows why the appliance has no address when that happens: no network adapter, the adapter is disconnected, or no DHCP server answered.

The same admin password signs in to the local UI at https://<address>:9443, if you chose that service.

The root account is reserved for Subnetly support engineers, for when you ask them for help. You can't set its password, and it can only be used on the VM console.

Changing settings later​

  • From the console menu: sign in as admin and choose Network settings. Settings made here take priority.
  • From vCenter: edit the VM's vApp properties and restart it.
  • Standalone ESXi only passes the deployment settings to the VM the first time it powers on. The appliance saves them on that first boot and keeps using them. To change them afterwards, use the console menu.

The install URL is single-use and expires in 24 hours.

After install​

The agent should show connected on the Agents page within seconds. Next, assign zones and scopes to it (or it serves its site's global resources automatically), then verify before any cutover. See Deploy your first agent for the end-to-end walkthrough.