A collection of user-friendly automation scripts for Proxmox VE environments. Scripts are designed to speed up repetitive administrative tasks, improve consistency, and enforce best practices in cluster management.
Overview
Proxmox Userscripts provides a curated library of automation tools for common Proxmox VE operations, reducing manual work and human error in virtual infrastructure management.Automation
Automate repetitive administrative tasks
Consistency
Enforce standardized configurations across clusters
Best Practices
Built-in security and operational best practices
Time Savings
Reduce manual configuration and troubleshooting time
Use Cases
Common Operations
VM Provisioning
VM Provisioning
Automate virtual machine creation with consistent:
- Resource allocation (CPU, RAM, disk)
- Network configuration (VLAN tagging, bridges)
- Storage backend selection
- Post-deployment configuration hooks
Backup Management
Backup Management
Streamline backup operations:
- Scheduled backup creation
- Retention policy enforcement
- Backup verification and testing
- Off-site replication automation
Cluster Maintenance
Cluster Maintenance
Simplify cluster administration:
- Node updates and patching
- Storage pool management
- Resource rebalancing
- Health checks and monitoring
Template Management
Template Management
Standardize VM templates:
- Template creation from existing VMs
- Cloud-init integration
- Template versioning and updates
- Multi-cluster template distribution
Key Features
User-Friendly Interface
Clear prompts and informative output for easy use by operators of all skill levels
Script Categories
VM Management
Automation scripts for virtual machine lifecycle:- VM creation - Deploy VMs from templates with custom configurations
- VM cloning - Rapid provisioning from existing VMs
- VM migration - Live migration and cold storage migration
- Resource adjustment - CPU, memory, and disk hot-plug operations
Storage Operations
Storage management and optimization:- Storage pool creation - LVM, ZFS, Ceph integration
- Disk management - Add, resize, migrate virtual disks
- Snapshot operations - Create, restore, delete snapshots
- Thin provisioning - Optimize storage utilization
Network Configuration
Network automation tools:- Bridge configuration - Create and manage Linux bridges
- VLAN setup - VLAN tagging for network segmentation
- Firewall rules - Proxmox firewall automation
- SDN integration - Software-defined networking setup
Backup & Recovery
Backup workflow automation:- Backup scheduling - Automated backup job creation
- Retention management - Policy-based backup pruning
- Restore operations - Simplified VM and CT restore
- Verification - Automated backup integrity checks
Best Practices
Test First
Always test scripts in a lab or staging environment before production use
Read the Code
Review script source before execution to understand what it does
Backup Before Changes
Take snapshots or backups before running scripts that modify infrastructure
Version Control
Track script versions and changes in your infrastructure repository
Installation
Most scripts require root privileges on Proxmox nodes. Always verify you’re running on the correct node before execution.
Example Workflows
Rapid VM Deployment
Automated Backup Workflow
Security Considerations
Secure Usage
- Credentials: Use Proxmox API tokens instead of root passwords
- Permissions: Run scripts with minimum required privileges
- Logging: Enable comprehensive logging for audit trails
- Access Control: Restrict script execution to authorized administrators
Repository Information
- Repository: github.com/safesploitOrg/proxmox-userscripts
- Status: Active
- Visibility: Public
- Owner: safesploit
- License: Check repository for current license
Contributions are welcome! If you’ve developed useful Proxmox automation scripts, please submit a pull request with:
- Clear documentation
- Usage examples
- Safety checks and validation
- Error handling
Support & Contributions
Report Issues
Submit bug reports and feature requests on GitHub
Contribute
Submit pull requests with improvements and new scripts