<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote">On Sun, Feb 10, 2013 at 8:34 AM, Papp Tamas <span dir="ltr"><<a href="mailto:tompos@martos.bme.hu" target="_blank">tompos@martos.bme.hu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 02/09/2013 12:41 AM, Serge Hallyn wrote:>> Or just suggest a way to modify containers configuration.<br>
</div><div class="im">
><br>
> Sorry, can you elaborate?  You can modify configuration using the<br>
> API (in C, python, or, iiuc, lua).  You can edit the configuration<br>
> file by hand...  If there is more you'd like, please do propose it,<br>
> sounds interesting.<br>
<br>
</div>Right now when the configuration file is modified, the container has to be recreated to take it<br>
effect. Restart is not enough.<br>
Do I (we) miss something?<br>
<br></blockquote><div><br></div><div><br></div><div style>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).</div>
<div style><br></div><div style>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.</div>
<div style><br></div><div style>Or is there some other modification that you have in mind?</div><div style><br></div><div style>-- </div><div style>Fajar</div></div></div></div>