[lxc-users] How to copy "manually" a container ?

Pierre Couderc pierre at couderc.eu
Thu Aug 23 07:07:30 UTC 2018


On 08/23/2018 07:37 AM, Tamas Papp wrote:
>
> On 08/23/2018 05:36 AM, Pierre Couderc wrote:
>> If for any reason, "lxc copy" does not work, is it enough to copy 
>> (rsync) /var/lib/lxd/containers/xxxx to another lxd on another 
>> computer in /var/lib/lxd/containers/ ?
>
> Copy the folder (watch out rsync flags) to 
> /var/lib/lxd/storage-pools/default/containers/, symlink to 
> /var/lib/lxd/containers and run 'lxd import'.
>
Thank you very much. It nearlu worked.
Anyway, it fails (in this case) because :
Error: The storage pool's "default" driver "dir" conflicts with the 
driver "btrfs" recorded in the container's backup file
...
Thank you anyway
PC


More information about the lxc-users mailing list