<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body dir="auto">
<div>Thanks. I thought I will run a script on the container startup which will do the install and other steps... Hopefully the hooks will allow me to do so.</div>
<div><br>
</div>
<div>Anjali<br>
<br>
On Feb 28, 2015, at 3:19 PM, "Bostjan Skufca" <<a href="mailto:bostjan@a2o.si">bostjan@a2o.si</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<div dir="ltr">If I want to do something like that (i.e. when bootstrapping custom linux system as LXC guest), I just chroot into newly-created container root and do the "apt-get install ...".
<div><br>
</div>
<div>This method uses host's network connection, but it requires container's /etc/resolv.conf correctly configured. Also, if you are using subuid/gids, pay attention when you do this procedure (generally before uidmapshift step).
<div><br>
</div>
<div>b.</div>
<div><br>
</div>
</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On 28 February 2015 at 23:54, Anjali Kulkarni <span dir="ltr">
<<a href="mailto:anjali@juniper.net" target="_blank">anjali@juniper.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>Hi,</div>
<div><br>
</div>
<div>Is there a way to install packages (like bridge utils etc) on some template like ubuntu while creating it via lxc-create? I read somewhere about --packages command but don’t seem to find it anywhere. I want to create a container and install packages on
 it via a script without manually having to login to the container.</div>
<div><br>
</div>
<div>Thanks</div>
<span class="HOEnZb"><font color="#888888">
<div>Anjali</div>
</font></span></div>
<br>
_______________________________________________<br>
lxc-users mailing list<br>
<a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a><br>
<a href="http://lists.linuxcontainers.org/listinfo/lxc-users" target="_blank">http://lists.linuxcontainers.org/listinfo/lxc-users</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>lxc-users mailing list</span><br>
<span><a href="mailto:lxc-users@lists.linuxcontainers.org">lxc-users@lists.linuxcontainers.org</a></span><br>
<span><a href="http://lists.linuxcontainers.org/listinfo/lxc-users">http://lists.linuxcontainers.org/listinfo/lxc-users</a></span></div>
</blockquote>
</body>
</html>