Moving lxc image

jkalousek

Renowned Member
Aug 28, 2016
41
0
71
So I'm unable to figure out, what should be simple operation.
I have setup ZFS raid 1 pool with some CT's. Now after some testing I want to move them to newly created ZFS sub file system (similar structure as https://pve.proxmox.com/wiki/Storage:_ZFS#Adding_ZFS_root_file-system_as_storage_with_Plugin except mine is not on local).
As far as I know there isn't any option for this in gui, but with cli I know how to move the container manually but how to reattach them back to vm?

Can anyone tell me how should this be done correctly, because I can't find anything about it on wiki.
Thanks!
 
Last edited:
I now know not exactly your situation but normaly it is enough to change the path in config like this:
Code:
rootfs: volume=v-machines:subvol-110-disk-1,size=8G
Code:
rootfs: volume=<newpaht:newfile>,size=8G
Sorry i don't know syntax of not ZFSsystems, but i think the line is the same. If necessary create a new lxc and look at this line.
 
I now know not exactly your situation but normaly it is enough to change the path in config like this:
Code:
rootfs: volume=v-machines:subvol-110-disk-1,size=8G
Code:
rootfs: volume=<newpaht:newfile>,size=8G
Sorry i don't know syntax of not ZFSsystems, but i think the line is the same. If necessary create a new lxc and look at this line.

So simply coping container to different location and changing config file of CT works - to certain degree.
Newly copied container will not aper in GUI, and in general Proxmox doesn't seam to know about this movement at all.

There is command "pct clone" but I can't find documentation for what options it actually takes.
 
Now I tried:

Code:
pct clone 102 101 -experimental true -storage vmContainer
(101 is not used)

and got error:
Code:
400 Parameter verification failed.
full: missing property - 'storage' requiers this property

What am I missing now?