Перейти к содержимому

Proxmox VE

A Debian 13 virtual machine with 2 cores, 4 GB of memory and a 32 GB disk is the simplest route. Inside it, install Squad as on Debian. An LXC container uses less memory and works with two extra features on. Both take about 20 minutes.

  • One virtual machine or one LXC container on your Proxmox host.
  • Inside it, Docker with one container called fluxer-fluxer-1 and a volume called fluxer-data, or Squad under systemd when it’s a virtual machine.
  • Port forwards on your router, or on the Proxmox host when its guests are behind NAT, for ports 80 and 443 on TCP, 443 on UDP, 7881 on TCP and 7882 on UDP.

Check the requirements. Give the guest an address that Squad’s ports can be forwarded to, and point your domain at your public address. Keep the guest’s disk on local storage, and never put the database on NFS or SMB storage.

  1. Create a VM from the Debian 13 netinst ISO with 2 cores, 4 GB of memory and a 32 GB disk on local storage, then install Debian with the SSH server.

    After it boots, the Proxmox console shows the VM’s address.

  2. Inside the VM, run Squad with Docker as on Debian, or as a systemd service.

    When that install finishes, the setup wizard opens at your domain.

Turn on the QEMU guest agent in the VM’s options and install qemu-guest-agent in Debian, so Proxmox can shut the VM down cleanly. Squad needs up to 130 seconds to stop.

  1. Download the Debian 13 template and create an unprivileged container from it with the nesting and keyctl features turned on.

    Окно терминала
    pveam update
    pveam available --section system | grep debian-13
    pveam download local debian-13-standard_13.6-1_amd64.tar.zst
    pct create 120 local:vztmpl/debian-13-standard_13.6-1_amd64.tar.zst \
    --hostname fluxer --unprivileged 1 --features nesting=1,keyctl=1 \
    --cores 2 --memory 4096 --swap 0 --rootfs local-lvm:32 \
    --net0 name=eth0,bridge=vmbr0,ip=dhcp --start 1

    Use the template version that pveam available shows, and your own storage and bridge. pct status 120 prints status: running.

  2. Install Docker in the container.

    Окно терминала
    pct exec 120 -- bash -c 'apt-get update && apt-get install -y docker.io docker-cli docker-compose curl'

    pct exec 120 -- docker compose version prints a version.

  3. Open a shell in it with pct enter 120 and go through steps 1 to 4 of the Docker install.

    Your domain then opens the setup wizard.

  • Without nesting=1, Docker doesn’t start in the container, and its log says failed to start daemon: error initializing graphdriver: driver not supported. With nesting=1 and keyctl=1, Docker uses overlay2, and after a restart of the container Squad comes back healthy.
  • Privileged containers aren’t needed. Squad runs as user ID 65532 inside its own container, which maps to an unprivileged ID on the host.
  • A Proxmox backup of the container in snapshot or suspend mode copies the database while it’s running, and the copy may not restore cleanly. Take Squad’s own backups, or back up the container in stop mode.
  • Proxmox recommends running Docker in a VM, and a Proxmox update can change how containers behave. If Docker stops working in the container after an update, move to the VM route with a Squad backup.