On Wed, Sep 9, 2015 at 12:43 AM, Dan Kegel <d...@kegel.com> wrote:
> Short story: I had to update lxc-templates *and* nuke
> /var/cache/lxc/fedora before I could
> create fully-working fedora guests.

> $ sudo lxc-create -n fedora22 -t fedora  -- -R 22

So you use fedora template


> So maybe installing a new templates package should clear that cache...?


IIRC the long term strategy was to promote the download template.

The download template would automatically check whether a downloaded
cache is uptodate, and if it's old enough it would download a new one
(not "upgrading" it in-place, which could lead to problems, like
you've discovered). Aside from being faster to install (from end-user
perspective), it's also immnue to host-distro/package-manager
combination quirks (e.g. using yum from ubuntu is not ideal, which is
why the fedora template first download a live image and use chroot
enviroment from that)

Distro-specific templates should then primarily be used to populate
lxc image repository used by the download template.

-- 
Fajar
_______________________________________________
lxc-users mailing list
lxc-users@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-users

Reply via email to