Cannot migrate VPS from one cluster to another cluster when cloudinit is enabled

redium

Active Member
Dec 16, 2019
28
0
41
38
Hi,

Can some one help me with my issue when i'm trying to migrate from one cluster to another and the VPS had cloudinit enabled its not working.
When cloudinit is not enabled then its working.

Code:
2025-07-25 12:39:36 remote: started tunnel worker 'UPID:pmx08:00195A81:4D239D47:68835EE8:qmtunnel:2008:root@pam!pdm-admin:'
tunnel: -> sending command "version" to remote
tunnel: <- got reply
2025-07-25 12:39:36 local WS tunnel version: 2
2025-07-25 12:39:36 remote WS tunnel version: 2
2025-07-25 12:39:36 minimum required WS tunnel version: 2
websocket tunnel started
2025-07-25 12:39:36 starting migration of VM 2008 to node 'pmx08' (10.10.120.228)
tunnel: -> sending command "bwlimit" to remote
tunnel: <- got reply
tunnel: -> sending command "bwlimit" to remote
tunnel: <- got reply
2025-07-25 12:39:36 found generated disk 'data01:vm-2008-cloudinit' (in current VM config)
2025-07-25 12:39:36 found local disk 'data01:vm-2008-disk-0' (attached)
2025-07-25 12:39:36 copying local disk images
tunnel: -> sending command "disk-import" to remote
tunnel: <- got reply
2025-07-25 12:39:36 ERROR: error - tunnel command '{"migration_snapshot":1,"with_snapshots":1,"export_formats":"zfs","storage":"data01","cmd":"disk-import","allow_rename":"1","format":"raw","snapshot":"__migration__","volname":"vm-2008-cloudinit"}' failed - failed to handle 'disk-import' command - no matching import/export format found for storage 'data01'
2025-07-25 12:39:36 aborting phase 1 - cleanup resources
tunnel: -> sending command "quit" to remote
tunnel: <- got reply
2025-07-25 12:39:37 ERROR: migration aborted (duration 00:00:01): error - tunnel command '{"migration_snapshot":1,"with_snapshots":1,"export_formats":"zfs","storage":"data01","cmd":"disk-import","allow_rename":"1","format":"raw","snapshot":"__migration__","volname":"vm-2008-cloudinit"}' failed - failed to handle 'disk-import' command - no matching import/export format found for storage 'data01'
TASK ERROR: migration aborted
 
please post the VM config, storage.cfg from both sides and the mgiration parameters..
 
Server 1 source


Code:
cat storage.cfg
dir: local
        path /var/lib/vz
        content vztmpl,iso,backup

zfspool: local-zfs
        pool rpool/data
        content rootdir,images
        sparse 1

zfspool: data01
        pool data01
        content images,rootdir
        mountpoint /data01
        nodes pmx07,pmx06,pmx05
        sparse 0

Server 2 destination
Code:
cat storage.cfg
dir: local
        path /var/lib/vz
        content backup,vztmpl,iso
        shared 1

lvmthin: local-lvm
        thinpool data
        vgname pve
        content images,rootdir

lvmthin: data01
        thinpool data01
        vgname data01
        content images,rootdir
        nodes pmx08


Migration what i see on the source server in the logs

Code:
2025-07-25 12:39:36 remote: started tunnel worker 'UPID:pmx08:00195A81:4D239D47:68835EE8:qmtunnel:2008:root@pam!pdm-admin:'
tunnel: -> sending command "version" to remote
tunnel: <- got reply
2025-07-25 12:39:36 local WS tunnel version: 2
2025-07-25 12:39:36 remote WS tunnel version: 2
2025-07-25 12:39:36 minimum required WS tunnel version: 2
websocket tunnel started
2025-07-25 12:39:36 starting migration of VM 2008 to node 'pmx08' (pmx08.infra.domain.ext)
tunnel: -> sending command "bwlimit" to remote
tunnel: <- got reply
tunnel: -> sending command "bwlimit" to remote
tunnel: <- got reply
2025-07-25 12:39:36 found generated disk 'data01:vm-2008-cloudinit' (in current VM config)
2025-07-25 12:39:36 found local disk 'data01:vm-2008-disk-0' (attached)
2025-07-25 12:39:36 copying local disk images
tunnel: -> sending command "disk-import" to remote
tunnel: <- got reply
2025-07-25 12:39:36 ERROR: error - tunnel command '{"migration_snapshot":1,"with_snapshots":1,"export_formats":"zfs","storage":"data01","cmd":"disk-import","allow_rename":"1","format":"raw","snapshot":"__migration__","volname":"vm-2008-cloudinit"}' failed - failed to handle 'disk-import' command - no matching import/export format found for storage 'data01'
2025-07-25 12:39:36 aborting phase 1 - cleanup resources
tunnel: -> sending command "quit" to remote
tunnel: <- got reply
2025-07-25 12:39:37 ERROR: migration aborted (duration 00:00:01): error - tunnel command '{"migration_snapshot":1,"with_snapshots":1,"export_formats":"zfs","storage":"data01","cmd":"disk-import","allow_rename":"1","format":"raw","snapshot":"__migration__","volname":"vm-2008-cloudinit"}' failed - failed to handle 'disk-import' command - no matching import/export format found for storage 'data01'
TASK ERROR: migration aborted
 
ZFS currently only supports offline migration to ZFS, and the cloudinit volume is always offline migrated. you can move it over to your local storage, then migration should work.
 
  • Like
Reactions: redium
Thank you,
How can i move cloudinit volume to local storage without shutdown that VPS.
I have only the option to remove or add for the cloudinit in the hardware tab of the VPS
 
I don't think that is possible at the moment on the UI, but it should work with `qm disk move ..`