Bỏ qua để đến nội dung
Linux, Proxmox and Raspberry Pi Prepare a homelab Linux box for MZPanel — a mini PC or old desktop on bare metal, a VM on Proxmox (start at boot, CPU type, GPU passthrough), or a Raspberry Pi 4/5 — then install the agent with the homelab profile.

Linux, Proxmox and Raspberry Pi

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

Any machine that runs a supported Linux with systemd works. Pick the section that matches yours, then install with the homelab profile.

Terminal window
cat /etc/os-release | head -3 # Ubuntu 24.04+, Debian 12/13, AlmaLinux/Rocky 9/10
uname -m # x86_64 or aarch64
ps -p 1 -o comm= # must print: systemd
free -h && df -h / # 2 GB+ RAM and 10 GB+ free disk to build apps
curl -sI https://api.mzpanel.com | head -1 # outbound HTTPS works

Give the box a fixed LAN address (a DHCP reservation in your router) so LAN-only URLs keep working, and make sure it boots on its own after a power cut (most BIOS/UEFI setups have “Restore on AC power loss”).

  • Ubuntu Server 24.04 LTS or Debian 12/13 is the simplest choice and the best tested.
  • AlmaLinux / Rocky Linux 9/10 work as on a VPS but are beta: a few panel features have no RHEL path yet and say so when you use them. SELinux stays enforcing; the agent labels what it writes.
  • Derivatives (Linux Mint, Pop!_OS, Raspberry Pi OS) install with a “best effort” warning. Ubuntu 22.04, Debian 11, EL8 and other families (Fedora, Arch, openSUSE, Alpine) are refused.
  • A desktop edition (Ubuntu Desktop, Debian with GNOME or KDE) is fine with MZ_PROFILE=homelab; the installer refuses a desktop session without it.
  • Disable suspend if the machine has a desktop: sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target.

Use a VM, not an LXC container. Docker and the agent’s systemd units are not supported in LXC.

  1. Create a VM from the Ubuntu Server 24.04 ISO: 2+ vCPU, 4 GB RAM, 32 GB+ disk, VirtIO disk and network.
  2. CPU type: host (faster builds, and some images need modern CPU flags).
  3. Options > Start at boot: Yes, so the VM comes back after the host reboots.
  4. In the guest: sudo apt install -y qemu-guest-agent && sudo systemctl enable --now qemu-guest-agent, and enable QEMU Guest Agent in the VM options (clean shutdowns, IP shown in Proxmox).
  5. Install the agent inside the VM. The VM’s LAN address is the one for LAN-only URLs.

GPU passthrough (for AI workloads): enable IOMMU on the host (intel_iommu=on or amd_iommu=on on the kernel command line, VFIO modules), add the GPU as a PCI device with All Functions and PCI-Express ticked, machine type q35. Then install the NVIDIA driver and the NVIDIA Container Toolkit in the guest yourself; MZPanel does not install drivers. Check with nvidia-smi and docker run --rm --gpus all nvidia/cuda:12.6.0-base-ubuntu24.04 nvidia-smi.

ESXi, Hyper-V and libvirt work the same way: a normal Linux guest, started automatically.

  • Pi 4 or Pi 5 with 4 GB RAM or more. Builds are slow on a Pi; prefer deploying ready-made images or small apps.
  • 64-bit OS: Ubuntu Server 24.04 (arm64) or Raspberry Pi OS Lite 64-bit (Debian 12 “bookworm”, detected as Debian 12). 32-bit systems are not supported.
  • Boot from an SSD (USB 3 or the Pi 5 NVMe HAT). SD cards wear out under Docker and database writes.
  • Images must be built for arm64; most official images are multi-arch.

The box shows up with a Homelab badge. Next:

  • publish apps: Cloudflare Tunnel;
  • or use it LAN-only: deploy without a tunnel, add <app>.home.arpa with the box’s LAN IP to your hosts file or local DNS (Pi-hole, AdGuard Home, your router), and open http://<app>.home.arpa.