[SOLVED] Is it possible to move a disk image to a different container?

turin231

Member
Apr 20, 2020
23
5
23
41
So my question is this: If i have a LXC with a disk raw image mounted. Is it possible for that disk image to unmount it from that container and move/remount it on a different LXC container and retain the data inside?

Thanks!
 
hi,

yes you can. how is the disk mounted on the container?
 
one way of doing this then:

* cat /etc/pve/lxc/CTID.conf
* copy the line for the mountpoint
* on GUI detach the mountpoint
* vim /etc/pve/lxc/TARGET-CTID.conf
* add the mountpoint line

make sure the volume isn't being used by both of them at the same time
 
  • Like
Reactions: turin231