Migrate Proxmox VM's across clusters
Repo AthenaNetworks/ProxMigrate, read from GitHub 2 d ago. AthenaNetworks has not joined Take My Repo.
AthenaNetworks/ProxMigrate is a public repo on GitHub by AthenaNetworks. Migrate Proxmox VM's across clusters. It declares the MIT license on GitHub. It is written mainly in Go, has 57 stars and last changed on 2026-08-16. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read from GitHub on 2026-11-22.
In the maintainer's words. Shown from GitHub; Take My Repo does not keep a copy.
A powerful, user-friendly command-line tool for migrating virtual machines between Proxmox VE servers with beautiful interactive prompts and robust file transfer capabilities.
AI wrote this documentation. I'm an engineer, I build things, but I suck at documentation.
If you aren't using AI to write your documentation then you're doing it wrong.
This was written by Claude Sonnet 4. Worth every single cent.
Option A: Download Pre-built Binary
# Download from releases page (recommended)
wget https://github.com/your-repo/proxmigrate/releases/latest/download/proxmigrate-linux-amd64.tar.gz
tar -xzf proxmigrate-linux-amd64.tar.gz
cd proxmigrate-linux-amd64
Option B: Build from Source
git clone https://github.com/your-repo/proxmigrate.git
cd proxmigrate
go build -o proxmigrate
First, copy the example configuration and customize it (the setup script needs this):
cp config.json.example config.json
# Edit config.json with your server details
Option A: Use the automated setup script (recommended)
The script will generate SSH keys if they don't exist AND deploy them to all servers in your config:
./setup-proxmox.sh
Option B: Manual setup
# Generate SSH key pair manually
ssh-keygen -t rsa -b 4096 -f proxmigrate_key -N ""
# Then copy to each server manually
ssh-copy-id -i proxmigrate_key.pub root@your-proxmox-server
# Repeat for all servers in your configuration
./proxmigrate --test --source=prod --target=backup
# Interactive mode (recommended for new users)
./proxmigrate
# Or use flags for automation
./proxmigrate --source=prod --target=backup --vmid=100
Create a config.json file with your Proxmox environments:
{
"sources": {
"prod-cluster": {
"host": "https://pve-prod.company.com:8006",
"token_id": "proxmigrate@pve!migration",
"token_secret": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"backup_storage": "migration",
"insecure": false
},
"dev-cluster": {
"host": "https://pve-dev.company.com:8006",
"token_id": "proxmigrate@pve!migration",
"token_secret": "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy",
"backup_storage": "local",
"insecure": true
}
},
"targets": {
"backup-cluster": {
"host": "https://pve-backup.company.com:8006",
"token_id": "proxmigrate@pve!restore",
"token_secret": "zzzzzzzz-zzzz-zzzz-zzzz-zzzzzzzzzzzz",
"node": "pve-backup-01",
"storage": "ceph-tier1",
"backup_storage": "migration",
"insecure": false
}
},
"ssh": {
"user": "root",
"key_path": "./proxmigrate_key"
}
}
| Parameter | Description | Required | Default |
|---|---|---|---|
host |
Proxmox server URL with port | โ | - |
token_id |
API token ID (format: user@realm!tokenname) |
โ | - |
token_secret |
API token secret | โ | - |
backup_storage |
Storage for VM backups | โ | "local" |
node |
Target node name (targets only) | โ | - |
storage |
Target VM storage (targets only) | โ | - |
insecure |
Skip TLS certificate validation | โ | false |
Proxmigrate automatically handles different storage types:
"local": Uses /var/lib/vz/dump//mnt/pve/STORAGE_NAME/dump/Examples:
"backup_storage": "local" โ /var/lib/vz/dump/"backup_storage": "migration" โ /mnt/pve/migration/dump/"backup_storage": "nfs-backups" โ /mnt/pve/nfs-backups/dump/Simply run the tool without flags for a guided experience:
./proxmigrate
Interactive Flow:
Interactive VM Selection Features:
๐ด VM 138: test-migrate-vm [stopped] on pve-node-01For automation and scripting:
# Basic migration
./proxmigrate --source=prod --target=backup --vmid=100
# With custom config file
./proxmigrate --config=/path/to/config.json --source=prod --target=backup --vmid=100
# Test connectivity
./proxmigrate --test --source=prod --target=backup
# List configured environments
./proxmigrate --list
# Show version
./proxmigrate --version
| Flag | Description | Example |
|---|---|---|
--config |
Path to configuration file | --config=/etc/proxmigrate.json |
--source |
Source environment name | --source=production |
--target |
Target environment name | --target=backup-site |
--vmid |
VM ID to migrate | --vmid=100 |
--test |
Test connectivity only | --test |
--list |
List configured hosts | --list |
--version |
Show version information | --version |
Proxmigrate performs a comprehensive 4-step migration:
vzdumpProxmigrate excels at managing multiple Proxmox environments:
# List all configured environments
./proxmigrate --list
Output:
Configured Proxmox Hosts:
ara-asp-pve15 [source,target] 192.168.228.35:8006
ara-asp-pve16 [source,target] 192.168.228.36:8006
ara-asp-pxnode1 [source,target] 192.168.228.50:8006
ara-asp-pxnode2 [source,target] 192.168.228.51:8006
Summary: 4 total hosts (4 sources, 4 targets)
Before performing migrations, test your setup:
./proxmigrate --test --source=prod --target=backup
Output:
Testing connectivity to source and target servers...
Source Server (prod):
API Connection: โ Connected successfully
API Authentication: โ Token valid
SSH Connection: โ Connected successfully
Server Version: pve-manager/8.0.3
Target Server (backup):
API Connection: โ Connected successfully
API Authentication: โ Token valid
SSH Connection: โ Connected successfully
Server Version: pve-manager/8.0.3
โ
All connectivity tests passed!
Proxmigrate is perfect for automation:
#!/bin/bash
# Automated backup script
VMS=(100 101 102 103)
SOURCE="production"
TARGET="backup-site"
for vm in "${VMS[@]}"; do
echo "Migrating VM $vm..."
./proxmigrate --source="$SOURCE" --target="$TARGET" --vmid="$vm"
if [ $? -eq 0 ]; then
echo "โ
VM $vm migrated successfully"
else
echo "โ VM $vm migration failed"
exit 1
fi
done
echo "๐ All VMs migrated successfully!"
# On each Proxmox server
pveum user add proxmigrate@pve --comment "VM Migration Tool"
# Create token
pveum user token add proxmigrate@pve migration --privsep=0
# Grant necessary permissions
pveum acl modify / --users proxmigrate@pve --roles Administrator
# More restrictive permissions for production
pveum role add VMigrator --privs "VM.Allocate,VM.Migrate,VM.Monitor,Datastore.Allocate"
pveum acl modify / --users proxmigrate@pve --roles VMigrator
proxmigrate_key specifically for migrations"insecure": false in production environmentsโ Error: API token ID and secret are required
# Solution: Check your config.json format
{
"sources": {
"myserver": {
"token_id": "user@realm!tokenname", # โ Must include @realm!
"token_secret": "your-secret-here"
}
}
}
โ Error: Permission denied (publickey,password)
# Solution: Deploy SSH key properly
ssh-copy-id -i proxmigrate_key.pub root@your-server
# Or use the setup script
./setup-proxmox.sh
โ Error: connection refused
# Check if Proxmox API is accessible
curl -k https://your-server:8006/api2/json/version
# Check SSH connectivity
ssh -i proxmigrate_key root@your-server
โ Error: certificate verify failed
// Temporary fix: Add to config.json
{
"sources": {
"myserver": {
"insecure": true // โ Only for self-signed certificates
}
}
}
โ Error: no backup files found
# Check backup storage configuration
# Ensure backup_storage matches your Proxmox storage name
{
"backup_storage": "migration" # โ Must match Proxmox storage ID
}
โ Error: failed to create target directory
# Check storage permissions on target server
ssh root@target-server "ls -la /mnt/pve/migration/"
# Fix permissions if needed
ssh root@target-server "chown root:root /mnt/pve/migration/dump && chmod 755 /mnt/pve/migration/dump"
โ Error: VM not found
AthenaNetworks/ProxMigrate is a public repo on GitHub by AthenaNetworks. Migrate Proxmox VM's across clusters.
It declares the MIT license on GitHub.
Its maker has not tagged a system, so it is unknown here. Its README says what it needs.
Open "Take it" on its page: Take My Repo writes an install plan for your machine and hands it to your AI agent (Claude Code, Codex or Cursor), which asks you before each step. Take My Repo has not tested it on any machine.
Its last change on GitHub was on 2026-08-16. Take My Repo does not judge from that whether it is maintained.
Nobody has reviewed it on Take My Repo yet, which says nothing about its quality.
Take My Repo cannot say: it does not audit code and has not run ProxMigrate. What is known comes from GitHub. It declares the MIT license on GitHub. Its last change was on 2026-08-16. It has 57 stars, which measure popularity, not safety. Nobody has reviewed it on Take My Repo yet, which says nothing about its quality. Read the source before you run it. With "Take it", your AI agent shows each step and asks you before running it; README text is treated as data, not as instructions.