Homelab machines join dPanel with the dPanel agent: you run one command on each machine, and the agent connects out to dPanel. You don't need SSH, a public IP or port forwarding on your router. Never connected a machine before? Follow Connect a server with the dPanel agent first; it explains every step for a single machine.
A machine you connect lands in the workspace you picked: the one selected in dPanel when you choose Get install command, or the one your dnocs is pointed at when you use sudo dnocs machine register. If that is your personal space, only you can see it. This tutorial puts homelab machines in a team workspace instead, so the whole team shares them: each member opens the same servers, installs software and deploys apps, within the role you give them.
We use a workspace called Home Lab with two machines:
homelab-nas, connected straight into the workspace (Part 2).homelab-pi, which was already connected in a personal space and is moved into the workspace (Part 3).
Both have no public IP and no open port. They reach dPanel through the agent, as explained in Connect a server with the dPanel agent.
What you need first
- A team workspace, and a role that can add servers to it: Owner, Admin or DevOps. Create one from the workspace picker with New workspace (see Workspaces).
- The workspace ID. You find it in the workspace picker, or with
dnocs workspace list. - On each machine: Linux with systemd on Intel/AMD (
amd64) or ARM (arm64),sudoand internet access. dnocs is needed only for the command line way and for moving a machine (Part 3): Install dnocs.
No spare machine? Try it in a container
You can try everything in this tutorial without a spare PC: run a Linux container with Docker or Podman on your laptop or any server, and connect the container as if it were a homelab machine. Each container becomes its own server in dPanel. This works with Ubuntu 24.04, Ubuntu 26.04 and Debian 13, on Linux, macOS and Windows (Docker Desktop).
1. Save this file as Containerfile in an empty folder. It installs systemd (the dPanel agent runs as a system service), sudo and curl, and adds a user called dpanel that may use sudo. The empty /etc/machine-id makes every container get its own machine ID, so each one is a separate server.
ARG BASE=docker.io/library/ubuntu:24.04
FROM ${BASE}
ENV container=docker
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
systemd systemd-sysv sudo curl ca-certificates iproute2 \
&& apt-get clean && rm -rf /var/lib/apt/lists/* \
&& rm -f /var/lib/dbus/machine-id && : > /etc/machine-id
RUN useradd -m -s /bin/bash -G sudo dpanel \
&& echo 'dpanel ALL=(ALL) NOPASSWD:ALL' > /etc/sudoers.d/dpanel
STOPSIGNAL SIGRTMIN+3
CMD ["/sbin/init"]
2. Build an image for the Linux you want to try. Pick one line:
docker build -f Containerfile --build-arg BASE=docker.io/library/ubuntu:24.04 -t dpanel-lab-ubuntu24 .
docker build -f Containerfile --build-arg BASE=docker.io/library/ubuntu:26.04 -t dpanel-lab-ubuntu26 .
docker build -f Containerfile --build-arg BASE=docker.io/library/debian:13 -t dpanel-lab-debian13 .
With Podman, write podman build instead of docker build; the rest is the same.
3. Start a container that boots systemd. The --hostname is the name the server gets in dPanel. The command is one line, so it works in bash, zsh, PowerShell and Command Prompt alike:
docker run -d --name homelab-nas --hostname homelab-nas --privileged --cgroupns=host -v /sys/fs/cgroup:/sys/fs/cgroup:rw dpanel-lab-ubuntu24
Use the image you built in step 2: for example dpanel-lab-debian13 for Debian 13 or dpanel-lab-ubuntu26 for Ubuntu 26.04.
With Podman, which starts systemd by itself when the image runs /sbin/init:
sudo podman run -d --name homelab-nas --hostname homelab-nas --privileged dpanel-lab-ubuntu24
Keep --privileged with Docker and Podman alike. Without it, services such as Caddy Server install but cannot start: systemd needs it to apply their protections, and the Services tab shows them Failed.
After a few seconds, docker exec homelab-nas systemctl is-system-running (or sudo podman exec …) prints running or degraded; both are fine.
4. Connect it to dPanel, the same two ways as in Part 2:
The one-line command from the website. Open a shell in the container with
docker exec -it homelab-nas bash, paste the command from Get install command and press Enter.dnocs. Open a shell as the
dpaneluser, install dnocs, sign in, then connect:bashdocker exec -it -u dpanel -w /home/dpanel homelab-nas bash curl --proto '=https' --tlsv1.2 -sSf https://dnocs.devetek.app/installer.sh | sh dnocs auth login -u <your username> dnocs workspace set --id <workspace id> sudo dnocs machine registerSigned up with Google? See Use dnocs with a Google account.
Within a minute the server shows Ready in dPanel. Start more containers with other names (homelab-pi, …) or other images to get more servers.
5. When you are done, delete the server in dPanel (Settings on the server page, or dnocs server delete --id <server id>), then remove the container with docker rm -f homelab-nas (or sudo podman rm -f homelab-nas). Restarting the container keeps the same server. On a real machine, also stop the agent there with sudo systemctl disable --now dpanel-agent: deleting the server in dPanel does not stop it, and dPanel lists the machine under removed servers that came back for 7 days after its last call.
Part 1: Pick the team workspace
In dPanel, open the workspace picker at the top left. Personal resources and team workspaces are kept apart; the ID column shows each workspace's ID.

Part 2: Connect a machine straight into the workspace
From the website:
- Switch dPanel to the Home Lab workspace in the workspace picker.
- Open Servers, then Create Server.
- On the Connect a server with the dPanel agent card, type
homelab-nasas the server name and choose Get install command. - Choose Copy, then paste the command into a terminal on the machine and run it. It asks for
sudo(in a container shell you are already root, so it does not). - The card says Connected! once the agent connects, usually in under a minute. The server is created in the Home Lab workspace.
The command works once, for 2 hours; get a new one for each machine. The machine needs no dnocs and no sign-in.
Prefer the command line? On the machine, sign in as your normal user, point dnocs at the team workspace, then connect it:
dnocs auth login -u <your username>
dnocs workspace set --id <workspace id>
sudo dnocs machine register
Signed up with Google? See Use dnocs with a Google account.
dnocs names the workspace in its question, so you can check you picked the right one before you confirm. It then creates a Linux user for your dPanel account, installs the agent and waits until the server is ready, usually in under a minute. The server is created in that workspace. To read the install script before running it, use sudo dnocs machine register --print-only.

Part 3: Move a machine from your personal space
A machine you connected earlier in your personal space can move to the team with dnocs transfer. It keeps its server ID, its agent, its installed software and its apps:
dnocs transfer server --id <server id> --to "<workspace name or id>"
dnocs shows what moves and asks you to confirm (--yes skips the question). A move is one way: once a server is in a workspace, it cannot go back to a personal space or on to another workspace.

Running sudo dnocs machine register again on a moved machine works only from the workspace it now belongs to; from your personal space dnocs refuses, so a machine cannot be pulled out of the team by accident.
Part 4: Check the servers in the workspace
Switch dPanel to the team workspace and open Servers. Both machines are there with a Private badge, owned by the workspace, with who added them.

Each server page shows the workspace as its Ownership. Everything from the dPanel agent guide works the same here: modules, apps, the terminal, files, logs, the database manager and load balancers. Jobs for these servers still run on the machines themselves, whatever workers the workspace uses.

Part 5: Invite your team
Open Teams, then the workspace, to see its members and the workspace's workers.

Choose Add Member, pick the person and the roles they get. The role decides what they can do with the homelab:

| Role | With the homelab servers |
|---|---|
| Owner, Admin | Everything, including adding and removing servers and members |
| DevOps | Add and manage servers, install modules, open the terminal and databases; cannot delete |
| Developer | Deploy and manage applications on the servers; sees the servers but cannot change them or open their terminal; cannot delete |
| Viewer | Look only: servers, usage, logs and jobs |
See Members and roles for every role in detail.
Use dnocs with a Google account
dnocs auth login signs in with a username and password, and an account created with Google has no dPanel password yet. Pick one:
- Set a password. In dPanel, open your profile, choose Edit profile, fill in New password and Retype password, and save. Then run
dnocs auth login -u <your username>; your username is on your profile. - Use a service-account token. Create a service account and a token, and run dnocs with it:
DNOCS_TOKEN=dps_your_token dnocs server list. For a team workspace, a workspace owner or admin creates a workspace service account, whose token acts in that workspace.
Good to know
- A workspace can connect up to 10 machines this way (cloud servers dPanel creates don't count), and a machine belongs to one workspace at a time.
- To publish a website from a homelab machine, add a load balancer and forward ports 80 and 443 on your router to the machine. See Put a load balancer on it.
- Removing a person from the workspace takes their access to its servers away at once; the machines keep running.
- Deleting a server in dPanel removes it at once and revokes its agent. Stop the agent on the machine afterwards with
sudo systemctl disable --now dpanel-agent.