╔══════════════════════════════════════════════════════════╗
║  ██████╗ ███╗   ███╗  █████╗  ███╗   ██╗               ║
║  ██╔══██╗████╗ ███║ ██╔══██╗ ████╗  ██║               ║
║  ██████╔╝██╔████╔██║ ███████║ ██╔██╗ ██║               ║
║  ██╔═══╝ ██║╚██╔╝██║ ██╔══██║ ██║╚██╗██║               ║
║  ██║     ██║ ╚═╝ ██║ ██║  ██║ ██║ ╚████║               ║
║  ╚═╝     ╚═╝     ╚═╝ ╚═╝  ╚═╝ ╚═╝  ╚═══╝  v2.9.0      ║
║                                                          ║
║  Proxmox VM/CT Manager · Single Bash · No Dependencies  ║
╚══════════════════════════════════════════════════════════╝

Single-file Bash tool for managing Proxmox VMs and containers.
No daemons. No agents. No dependencies beyond what ships with Proxmox VE.


CI Gitleaks License Release

Shell Proxmox VE Platform

Buy Me A Coffee


Tech Stack


📸 Screenshot

Proxmox Manager Screenshot


🎯 What It Does

Proxmox Manager wraps qm and pct into an interactive menu or scriptable CLI — no daemons, no agents, no extra packages.

Feature Details
📋 List VMs & CTs Status overview: running, stopped, paused
⚡ Start / Stop / Restart Confirmation prompt for destructive actions
🖥️ Console access LXC shell or QEMU terminal
📷 Snapshot management List, create, rollback, delete
🔌 SPICE support Enable and retrieve connection details
📤 Automation output JSON and plain-text modes
📝 Structured logging Via LOG_FILE environment variable

🚀 Installation

git clone https://github.com/TimInTech/proxmox-manager.git
cd proxmox-manager
chmod +x proxmox-manager.sh

Optional: install system-wide as pman (requires root):

./install_dependencies.sh
pman             # interactive menu
pman --list      # plain-text table of all VMs/CTs
pman --json      # machine-readable JSON output
pman --version   # print version and exit

📋 Requirements

System: Proxmox VE 7.x / 8.x / 9.x · Bash ≥ 4.0 · Root privileges

Bundled CLI tools: qm · pct · awk · sed · grep

No Python. No Docker. No external APIs.


🛠️ Usage

Interactive mode

pman

Status symbols in the VM/CT table:

[+] running   [-] stopped   [~] paused   [?] unknown

Enter a VMID to open the action menu. Press r to refresh, q to quit.

CLI options

--list                  Plain-text table (no TUI)
--json                  Machine-readable JSON output
--filter <status>       Filter: running | stopped | paused
--timeout <seconds>     Stop timeout in seconds (default: 60)
--force                 Skip confirmation prompts
--no-clear              Do not clear screen
--once                  Single refresh cycle
--version               Print version and exit
-h, --help              Show usage

JSON output

[
  {"id":100,"type":"VM","status":"running","symbol":"[+]","name":"web-server"},
  {"id":101,"type":"CT","status":"stopped","symbol":"[-]","name":"db-container"}
]

Shell completions

Bash
# System-wide
sudo cp completions/pman.bash /etc/bash_completion.d/pman

# Per user (~/.bashrc)
source /path/to/proxmox-manager/completions/pman.bash
Zsh
mkdir -p ~/.zsh/completions
cp completions/pman.zsh ~/.zsh/completions/_pman
echo 'fpath=(~/.zsh/completions $fpath)' >> ~/.zshrc
echo 'autoload -Uz compinit && compinit' >> ~/.zshrc

🔐 Security

  • Root required — calls qm, pct and other Proxmox tools
  • No credentials stored — relies on Proxmox host authentication
  • No outbound traffic — fully local operation
  • CI hardening — ShellCheck + Gitleaks on every push
  • Vulnerability reporting — see SECURITY.md

🧪 CI & Testing

shellcheck proxmox-manager.sh          # lint
tests/run.sh                           # 8 tests via mock-bin/ stubs

CI runs on every push and PR via GitHub Actions.


🤝 Contributing

  1. Fork and create a feature branch: git checkout -b feat/your-change
  2. Keep Bash readable — avoid external dependencies
  3. Run shellcheck proxmox-manager.sh before committing
  4. Use conventional commits: feat(vm): add suspend action
  5. Open a Pull Request

Do not commit: logs, reports, scan outputs, binaries, large test data.


🧩 Scope & Limitations

✅ Does ❌ Does not
Interactive TUI + scriptable CLI Replace the Proxmox web UI
VM & CT lifecycle management Multi-host / cluster support
Snapshot operations Terraform / Ansible integration
JSON output for automation Run as a daemon

📜 License

MIT — see LICENSE.


Boring Proxmox administration, automated ✨

🐛 Report Bug · ✨ Request Feature · ☕ Buy me a coffee

Languages
Shell 48.4%
Python 47.7%
Astro 3.9%