Re: [lxc-users] Installing packages in a container while boot up or via script?

2015-02-28 Thread Anjali Kulkarni
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. Anjali On Feb 28, 2015, at 3:19 PM, "Bostjan Skufca" mailto:bost...@a2o.si>> wrote: If I want to do something like that (i.e. when bootstrappi

[lxc-users] lxc.start.order honored in reverse

2015-02-28 Thread Bostjan Skufca
I understood from man pages that lxc.start.order setting should cause containers to start in ascending order (lower the value, earlier the startup). It turns out that with 1.0.7 this acts more like priority - the higher the value, the sooner container starts. Is anyone else experiencing this with

Re: [lxc-users] Installing packages in a container while boot up or via script?

2015-02-28 Thread Bostjan Skufca
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 ...". This method uses host's network connection, but it requires container's /etc/resolv.conf correctly configured. Also, if

[lxc-users] Installing packages in a container while boot up or via script?

2015-02-28 Thread Anjali Kulkarni
Hi, 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 havin

Re: [lxc-users] User namespaces

2015-02-28 Thread Bostjan Skufca
Hope? :) To get the actual value, one should probably explore uid_t type definition if you want to skip reading sources of the shadow suite. Online search returns this nice and clickable page: http://lxr.free-electrons.com/ident?i=uid_t This leads to "unsigned int" as final definition. On 64-bit

[lxc-users] Default container IPv6 autoconfiguration settings

2015-02-28 Thread Bostjan Skufca
Hi all, I was just debugging some IPv6 connectivity problems and realised that container interfaces do not inherit host's default settings about IPv6 autoconfiguration. More precisely I am talking about these two parameters: - /proc/sys/net/ipv6/conf/*/accept_ra - /proc/sys/net/ipv6/conf/*/autoco

Re: [lxc-users] LXC mounting directories in wrong place

2015-02-28 Thread Anjali Kulkarni
Folks, I figured this out, its because the directory does not exist in the container. Thanks! Anjali From: Anjali Kulkarni mailto:anj...@juniper.net>> Reply-To: LXC users mailing-list mailto:lxc-users@lists.linuxcontainers.org>> Date: Friday, February 27, 2015 at 3:14 PM To: LXC users mailing-li

Re: [lxc-users] User namespaces

2015-02-28 Thread Xavier Gendre
Hi, a priori, no problem with doing that. Simply deal with /etc/subuid and /etc/subgid (on debian-like system, at least). For the limit, I don't know but the man page for newuidmap considers "integers". Thus, we could hope to deal with 2^32=4294967296 ids. In such a case, you have some room t

[lxc-users] User namespaces

2015-02-28 Thread david . andel
Hi, I am looking into individual user namespaces for each container. The first container could have uids and gids from 10 to 165536. The second container could have 20 to 265536, couldn't it? How far can I go? Is there a limit? Thanks, David ___