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

turin231

Member
Apr 20, 2020
20
3
8
40
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

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!