ossobv / proxmove

Migrate virtual machines between different Proxmox VE clusters with minimal downtime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot move VM to other node in same cluster

vilitux opened this issue · comments

Migrating a VM to another node in the same cluster results in the following:

error: VM 'my-vm' exists on destination already
aborting

There's a hidden feature --ignore-exists which is not displayed in the help menu, which allows you to move it.

since nobody answered yet.

yes ofc this doesnt work. why would you need proxmove for that? moving within nodes on the same cluster is done with promox itself, way better and easier

this is a script to help yu between different independent prmox installations that ARE NOT in a cluster.
what you try todo cannot work. every node in a cluster has all the VM information replicated.
this script trys to insert the one from source so you basically try to overwrite it from the same source

this should be clear just by reading the instructions

This script works fine for migrating between hosts in the same proxmox cluster, as long as you know the hidden options (like --ignore-exists). In some of our clusters where all nodes have local ZFS storage, migration doesn't work out of the box via proxmox.. this is more a request to add the --ignore-exists to the help menu I guess :-).

--- -h	2020-01-16 16:58:10.401711123 +0100
+++ -h	2020-01-16 16:58:14.041729701 +0100
@@ -1,5 +1,6 @@
-usage: proxmove [-h] [-c FILENAME] [-n] [--bwlimit MBPS] [--no-verify-ssl]
-                [--skip-disks] [--skip-start] [--version]
+usage: proxmove [-c FILENAME] [-n] [--bwlimit MBPS] [--no-verify-ssl]
+                [--skip-disks] [--skip-start] [--debug] [--ignore-exists] [-h]
+                [--version]
                 source destination nodeid storage vm [vm ...]
 
 Migrate VMs from one Proxmox cluster to another.
@@ -12,7 +13,6 @@ positional arguments:
   vm                    one or more VMs (guests) to move
 
 optional arguments:
-  -h, --help            show this help message and exit
   -c FILENAME, --config FILENAME
                         use alternate configuration inifile
   -n, --dry-run         stop before doing any writes
@@ -21,6 +21,13 @@ optional arguments:
   --skip-disks          do the move, but skip copying of the disks; implies
                         --skip-start
   --skip-start          do the move, but do not start the new instance
+
+debug arguments:
+  --debug               enables extra debug logging
+  --ignore-exists       continue, even though the VM name exists on the target
+
+other actions:
+  -h, --help            show this help message and exit
   --version             show program's version number and exit
 
 Cluster aliases and storage locations should be defined in ~/.proxmoverc (or