Bỏ qua để đến nội dung
Homelab and local machines Run the MZPanel agent on a machine at home or behind NAT (mini PC, Raspberry Pi, Proxmox VM, a GPU desktop, Windows via WSL2, macOS via a Linux VM), install it with the homelab profile, and publish its apps through a Cloudflare Tunnel on your own Cloudflare account.

Homelab and local machines

Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.

MZPanel is built for a fleet of Linux servers, and a server does not have to be a rented VPS. A mini PC under the desk, a Raspberry Pi, a VM on your Proxmox host or the GPU desktop you also game on can join the same fleet as your VPSes. Your AI agent then deploys onto both.

The agent already works behind NAT: it dials out to MZPanel over WebSocket, so the dashboard, terminal, File Manager, MCP and the REST API reach the box without any open port. What a home connection cannot do is take inbound traffic, so apps on a homelab box are published through a Cloudflare Tunnel on your own Cloudflare account instead of an instant *.box URL.

TargetStatusGuide
Linux on bare metal: Ubuntu 24.04+, Debian 12/13 (amd64, arm64)SupportedLinux, Proxmox and Raspberry Pi
AlmaLinux / Rocky Linux 9/10 (amd64, arm64)Beta (same as on a VPS)Linux, Proxmox and Raspberry Pi
Ubuntu/Debian derivatives (Linux Mint, Pop!_OS, Raspberry Pi OS) and other RHEL clonesBest effort: the installer warns but continuesLinux, Proxmox and Raspberry Pi
A Linux VM on Proxmox, ESXi, Hyper-V, libvirtSupported (the guest is plain Linux)Linux, Proxmox and Raspberry Pi
Raspberry Pi 4/5 with a 64-bit OSSupported (as Ubuntu or Debian arm64)Linux, Proxmox and Raspberry Pi
Windows 10/11 through WSL2 with systemdBeta, docs onlyWindows with WSL2
macOS through a Linux VM (OrbStack, Lima, UTM, Multipass)Docs onlymacOS

Not supported: Windows or macOS without a Linux VM, Docker Desktop as the Docker engine, LXC/LXD containers, older releases (Ubuntu 22.04, Debian 11, EL8 — refused at install), other families (Fedora, Arch, openSUSE, Alpine), and any Linux without systemd as PID 1. See What MZPanel does not do.

Quota: a homelab box counts as a server like any other (Free 1, Plus 3, Pro 10, Max 25).

  • One of the Linux systems above, with systemd running as PID 1 (ps -p 1 -o comm= prints systemd).
  • 1 CPU and 1 GB RAM minimum; 2 GB+ RAM and 10 GB+ free disk if you build apps on the box.
  • Outbound HTTPS (port 443) to the Internet. No inbound port, public IP or domain is needed.
  • Root (sudo).
  • For public app URLs: a domain on Cloudflare (the free plan is enough) and a Cloudflare API token with Cloudflare Tunnel: Edit (see Cloudflare Tunnel).
  1. In the dashboard, Servers > Add server, name the box and click Generate install command (leave the components empty: the homelab profile picks Docker + Nginx).

  2. On the box, add MZ_PROFILE=homelab to the command:

    Terminal window
    curl -fsSL https://get.mzpanel.com | sudo INSTALL_TOKEN=<install-token> MZ_PROFILE=homelab bash

The homelab profile installs the agent, Docker and Nginx for the app loop and leaves the machine’s own setup alone:

The standard profile may…The homelab profile
enable UFW/firewalld and Fail2bannever touches the firewall
switch SSH to key-onlynever touches sshd
enable automatic security updatesleaves updates to you
change the timezoneleaves the timezone
enable disk quotas in /etc/fstableaves /etc/fstab
set /home to traverse-only, blacklist kernel modulesleaves /home and modules
install the full web stack (Nginx, PHP, MariaDB, Redis)installs Docker + Nginx (add more from Extensions)

The installer looks at the machine first. On WSL or a machine with a desktop session it refuses to run without MZ_PROFILE=homelab, because the standard profile could break a computer you also use for other things. On a machine with no public IPv4 it prints a hint and continues (cloud VMs often have private-only interfaces too). Run mzagent detect-host after the install to see what it found.

A box installed with the homelab profile is marked Homelab (a badge on the server card). You can also switch it on or off in Server > Settings > Homelab & Cloudflare Tunnel. A homelab box:

  • may go offline. A laptop that sleeps or a WSL distro that stops is expected, so MZPanel sends no “Server offline” / “Server back online” notifications for it. Developer webhooks still fire, and uptime monitors on its public URLs still alert.
  • never gets an instant *.box URL. Its address is a home connection, so MZPanel never publishes it in DNS.
  • is skipped by automatic placement (apps_fleet_deploy) unless it has a Cloudflare Tunnel. You can still deploy to it by name.
Boxapps_deploy without a domainDirect upload (apps_source_upload)
Homelab box with a Cloudflare Tunnelhttps://<app>.<your zone>, routed through the tunnelthrough the tunnel, max 100 MB per upload
Homelab box without a tunnelthe app runs, but only on your LAN: http://<app>.home.arpa (point that name at the box’s LAN IP in your hosts file or local DNS)refused with 409 tunnel_required; deploy from Git instead

Set up the tunnel in Cloudflare Tunnel.

  • Install or start WSL, a VM, or anything on Windows or macOS.
  • Keep your machine awake or start it after a power cut.
  • Open ports on your router, set up port forwarding or dynamic DNS.
  • Install GPU drivers or the NVIDIA Container Toolkit (bring them; the box then runs GPU containers like any server).
  • Tunnel traffic through MZPanel’s own network. The tunnel always runs on your Cloudflare account; an MZPanel-hosted tunnel may come later as a paid add-on.

Server > Settings > Danger zone > Remove from account. The agent uninstalls itself and the tunnel connector, and a few seconds later MZPanel deletes the server’s Cloudflare Tunnel and the DNS records it created for it in your Cloudflare account. Your apps, data and Docker stay on the machine.

To keep the server but stop publishing it, use Server > Settings > Homelab & Cloudflare Tunnel > Remove tunnel instead.

MZPanel only deletes a DNS record while it is still the exact record it created: a CNAME on that hostname pointing at this tunnel. A record you changed or replaced since is left alone, and nothing outside the hostname’s own zone is touched.

Tool (MCP)RESTWhat
servers_listGET /v1/servershomelab: true on homelab boxes
servers_updatePATCH /v1/servers/{id}{name, homelab} switches the flag
servers_tunnel_getGET /v1/servers/{id}/tunneltunnel state and routes
servers_tunnel_createPOST /v1/servers/{id}/tunnelcreate the tunnel, install the connector (async)
servers_tunnel_route_addPOST /v1/servers/{id}/tunnel/routesroute a hostname
servers_tunnel_route_deleteDELETE /v1/servers/{id}/tunnel/routes/{hostname}remove a hostname
servers_tunnel_deleteDELETE /v1/servers/{id}/tunnelremove the tunnel

An AI agent can walk a user through the whole setup with the homelab box playbook.