WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Small distro for DomU?

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
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>