With https://github.com/lxc/lxc/pull/67 merged, I think we can look at exposing this to juju. In the case of btrfs, the cloning would be automatic if /var/lib/lxc is btrfs AIUI.
For thin-provisioning we'd have to create the initial container into a thin-provisioned pool. We could assume a thin-provisioned lvm pool named 'juju' and check for it's existence, with a way to make it possible to customize that name. btrfs would still have precedence.
With https:/ /github. com/lxc/ lxc/pull/ 67 merged, I think we can look at exposing this to juju. In the case of btrfs, the cloning would be automatic if /var/lib/lxc is btrfs AIUI.
For thin-provisioning we'd have to create the initial container into a thin-provisioned pool. We could assume a thin-provisioned lvm pool named 'juju' and check for it's existence, with a way to make it possible to customize that name. btrfs would still have precedence.