On 06/12/12 17:10, Serge Hallyn wrote:
> Quoting John (l...@jelmail.com):
>> On 05/12/12 21:59, Serge Hallyn wrote:
>>> You have to specify a template, i.e. '-t debian'.
>>>
>> Oh. I wasn't using a template.
>>
>> Up to now, I have an existing root fileyststem, say
>> /srv/lxc/mycontainer.x86_64 that is pointed to by my configuration
>> file, say mycontainer.conf, by its lxc.rootfs entry. I have seen
>> lxc-create as merely inserting the config from mycontainer.conf into
>> /var/lib/lxc/mycontainer/config and nothing more.
>>
>> I haven't used a template script to create a container because I've
>> got my own that I have been using ever since I first started using
>> lxc (there were no templates back then, well not for arch anyway!).
>>
>> I've always done a destroy/create to update the LXC configuration
>> for a container. This now seems to be the wrong way given destroy
>> removes the rootfs and create expects a template. What's the new way
>> ?
>>
>> I've looked at the man page for lxc-create but am none the wiser.
>> How do I now create a container (or just update the config) for an
>> existing root filesystem ?
> Hm, I see.  Yeah this behavior likely changed with the introduction
> of custom template paths.
>
> Perhaps we should allow '-t none' for exactly your use case.
>
> Stéphane?
>
> -serge
>
Or perhaps, allow leaving off the -t unless you want to work with a 
template ?
(kind of like it's been to date). Would that not work ?

------------------------------------------------------------------------------
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to