[lxc-users] How to bring up a container from rootfs tarball

Fajar A. Nugraha list at fajar.net
Thu Aug 14 05:52:56 UTC 2014


On Thu, Aug 14, 2014 at 12:13 PM, Nobin Mathew <nobin.mathew at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140814/c6cb5a05/attachment.html>


More information about the lxc-users mailing list