[Lxc-users] lxc-destroy erase rootfs
Fajar A. Nugraha
list at fajar.net
Sun Feb 10 06:34:00 UTC 2013
On Sun, Feb 10, 2013 at 5:27 PM, Papp Tamas <tompos at martos.bme.hu> wrote:
> On 02/10/2013 12:06 AM, Fajar A. Nugraha wrote:
>
>
>> On Sun, Feb 10, 2013 at 8:34 AM, Papp Tamas <tompos at martos.bme.hu<mailto:
>> tompos at martos.bme.hu>> wrote:
>>
>> On 02/09/2013 12:41 AM, Serge Hallyn wrote:>> Or just suggest a way
>> to modify containers
>> configuration.
>> >
>> > Sorry, can you elaborate? You can modify configuration using the
>> > API (in C, python, or, iiuc, lua). You can edit the configuration
>> > file by hand... If there is more you'd like, please do propose it,
>> > sounds interesting.
>>
>> Right now when the configuration file is modified, the container has
>> to be recreated to take it
>> effect. Restart is not enough.
>> Do I (we) miss something?
>>
>>
>>
>> You could simply stop the container, do modifications (e.g. edit
>> /var/lib/lxc/c1/config), and start
>> it afterwards. Even renaming the containter is usually as simple as
>> moving /var/lib/lxc/c2 ->
>> /var/lib/lxc/c2 and checking some files under that (e.g config, fstab).
>>
>> In fact, I create most of my containers by hand, by creating
>> /var/lib/lxc/container_name directory
>> and copying everything under it from a template (e.g. using "zfs clone")
>> with minor modifications.
>>
>> Or is there some other modification that you have in mind?
>>
>
> This doesn't work on Ubuntu 12.04 with lxc 0.7.5-3ubuntu66.
>
> At least with non-default lxc home (/data/lxc).
>
>
If it doesn't work then IMHO it's a bug.
I actually suggest you start a new thread, stating how you create your test
container from scratch in non-default rootfs location, and describe what
doesn't work.
If you can create it from scratch then you should be able to do whatever
modifications you need and have it picked up the next time the container is
stopped-started.
--
Fajar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130210/3354c33d/attachment.html>
More information about the lxc-users
mailing list