qm remote-migration - 400 Parameter verification failed

Undergrid

Well-Known Member
Jul 15, 2018
31
3
48
49
I'm trying to migrate some VM's from an old server to a new one and I'm getting the following error and dispite searching, I've no idea what's going wrong.

Code:
ERROR: migration_snapshot: type check ('boolean') failed - got ''

My migrate command looks like this some values <redacted>:

Code:
qm remote-migrate 500 500 'apitoken=PVEAPIToken=root@pam!vmtransfer=<api-key>,host=quinn2.<domain>,port=8006' --target-bridge vmbr1 --target-storage disk  --bwlimit 51200

The API token has all the privileges, the target host has a valid SSL cert and the VM being transfered is stopped. Full logs from the command line are below.
Anyone know what's wrong?

Code:
Establishing API connection with remote at 'quinn2.<domain>'
2024-11-16 01:59:43 remote: started tunnel worker 'UPID:quinn2:00003A76:00093B1C:6737EE7F:qmtunnel:500:root@pam!vmtransfer:'
tunnel: -> sending command "version" to remote
tunnel: <- got reply
2024-11-16 01:59:43 local WS tunnel version: 2
2024-11-16 01:59:43 remote WS tunnel version: 2
2024-11-16 01:59:43 minimum required WS tunnel version: 2
websocket tunnel started
2024-11-16 01:59:43 starting migration of VM 500 to node 'quinn2' (quinn2.<domain>)
tunnel: -> sending command "bwlimit" to remote
tunnel: <- got reply
tunnel: -> sending command "bwlimit" to remote
tunnel: <- got reply
2024-11-16 01:59:43 found local disk 'data:vm-500-disk-0' (attached)
2024-11-16 01:59:43 found local disk 'data:vm-500-disk-1' (attached)
2024-11-16 01:59:43 copying local disk images
tunnel: -> sending command "disk-import" to remote
tunnel: <- got reply
2024-11-16 01:59:43 ERROR: error - tunnel command '{"cmd":"disk-import","with_snapshots":0,"export_formats":"raw+size","volname":"vm-500-disk-0","format":"raw","allow_rename":"1","storage":"data","migration_snapshot":"","snapshot":null}' failed - failed to handle 'disk-import' command - 400 Parameter verification failed.
2024-11-16 01:59:43 ERROR: migration_snapshot: type check ('boolean') failed - got ''
2024-11-16 01:59:43 aborting phase 1 - cleanup resources
tunnel: -> sending command "quit" to remote
tunnel: <- got reply
2024-11-16 01:59:44 ERROR: migration aborted (duration 00:00:01): error - tunnel command '{"cmd":"disk-import","with_snapshots":0,"export_formats":"raw+size","volname":"vm-500-disk-0","format":"raw","allow_rename":"1","storage":"data","migration_snapshot":"","snapshot":null}' failed - failed to handle 'disk-import' command - 400 Parameter verification failed.
2024-11-16 01:59:44 ERROR: migration_snapshot: type check ('boolean') failed - got ''
migration aborted
 
The vm needs to be running.
 
  • Like
Reactions: Undergrid
The vm needs to be running.
Wierd, wonder why there's the "--online" options then.

But that worked for that one, but the next one I attempted with the VM running gives the same error as the previous with the VM stopped.

Edit: Never mind, that VM had an unused disk associated with it which caused the error. This stuff seems fragile.

Thanks jsterr.
 
Last edited:
  • Like
Reactions: jsterr

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!