Proxmox nodes: install in an LXC container instead of Docker on the node
Run on a Proxmox VE node (pct and /etc/pve present), the installers now default to INSTALL_MODE=lxc: create or reuse (by tag netmon-hub / netmon-probe) an unprivileged Debian LXC on vmbr0 with nesting and onboot, push the installer into it (rebuilt from its own functions) and run it there in native mode. LXC_* variables override ID, storage, template storage, bridge, IP and size. Docker on a node now needs an explicit INSTALL_MODE=docker and prints a warning; an earlier Docker install is pointed out with removal steps. Ping setup inside an unprivileged container stays within the mapped group range, which the kernel requires. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
edeb77f833
commit
a17f2b502c
7 changed files with 382 additions and 38 deletions
|
|
@ -26,10 +26,13 @@ out=install-probe.sh
|
|||
# Private repo over https: add GIT_TOKEN, read without echoing it:
|
||||
# read -rsp 'Git token: ' GIT_TOKEN && export GIT_TOKEN && curl -fsSL -H "Authorization: token \$GIT_TOKEN" $RAW/install-probe.sh | HUB_URL=... PROBE_TOKEN=... bash
|
||||
#
|
||||
# Two ways to run (INSTALL_MODE):
|
||||
# docker The probe in a container with host networking. Default on Linux hosts.
|
||||
# Where it installs (INSTALL_MODE):
|
||||
# lxc On a Proxmox VE node: creates (or reuses) a small Debian LXC container, tagged
|
||||
# netmon-probe, on the node's bridge, and installs natively inside it. Default on
|
||||
# Proxmox nodes, so the node itself gets no Docker and no packages.
|
||||
# docker The probe in a container with host networking. Default on other Linux hosts.
|
||||
# native A Python virtualenv and a boot service: systemd on Linux, launchd on macOS.
|
||||
# Default on macOS and inside LXC containers (e.g. Proxmox LXC).
|
||||
# Default on macOS and inside LXC containers.
|
||||
# On Linux it also lets unprivileged processes ping (net.ipv4.ping_group_range, persisted in
|
||||
# /etc/sysctl.d). Re-running is safe: it keeps .env (values you pass replace those keys).
|
||||
# Ordinary deploys:
|
||||
|
|
@ -45,6 +48,8 @@ out=install-probe.sh
|
|||
# REPO_URL, REPO_REF default https://git.neilbantoc.dev/services/network-monitor.git, main
|
||||
# GIT_TOKEN, GIT_USERNAME private repo over https
|
||||
# GIT_SSH_KEY private repo over SSH (base64-encoded deploy key)
|
||||
# Proxmox (lxc mode): LXC_ID, LXC_STORAGE, LXC_TEMPLATE_STORAGE, LXC_BRIDGE, LXC_IP, LXC_GW,
|
||||
# LXC_CORES, LXC_MEMORY, LXC_DISK (see install.sh)
|
||||
#
|
||||
# Everything is inside main(), so a partial download runs nothing. bash 3.2 compatible (macOS).
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue