On Thu, Aug 14, 2014 at 12:13 PM, Nobin Mathew <nobin.mat...@ericsson.com> wrote: > Hi All, > > Can you shed some info(or links) on bringing up a container, where I want to > use some root filesystem,(which is basically tarball i.e. tar.gz). > > I don't want to use the apt/rpms.
Have you looked at the download template? lxc-create -t download -n YOUR_CONTAINER_NAME You'll get a list of distros/versions to choose: --- DIST RELEASE ARCH VARIANT BUILD --- centos 6 amd64 default 20140814_02:16 centos 6 i386 default 20140814_02:16 debian jessie amd64 default 20140813_22:42 debian jessie armel default 20140813_22:42 debian jessie armhf default 20140813_22:42 debian jessie i386 default 20140813_22:42 debian sid amd64 default 20140813_22:42 debian sid armel default 20140813_22:42 debian sid armhf default 20140813_22:42 debian sid i386 default 20140813_22:42 debian wheezy amd64 default 20140813_22:42 debian wheezy armel default 20140813_22:42 debian wheezy armhf default 20140813_22:42 debian wheezy i386 default 20140813_22:42 oracle 6.5 amd64 default 20140813_11:40 oracle 6.5 i386 default 20140813_11:40 plamo 5.x amd64 default 20140730_15:47 plamo 5.x i386 default 20140730_15:47 ubuntu lucid amd64 default 20140814_03:49 ubuntu lucid i386 default 20140814_03:49 ubuntu precise amd64 default 20140814_03:49 ubuntu precise armel default 20140814_03:49 ubuntu precise armhf default 20140813_03:49 ubuntu precise i386 default 20140814_03:49 ubuntu trusty amd64 default 20140814_03:49 ubuntu trusty arm64 default 20140814_03:49 ubuntu trusty armhf default 20140814_03:49 ubuntu trusty i386 default 20140814_03:49 ubuntu trusty ppc64el default 20140814_03:49 ubuntu utopic amd64 default 20140814_03:49 ubuntu utopic arm64 default 20140814_03:49 ubuntu utopic armhf default 20140814_03:49 ubuntu utopic i386 default 20140814_03:49 ubuntu utopic ppc64el default 20140814_03:49 It will then download the necessary image and do the needed configuration, without using rpm/apt/whatever-package-management-in-that-OS. If you have your OWN root image (e.g. dump from a server), then it's a different story. Look at each template to see what modifications are needed. For ubuntu, see configure_ubuntu() on /usr/share/lxc/templates/lxc-ubuntu. -- Fajar
_______________________________________________ lxc-users mailing list lxc-users@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-users