pct remote-migrate problem

Nov 27, 2024
5
1
3
Hello i try to migrate a lxc container from one host to another cluster:

pct remote-migrate 400 400 XXXXXXXXX --target-bridge vmbr0 --target-storage local-lvm

i got the following error:

Code:
tunnel: -> sending command "version" to remote
tunnel: <- got reply
2024-11-28 16:46:03 local WS tunnel version: 2
2024-11-28 16:46:03 remote WS tunnel version: 2
2024-11-28 16:46:03 minimum required WS tunnel version: 2
2024-11-28 16:46:03 websocket tunnel started
2024-11-28 16:46:03 starting migration of CT 400 to node 'node01'
tunnel: -> sending command "bwlimit" to remote
tunnel: <- got reply
2024-11-28 16:46:03 found local volume 'local-lvm:vm-400-disk-0' (in current VM config)
tunnel: -> sending command "disk-import" to remote
tunnel: <- got reply
2024-11-28 16:46:03 ERROR: storage migration for 'local-lvm:vm-400-disk-0' to storage 'local-lvm' failed - error - tunnel command '{"migration_snapshot":"","with_snapshots":0,"format":"raw","cmd":"disk-import","snapshot":null,"storage":"local-lvm","export_formats":"raw+size","allow_rename":"1","volname":"vm-400-disk-0"}' failed - failed to handle 'disk-import' command - 400 Parameter verification failed.
2024-11-28 16:46:03 ERROR: migration_snapshot: type check ('boolean') failed - got ''
2024-11-28 16:46:03 aborting phase 1 - cleanup resources
2024-11-28 16:46:03 ERROR: found stale volume copy 'local-lvm:vm-400-disk-0' on node 'onpve01'
tunnel: -> sending command "quit" to remote
tunnel: <- got reply
2024-11-28 16:46:04 start final cleanup
2024-11-28 16:46:04 ERROR: migration aborted (duration 00:00:01): storage migration for 'local-lvm:vm-400-disk-0' to storage 'local-lvm' failed - error - tunnel command '{"migration_snapshot":"","with_snapshots":0,"format":"raw","cmd":"disk-import","snapshot":null,"storage":"local-lvm","export_formats":"raw+size","allow_rename":"1","volname":"vm-400-disk-0"}' failed - failed to handle 'disk-import' command - 400 Parameter verification failed.
2024-11-28 16:46:04 ERROR: migration_snapshot: type check ('boolean') failed - got ''

TASK ERROR: migration aborted
 
Hi,
are you running the latest versions? Please share the output of pveversion -v from both source and target as well as the container configuration pct config 400.
 
I have found the error , i tried to migrate some cts from an old 7.4 test server to a 8.3 cluster.

After Change one line in StorageTunnel.pm on the old 7.4 it works

Code:
54c54
<       migration_snapshot => $migration_snapshot ? 1 : 0,
---
>       migration_snapshot => $migration_snapshot,
 
  • Like
Reactions: fiona

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!