<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 7, 2017 at 10:43 PM, RayFerguson <span dir="ltr"><<a href="mailto:subscriber@share-foo.com" target="_blank">subscriber@share-foo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I'm cheap, so I don't have great storage on my dev boxes and I have some custom templates that I want in my images.  My current process is something like.<div><br></div><div>lxc publish contain --alias=foo</div><div>lxc image export foo</div><div>....</div><div>extract metadata, add templates, mod the metadata.yaml, create meta.tgz and root.tgz</div><div><div>...</div><div>lxc image import meta.tgz root.tgz</div><div><br></div><div>You can see where this is painfully inefficient.  Not only do I decompress and recompress, lxd does the same thing and more several times causing more I/O coffee breaks than my old bladder can handle.</div><div><br></div><div>Is there any shortcut to just modify the metadata.yaml and templates of an existing image without the export->decompress->monkey-><wbr>recompress->import?</div><div><br></div><div>I've been tempted to try monkeying the files directly in /var/lib/lxd/images, but I'm not sure if that would corrupt it by changing some integrity checksum or something?</div></div></div></blockquote><div><br></div><div><br></div><div><div>Have you tried using zfs backend (or btrfs), and simpy use "lxc copy" (using a container as your 'template') instead of publish-launch?</div></div><div><br></div><div>launch (image -> container) and copy (container -> container) should use zfs snapshot, with near-zero I/O load. publish (containter -> image) does not.</div><div><br></div><div>-- </div><div>Fajar</div></div></div></div>