move storage of templates and clones?

m.ardito

Famous Member
Feb 17, 2010
1,473
18
103
Torino, Italy
Hi,

I tried a template and linked cloning, and now I need to move their storage elsewhere

template has
virtio0: iso_qnap:110/base-110-disk-1.qcow2,format=qcow2,size=8G

and linked clone
virtio0: iso_qnap:110/base-110-disk-1.qcow2/112/vm-112-disk-1.qcow2,format=qcow2,size=8G

How to handle storage move in order to keep linked clones working?

Marco
 
yes, but in order to move them to other storage how can I do? I guess I'll have to
- stop vm clones
- move template storage (qm move, from the web gui?) to new share
- then? will "qm move" work for clones? and fomr web gui too?

or I have to move clone storage manually? like
- first move (qm move from cli) 112/vm-112-disk-1.qcow2
- then edit 112.conf to reflect new storage (base and vm clone own)

Or (any simpler way)?

Marco
 
To be honest I don't think it is supported to move a linked clone since the linking of a clone to a base image might involve storage specific features which likely will not be transferable to another storage. Think of a linked clone like a hardlink in a file system (a hardlink cannot span partitions).