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

2015-03-01 Thread Serge Hallyn
Quoting Anjali Kulkarni (anj...@juniper.net): > 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 --packages was a t

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

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