Small distro for DomU?

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Small distro for DomU?

Tim Hudoba

Hello all,

 

I'm trying to create a very small domU that will act as an SSH access point.  I'm trying to find a good distro that will run as "little" (less mem, less hdd space, less pkgs installed) as possible.

 

Because I'm running Dom0 from FC4 I'm only familiar with the 2.6 kernels.  This excludes DSL & Puppy Linux as I do not have a compiled 2.4 XenU kernel.

 

ttylinux looks like it will work for a text based access point, however I would like to run a vncserver within domU (tunneling it through ssh of course).  Because of this I will need a small Xwin mgr. installed (fluxbox).

 

In my opinion a "Core" install of FC4 is too big ~500Meg and it has a lot of packages I feel are not needed in domU.  Because of this I'm looking to run something other than FC4 in domU.

 

My questions are:

Does anyone know of a good secure minimal distro with 2.6 kernel and X capabilities?

  or

What techniques have you used to create a minimal image?

 

Thanks much for any help

This electronic mail (including any attachments) may contain information that is privileged, confidential, and/or otherwise protected from disclosure to anyone other than its intended recipient(s). Any dissemination or use of this electronic email or its contents (including any attachments) by persons other than the intended recipient(s) is strictly prohibited. If you have received this message in error, please notify us immediately by reply email so that we may correct our internal records. Please then delete the original message (including any attachments) in its entirety. Thank you.


_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xensource.com/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: Small distro for DomU?

Chris de Vidal
--- Tim Hudoba <[hidden email]> wrote:
> Does anyone know of a good secure minimal distro with 2.6 kernel and X
> capabilities?

How 'bout Deb Sarge?  Woody was approximately 110MB, dunno how small Sarge is
but it can't be very big.

Do a minimal install and
apt-get install kernel-image-2.6-686 # Or whatever your arch... apt-cache
search kernel-image to get a list

apt-get install x-window-system


Second bet would be Slack, though I dunno if they have a 2.6 kernel package
(I'm sure they do).

'Course you could compile the kernel yourself... and as I think about it you
will have to use the Xen kernel anyway so your search for a 2.6 distro might be

moot.

CD

You have to face a Holy God on Judgment Day. He sees lust as adultery (Matt. 5:28) and hatred as murder (1 John 3:15). Will you be guilty?

Jesus took your punishment on the cross, and rose again defeating death, to save you from Hell. Repent (Luke 13:5) and trust in Him today.

NeedGod.com

_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xensource.com/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: Small distro for DomU?

Carl Holtje ;021;vcsg6;
On Wed, 17 Aug 2005, Chris de Vidal wrote:

> --- Tim Hudoba <[hidden email]> wrote:
> > Does anyone know of a good secure minimal distro with 2.6 kernel and X
> > capabilities?
>
> How 'bout Deb Sarge?  Woody was approximately 110MB, dunno how small Sarge is
> but it can't be very big.

A BusyBox-based image is closer to 10 megs, and is capable of running X..
see http://uclibc.org/ and http://buildroot.uclibc.org/ for more
(buildroot will automate the download-configure-compile steps of a pretty
robust root filesystem).. add a kernel, and you're golden..

The only caveat is that uclibc *isn't* compatable with the "normal" libc
-- all your applications will need to be compiled against uclibc. SSH/SSL
is a menu selection within the buildroot tool, so this should be taken
care of for you.. alternatively, build a root image with the compiler
inside, and build all your applications that way.. compile within a
development image/VM, then move them out and into your production images..

Just about everything that builds against libc builds against uclibc, so
you shouldn't have too much trouble with it..

Hope this helps..

Carl

- --

"There are 10 types of people in the world: Those who understand binary
and those that don't."

_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xensource.com/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: Small distro for DomU?

Goetz Bock

On Wed, Aug 17 '05 at 16:49, Carl Holtje ;021;vcsg6; wrote:
> On Wed, 17 Aug 2005, Chris de Vidal wrote:
> > --- Tim Hudoba <[hidden email]> wrote:
> > > Does anyone know of a good secure minimal distro with 2.6 kernel and X
> > > capabilities?
> >
> > How 'bout Deb Sarge?  Woody was approximately 110MB, dunno how small
> > Sarge is but it can't be very big.
>
> A BusyBox-based image is closer to 10 megs, and is capable of running X..

Keep in mind, that for the current release (2.0.7) of xen you need
python.
--
/"\ Goetz Bock at blacknet dot de  --  secure mobile Linux everNETting
\ /       (c) 2005 Creative Commons, Attribution-ShareAlike 2.0 de
 X   [ 1. Use descriptive subjects - 2. Edit a reply for brevity -  ]
/ \  [ 3. Reply to the list - 4. Read the archive *before* you post ]

_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xensource.com/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: Small distro for DomU?

Chris de Vidal
--- Goetz Bock <[hidden email]> wrote:
> Keep in mind, that for the current release (2.0.7) of xen you need
> python.

Not for DomU.

Take for example TTYLinux; it doesn't have Python installed (or does it) yet it
runs like a top.

Using Buildroot for uClibc to build a tiny SSH- and VNC-capable DomU distro is
a fantastic idea.

CD

You have to face a Holy God on Judgment Day. He sees lust as adultery (Matt. 5:28) and hatred as murder (1 John 3:15). Will you be guilty?

Jesus took your punishment on the cross, and rose again defeating death, to save you from Hell. Repent (Luke 13:5) and trust in Him today.

NeedGod.com

_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xensource.com/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: Small distro for DomU?

Mark Williamson
> Take for example TTYLinux; it doesn't have Python installed (or does it)
> yet it runs like a top.

Yup, Python is only needed for the management apps (in dom0).

> Using Buildroot for uClibc to build a tiny SSH- and VNC-capable DomU distro
> is a fantastic idea.

It'd be nice to have a standard base filesystem with these components (that's
a hint to anyone with time on their hands!).

Cheers,
Mark

> CD
>
> You have to face a Holy God on Judgment Day. He sees lust as adultery
> (Matt. 5:28) and hatred as murder (1 John 3:15). Will you be guilty?
>
> Jesus took your punishment on the cross, and rose again defeating death, to
> save you from Hell. Repent (Luke 13:5) and trust in Him today.
>
> NeedGod.com
>
> _______________________________________________
> Xen-users mailing list
> [hidden email]
> http://lists.xensource.com/xen-users

_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xensource.com/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: Small distro for DomU?

Anthony Liguori
Mark Williamson wrote:

>>Using Buildroot for uClibc to build a tiny SSH- and VNC-capable DomU distro
>>is a fantastic idea.
>>    
>>
>
>It'd be nice to have a standard base filesystem with these components (that's
>a hint to anyone with time on their hands!).
>  
>
Made for a slightly different purpose, but useful as a starting point.  
The following script builds (from scratch) a busybox-based domU with
qemu (VNC enabled, no SDL).

You can get pretty far (it turns out) with just building things
statically against glibc.

http://www.cs.utexas.edu/users/aliguori/build.sh

Regards,

Anthony Liguori

>Cheers,
>Mark
>
>  
>
>>CD
>>
>>You have to face a Holy God on Judgment Day. He sees lust as adultery
>>(Matt. 5:28) and hatred as murder (1 John 3:15). Will you be guilty?
>>
>>Jesus took your punishment on the cross, and rose again defeating death, to
>>save you from Hell. Repent (Luke 13:5) and trust in Him today.
>>
>>NeedGod.com
>>
>>_______________________________________________
>>Xen-users mailing list
>>[hidden email]
>>http://lists.xensource.com/xen-users
>>    
>>
>
>_______________________________________________
>Xen-users mailing list
>[hidden email]
>http://lists.xensource.com/xen-users
>
>  
>


_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xensource.com/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: Small distro for DomU?

John Fairbairn
ttylinux(which is busybox based) makes a great base distro for these
purposes, then compile anything you need statically and switch out your
glibc etc. use ldd to find out what needs changing. It's a pretty simple
affair really. If you need help just send another msg and I'd be happy to
share the basics of my particular method.

HTH.

John Fairbairn

> Mark Williamson wrote:
>
>>>Using Buildroot for uClibc to build a tiny SSH- and VNC-capable DomU
>>> distro
>>>is a fantastic idea.
>>>
>>>
>>
>>It'd be nice to have a standard base filesystem with these components
>> (that's
>>a hint to anyone with time on their hands!).
>>
>>
> Made for a slightly different purpose, but useful as a starting point.
> The following script builds (from scratch) a busybox-based domU with
> qemu (VNC enabled, no SDL).
>
> You can get pretty far (it turns out) with just building things
> statically against glibc.
>
> http://www.cs.utexas.edu/users/aliguori/build.sh
>
> Regards,
>
> Anthony Liguori
>
>>Cheers,
>>Mark
>>
>>
>>
>>>CD
>>>
>>>You have to face a Holy God on Judgment Day. He sees lust as adultery
>>>(Matt. 5:28) and hatred as murder (1 John 3:15). Will you be guilty?
>>>
>>>Jesus took your punishment on the cross, and rose again defeating death,
>>> to
>>>save you from Hell. Repent (Luke 13:5) and trust in Him today.
>>>
>>>NeedGod.com
>>>
>>>_______________________________________________
>>>Xen-users mailing list
>>>[hidden email]
>>>http://lists.xensource.com/xen-users
>>>
>>>
>>
>>_______________________________________________
>>Xen-users mailing list
>>[hidden email]
>>http://lists.xensource.com/xen-users
>>
>>
>>
>
>
> _______________________________________________
> Xen-users mailing list
> [hidden email]
> http://lists.xensource.com/xen-users
>



_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xensource.com/xen-users
Reply | Threaded
Open this post in threaded view
|

Re: Small distro for DomU?

Marcus Brown
Hi all,

I've been playing with this issue a bit lately.
I started with debian sarge, and using cdebootstrap a typical 'standard'
install tends to be about 175MB ... far too big and memory hungry for
my requirements. No way can I get that down to the <25MB range! :)
Now I've got uclibc's buildroot working, and have just managed a
boot of a minimal rootfs.
Here are some of the more interesting stats for those interested:

# cat /proc/meminfo
MemTotal:         5868 kB
MemFree:          2904 kB

# df
Filesystem                Size      Used Available Use% Mounted on
/dev/hda3                 7.7M      4.7M      2.6M  65% /
tmpfs                     2.9M     12.0k      2.9M   0% /tmp

# uname -a
Linux uclibc 2.6.11.12-xenU #1 Tue Aug 9 12:07:52 EST 2005 i686 unknown

Time to add functionality to the new toy ;)

Marcus.

John Fairbairn wrote:

> ttylinux(which is busybox based) makes a great base distro for these
> purposes, then compile anything you need statically and switch out your
> glibc etc. use ldd to find out what needs changing. It's a pretty simple
> affair really. If you need help just send another msg and I'd be happy to
> share the basics of my particular method.
>
> HTH.
>
> John Fairbairn
>
>
>>Mark Williamson wrote:
>>
>>
>>>>Using Buildroot for uClibc to build a tiny SSH- and VNC-capable DomU
>>>>distro
>>>>is a fantastic idea.
>>>>
>>>>
>>>
>>>It'd be nice to have a standard base filesystem with these components
>>>(that's
>>>a hint to anyone with time on their hands!).
>>>
>>>
>>
>>Made for a slightly different purpose, but useful as a starting point.
>>The following script builds (from scratch) a busybox-based domU with
>>qemu (VNC enabled, no SDL).
>>
>>You can get pretty far (it turns out) with just building things
>>statically against glibc.
>>
>>http://www.cs.utexas.edu/users/aliguori/build.sh
>>
>>Regards,
>>
>>Anthony Liguori
>>
>>
>>>Cheers,
>>>Mark
>

_______________________________________________
Xen-users mailing list
[hidden email]
http://lists.xensource.com/xen-users