proxmox-manager.sh: - Bump to v2.8.0; add --version flag - Add log() with optional LOG_FILE env for structured timestamped logging - Add validate_vmid() (numeric, 1–999999) used in main_menu() - Add confirm() helper for destructive actions (stop, restart, rollback, delete) - Add _status_color() to centralise status→colour mapping - Show snapshot list before rollback/delete in snapshots_menu() - Show node hostname + pveversion in header() when available - Add keyboard legend to main_menu() - Fix arithmetic with VMID in spice_enable/spice_info (explicit 10# base cast) - Normalise all output to English (remove German/English mix) - Colour-coded action_menu() entries (green/red/yellow/cyan) - Add YELLOW colour variable - Clear section comments throughout tests/run.sh: - Replace rg with portable grep -q - Add structured pass/fail counters with summary - Add tests for --help, --version, --once (interactive loop exit) - Fix arithmetic bug: PASS++ → PASS=$((PASS + 1)) under set -e install_dependencies.sh: - Add root check with helpful sudo hint - Add apt-get availability check for non-Debian systems - Add timestamped _log()/_ok()/_err() helpers - Log per-package install status (already installed vs. will install) - Improved apt-get error handling Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
📸 Screenshot
🎯 What It Does
Proxmox Manager is a single Bash script that wraps Proxmox CLI tools (qm, pct) into an interactive menu or scriptable interface. No daemons, no agents, no dependencies beyond what ships with Proxmox VE.
Core capabilities:
- List all VMs and containers with status (running, stopped, paused)
- Start, stop, restart instances
- Open console (LXC shell or QEMU terminal)
- Manage snapshots (list, create, rollback, delete)
- Enable and retrieve SPICE connection details for VMs
- Machine-readable JSON output for automation
🚀 Installation
Run directly on a Proxmox VE host:
git clone https://github.com/TimInTech/proxmox-manager.git
cd proxmox-manager
chmod +x proxmox-manager.sh
No build step. The core script has no required extra packages; optional helpers are available.
Run ./install_dependencies.sh to install optional helpers for convenience: jq, virt-viewer, and shellcheck.
📋 Requirements
System:
- Proxmox VE (tested on 7.x and 8.x)
- Bash ≥ 4.0 (included in Proxmox)
- Root privileges (or
PROXMOX_MANAGER_ALLOW_NONROOT=1for CI overrides) - SPICE bind address defaults to 127.0.0.1 (override via PROXMOX_MANAGER_SPICE_ADDR).
CLI tools (bundled with Proxmox):
qm(VM management)pct(container management)- Standard POSIX utilities (
awk,sed,grep)
No Python. No Docker. No external APIs.
🛠️ Usage
Interactive mode (default)
sudo ./proxmox-manager.sh
Displays a table of all VMs/containers with status symbols:
- 🟢 running
- 🔴 stopped
- 🟠 paused
- 🟡 unknown
Enter a VMID to open an action menu. Press r to refresh, q to quit.
List mode (plain text)
sudo ./proxmox-manager.sh --list
Prints a formatted table. Useful for logging or quick checks.
JSON mode (machine-readable)
sudo ./proxmox-manager.sh --json
Outputs VM/CT data as JSON array:
[
{"id": 100,"type":"VM","status":"running","symbol":"🟢","name":"web-server"},
{"id":101,"type":"CT","status":"stopped","symbol":"🔴","name":"db-container"}
]
Use with jq or automation tools.
Non-interactive / scripted use
The script is designed for interactive use. For automation, prefer --list or --json and parse output.
All destructive actions (stop, restart, snapshot rollback) require confirmation in interactive mode.
Options
--list Print plain-text table (no TUI)
--json Print JSON output
--no-clear Do not clear screen in interactive mode
--once Run one refresh cycle (useful for recording)
-h, --help Show usage
🔐 Security
- Root required: The script calls
qm,pct, and other Proxmox tools that require elevated privileges. - No credentials stored: Relies on Proxmox host authentication.
- No outbound traffic: All operations are local.
- CI hardening:
- ShellCheck enforced on all
.shfiles. - Gitleaks scan prevents accidental secret commits.
- ShellCheck enforced on all
- Vulnerability reporting: See
SECURITY.mdfor responsible disclosure.
🧩 What It Is Not
- Not a UI replacement: Use the Proxmox web UI for rich workflows.
- Not configuration management: No Terraform/Ansible integration (yet).
- Not a daemon: Runs on demand, exits immediately.
- Not multi-host: Manages only the local Proxmox node.
🧪 CI & Testing
Automated checks:
- ShellCheck on every
.shfile (strict mode:SC2086,SC2068, etc.) - Gitleaks scan for secrets (reports uploaded as artifacts, never committed)
- No generated files or scan outputs in the repository
Local testing:
shellcheck proxmox-manager.sh
CI runs on every push and PR.
🤝 Contributing
Contributions welcome if they preserve the tool's simplicity.
Guidelines:
-
Fork and create a feature branch:
git checkout -b feature/your-change -
Keep Bash readable. Avoid external dependencies.
-
Run ShellCheck locally:
shellcheck proxmox-manager.sh -
Commit with conventional format:
type(scope): summaryExamples:
feat(vm): add suspend action,fix(ct): handle missing hostname -
Open a Pull Request.
Do NOT commit:
- Generated files (logs, reports, artifacts)
- Scan outputs (Gitleaks, ShellCheck results)
- Binary files or large test data
📜 License
MIT License. See LICENSE for full text.
