Migration between PVE and PVE cluster

Singman

Active Member
Sep 13, 2019
20
0
41
57
Hi,

I've created a cluster of 3x PVE nodes and attached Cepth storage.
My old PVE is a single host with a ZFS local storage.

The challenge is to "migrate" (but it's not a simple migration) CT and VM from the old PVE to the cluster.

How to do that ?
I've tried to copy the storage of a test CT to the Cepth pool but don't know how to move the CT and reconfigure it.
 
Damn syntax of this command, not the easiest one !
The new try :
Bash:
root@pve2:~# qm remote-migrate 110 110 'apitoken=PVEAPIToken=root@pam!token=a9d3e2cc-9bdd-45be-a562-09b96bc941fb,host=192.168.0.14,fingerprint=69:0D:30:7B:14:B7:62:41:FE:75:1
7:8E:B4:9C:50:63:BE:0B:C6:36:55:08:0B:D9:C4:A3:D9:81:9F:1B:36:0E' --target-bridge vmbr0 --target-storage Ceph-disks-pool                                                      
401 no such token 'token' for user 'root@pam'
 
Last edited:
Still trying...
Added the right permission to my token.
But I have a question about the format of apitoken parameter :
PVEAPIToken=root@pam!token=xxxxxxxxxxxxxxxxxx'
I have a doubt about the format, while my token is like that :
user name : root@pam​
Token Name : migration-token​
 
Ok, qm is for VM, I wanna do it for CT, so ->
Bash:
root@pve2:~# pct remote-migrate 110 120 'apitoken=PVEAPIToken=root@pam!migration-token=a9d3e2cc-9bdd-45be-a562-09b96bc941fb,host=192.168.0.14,fingerprint=69:0D:30:7B:14:B7:62
:41:FE:75:17:8E:B4:9C:50:63:BE:0B:C6:36:55:08:0B:D9:C4:A3:D9:81:9F:1B:36:0E' --target-bridge vmbr0 --target-storage Ceph-disks-pool
Establishing API connection with remote at '192.168.0.14'
2024-09-29 21:11:43 remote: started tunnel worker 'UPID:pve1:0005D769:009D59E5:66F9A66F:vzmtunnel:120:root@pam!migration-token:'
tunnel: -> sending command "version" to remote
tunnel: <- got reply
2024-09-29 21:11:43 local WS tunnel version: 2
2024-09-29 21:11:43 remote WS tunnel version: 2
2024-09-29 21:11:43 minimum required WS tunnel version: 2
2024-09-29 21:11:43 websocket tunnel started
2024-09-29 21:11:43 starting migration of CT 110 to node 'pve1' (192.168.0.14)
tunnel: -> sending command "bwlimit" to remote
tunnel: <- got reply
tunnel: -> sending command "bwlimit" to remote
tunnel: <- got reply
2024-09-29 21:11:43 found local volume 'Ceph-disks-pool:vm-110-disk-0' (in current VM config)
2024-09-29 21:11:43 found local volume 'ZFS-disks:subvol-110-disk-0' (in current VM config)
2024-09-29 21:11:43 can't migrate local volume 'Ceph-disks-pool:vm-110-disk-0': storage type 'rbd' not supported
2024-09-29 21:11:43 ERROR: can't migrate CT - check log
2024-09-29 21:11:43 aborting phase 1 - cleanup resources
tunnel: -> sending command "quit" to remote
tunnel: <- got reply
2024-09-29 21:11:44 start final cleanup
2024-09-29 21:11:44 ERROR: migration aborted (duration 00:00:01): can't migrate CT - check log
migration aborted

Can you confirm I should go to CepthFS for migration ?
 
Last edited:

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!