<div dir="ltr">On Sun, Feb 10, 2013 at 5:27 PM, Papp Tamas <span dir="ltr"><<a href="mailto:tompos@martos.bme.hu" target="_blank">tompos@martos.bme.hu</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 02/10/2013 12:06 AM, Fajar A. Nugraha wrote:<div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
On Sun, Feb 10, 2013 at 8:34 AM, Papp Tamas <<a href="mailto:tompos@martos.bme.hu" target="_blank">tompos@martos.bme.hu</a> <mailto:<a href="mailto:tompos@martos.bme.hu" target="_blank">tompos@martos.bme.hu</a>>> wrote:<br>
<br>
On 02/09/2013 12:41 AM, Serge Hallyn wrote:>> Or just suggest a way to modify containers<br>
configuration.<br>
><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>
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>
<br>
<br>
You could simply stop the container, do modifications (e.g. edit /var/lib/lxc/c1/config), and start<br>
it afterwards. Even renaming the containter is usually as simple as moving /var/lib/lxc/c2 -><br>
/var/lib/lxc/c2 and checking some files under that (e.g config, fstab).<br>
<br>
In fact, I create most of my containers by hand, by creating /var/lib/lxc/container_name directory<br>
and copying everything under it from a template (e.g. using "zfs clone") with minor modifications.<br>
<br>
Or is there some other modification that you have in mind?<br>
</blockquote>
<br></div></div>
This doesn't work on Ubuntu 12.04 with lxc 0.7.5-3ubuntu66.<br>
<br>
At least with non-default lxc home (/data/lxc).<span class="HOEnZb"><font color="#888888"><br>
<br></font></span></blockquote><div><br></div><div><br></div><div style>If it doesn't work then IMHO it's a bug.</div><div style><br></div><div style>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.</div>
<div style><br></div><div style>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.</div><div style><br></div>
<div style>-- </div><div style>Fajar</div></div></div></div>