Copy lxc container
31 Jan 2017How to copy lxc container between to lxc hosts.
- Configure remote lxc - enable listening on all interfaces and setup password:
lxc config set core.https_address [::]:8443 lxc config set core.trust_password PASSWORD
- Enable listening on all interfaces on local lxc
lxc config set core.https_address [::]:8443
- Add remote lxc
lxc remote add LXC_REMOTE_NAME IP
- Make a container snapshot
lxc snapshot CONTAINER current
- Copy lxc container from local lxc to remote
lxc copy CONTAINER:current LXC_REMOTE_NAME:CONTAINER