macOS through a Linux VM
Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.
The agent runs on Linux only. On a Mac it runs inside a Linux VM; MZPanel never touches macOS itself. This path is documented, not tested by us on every VM tool.
1. Create an Ubuntu 24.04 VM
Section titled “1. Create an Ubuntu 24.04 VM”Any of these gives you an Ubuntu VM with systemd (on Apple Silicon it is arm64):
| Tool | Create the VM |
|---|---|
| OrbStack | orb create ubuntu:noble mzbox (a full Linux machine, not a container) |
| Lima | limactl start --name=mzbox template://ubuntu-lts |
| Multipass | multipass launch 24.04 --name mzbox --cpus 4 --memory 8G --disk 40G |
| UTM | new VM from the Ubuntu Server 24.04 ARM64 ISO, 4 CPU, 8 GB RAM, 40 GB disk |
Give it at least 4 GB RAM and 30 GB disk if you build apps there. Do not use Docker Desktop or OrbStack’s Docker engine for MZPanel: the agent installs Docker Engine inside the VM.
Open a shell in the VM (orb -m mzbox, limactl shell mzbox, multipass shell mzbox, or the
UTM console) and check ps -p 1 -o comm= prints systemd.
2. Start the VM at login
Section titled “2. Start the VM at login”- OrbStack: Settings > General > Start at login; machines start with it.
- Multipass: instances start with the Multipass daemon at boot.
- Lima:
limactl start-at-login mzbox(or a launchd agent runninglimactl start mzbox). - UTM: add UTM to Login Items and use a shortcut/AppleScript to start the VM.
3. Keep the Mac awake
Section titled “3. Keep the Mac awake”System Settings > Energy (or Battery > Options on a laptop): Prevent automatic sleeping when
the display is off, and Start up automatically after a power failure where available.
For a quick test, caffeinate -dis in a terminal keeps it awake while it runs.
4. Install the agent in the VM
Section titled “4. Install the agent in the VM”curl -fsSL https://get.mzpanel.com | sudo INSTALL_TOKEN=<install-token> MZ_PROFILE=homelab bashThen publish apps with a Cloudflare Tunnel. LAN-only URLs need the VM to be reachable from your LAN (bridged networking in UTM/Multipass; OrbStack and Lima forward ports to the Mac by default).