Subject: Re: [vserver] Application containers
From: Nirmal Guhan <vavatutu@gmail.com>
Date: Thu, 10 Jun 2010 11:39:14 -0700
Thu, 10 Jun 2010 11:39:14 -0700
On Thu, Jun 10, 2010 at 11:20 AM, Michael S. Zick <mszick@morethan.org>wrote:

> On Thu June 10 2010, Nirmal Guhan wrote:
> > On Thu, Jun 10, 2010 at 3:16 AM, Jon Bendtsen <jbendtsen@laerdal.dk>
> wrote:
> >
> > > On 10/06/2010, at 04.32, Nirmal Guhan wrote:
> > >
> > > > Hi,
> > > >
> > > > Does vserver provide any method for application virtualization (for
> > > instance, lxc can create application containers) ? Please let me know.
> > >
> > > You could make a ultra minimal guest installation which basicly is just
> > > your application and some needed libraries.
> > >
> > >
> > > JonB
> > >
> >
> > Thanks. I assume I would also need the init files (inittab, rc.x etc.)
> for
> > this to work?
> >
>
> A staticly linked copy of a stripped down Busybox should do the job.
> Just be sure to enable a shell (ash?), init, mdev and <as required>
> after doing an "all no" config.


Will try this.

>
> That would be pretty small, a few Mbytes probably.
> How much overhead does using lxc add to the guest image?
>

Actually nothing. I just build the application the usual way and then use
lxc-execute to run it as container. I don't need rootfs or a guest image for
that matter.

>
> And you could share that Busybox across guests.
>
> Mike
> > --Nirmal
> >
>
>
>


On Thu, Jun 10, 2010 at 11:20 AM, Michael S. Zick <mszick@morethan.org> wrote:
On Thu June 10 2010, Nirmal Guhan wrote:
> On Thu, Jun 10, 2010 at 3:16 AM, Jon Bendtsen <jbendtsen@laerdal.dk> wrote:
>
> > On 10/06/2010, at 04.32, Nirmal Guhan wrote:
> >
> > > Hi,
> > >
> > > Does vserver provide any method for application virtualization (for
> > instance, lxc can create application containers) ? Please let me know.
> >
> > You could make a ultra minimal guest installation which basicly is just
> > your application and some needed libraries.
> >
> >
> > JonB
> >
>
> Thanks. I assume I would also need the init files (inittab, rc.x etc.) for
> this to work?
>

A staticly linked copy of a stripped down Busybox should do the job.
Just be sure to enable a shell (ash?), init, mdev and <as required>
after doing an "all no" config.

Will try this.

That would be pretty small, a few Mbytes probably.
How much overhead does using lxc add to the guest image?

Actually nothing. I just build the application the usual way and then use lxc-execute to run it as container. I don't need rootfs or a guest image for that matter.

And you could share that Busybox across guests.

Mike
> --Nirmal
>